refs #579 Load custom font
This commit is contained in:
parent
7c1bb16147
commit
de4f463371
|
@ -75,8 +75,8 @@ html, body, #app {
|
|||
}
|
||||
|
||||
--specified-fonts: 'Noto Sans', 'Noto Sans CJK JP', 'Takaoゴシック', 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', Meiryo, メイリオ, Osaka, 'MS PGothic', arial, helvetica, sans-serif;
|
||||
font-family: var(--specified-fonts);
|
||||
|
||||
font-family: var(--specified-fonts);
|
||||
|
||||
/*
|
||||
These selectors are defined in user agent stylesheet. So I override.
|
||||
|
|
|
@ -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: {
|
||||
|
@ -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)
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue