Skip to content

Commit

Permalink
refs #579 Load custom font
Browse files Browse the repository at this point in the history
  • Loading branch information
h3poteto committed Sep 26, 2018
1 parent 7c1bb16 commit 6e7addb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/renderer/store/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ const App = {
},
updateLanguage (state, key) {
state.language = key
},
addFont (state, font) {
const list = [font].concat(DefaultFonts)
state.defaultFonts = Array.from(new Set(list))
}
},
actions: {
Expand Down Expand Up @@ -73,6 +77,7 @@ const App = {
commit('updateNotify', conf.notification.notify)
commit('updateTimeFormat', conf.appearance.timeFormat)
commit('updateLanguage', conf.language.language)
commit('addFont', conf.appearance.font)
resolve(conf)
})
})
Expand Down

0 comments on commit 6e7addb

Please sign in to comment.