テーマインポート機能を実装するなど
This commit is contained in:
parent
b12bf78c6d
commit
dac962580b
10 changed files with 118 additions and 12 deletions
|
|
@ -178,6 +178,7 @@ os.init(async () => {
|
|||
},
|
||||
watch: {
|
||||
'$store.state.device.darkMode'() {
|
||||
// TODO: このファイルでbuiltinThemesを参照するとcode splittingが効かず、初回読み込み時に全てのテーマコードを読み込むことになってしまい無駄なので何とかする
|
||||
const themes = builtinThemes.concat(this.$store.state.device.themes);
|
||||
applyTheme(themes.find(x => x.id === (this.$store.state.device.darkMode ? this.$store.state.device.darkTheme : this.$store.state.device.lightTheme)));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue