新增托盘图标样式设置

This commit is contained in:
lyswhut
2020-06-29 01:06:06 +08:00
parent f18875682b
commit 9fd181ee06
15 changed files with 63 additions and 5 deletions
@@ -128,6 +128,9 @@
"backup_part_export_list_desc": "Save the list to...",
"other": "Extras",
"other_tray_theme": "Tray Icon Style",
"other_tray_theme_native": "Solid Color",
"other_tray_theme_origin": "Primary Color",
"other_cache": "Cache size (Not recommended since resources such as pictures after the cache is cleaned need re-downloading. The software will dynamically manage the cache size based on disk space)",
"other_cache_label": "Cache size used: ",
"other_cache_label_title": "Currently used cache size",
@@ -128,6 +128,9 @@
"backup_part_export_list_desc": "选择歌单保存位置",
"other": "其他",
"other_tray_theme": "托盘图标样式",
"other_tray_theme_native": "纯色",
"other_tray_theme_origin": "原色",
"other_cache": "缓存大小(清理缓存后图片等资源将需要重新下载,不建议清理,软件会根据磁盘空间动态管理缓存大小)",
"other_cache_label": "软件已使用缓存大小:",
"other_cache_label_title": "当前已用缓存",
@@ -118,6 +118,9 @@
"backup_part_import_list_desc": "選擇列表文件",
"backup_part_export_list_desc": "選擇列表保存位置",
"other": "其他",
"other_tray_theme": "托盤圖標樣式",
"other_tray_theme_native": "純色",
"other_tray_theme_origin": "原色",
"other_cache": "緩存大小(清理緩存後圖片等資源將需要重新下載,不建議清理,軟件會根據磁盤空間動態管理緩存大小)",
"other_cache_label": "軟件已使用緩存大小:",
"other_cache_label_title": "當前已用緩存",
+18
View File
@@ -191,6 +191,11 @@ div.scroll(:class="$style.setting")
material-btn(:class="[$style.btn, $style.gapLeft]" min @click="handleImportAllData") {{$t('view.setting.backup_all_import')}}
material-btn(:class="[$style.btn, $style.gapLeft]" min @click="handleExportAllData") {{$t('view.setting.backup_all_export')}}
dt {{$t('view.setting.other')}}
dd
h3 {{$t('view.setting.other_tray_theme')}}
div
material-checkbox(:id="'setting_tray_theme_' + item.id" v-model="current_setting.tray.themeId" name="setting_tray_theme" need :class="$style.gapLeft"
:label="$t('view.setting.other_tray_theme_' + item.name)" :key="item.id" :value="item.id" v-for="item in trayThemeList")
dd
h3 {{$t('view.setting.other_cache')}}
div
@@ -358,6 +363,18 @@ export default {
},
]
},
trayThemeList() {
return [
{
id: 0,
name: 'native',
},
{
id: 1,
name: 'origin',
},
]
},
},
data() {
return {
@@ -418,6 +435,7 @@ export default {
tray: {
isShow: false,
isToTray: false,
themeId: 0,
},
windowSizeId: 1,
langId: 'cns',