@@ -6,6 +6,7 @@ import FileOptions from "@/renderer/components/settings/FileOptions.vue";
66import Language from " @/renderer/components/settings/Language.vue" ;
77import SettingBase from " @/renderer/components/settings/SettingBase.vue" ;
88import ShortcutPage from " @/renderer/components/settings/ShortcutPage.vue" ;
9+ import AppIcon from " @/renderer/components/ui/AppIcon.vue" ;
910import emitter from " @/renderer/events" ;
1011import { checkUpdate } from " @/renderer/services/api/update.js" ;
1112
@@ -21,32 +22,32 @@ const MenuComponents = {
2122 shortcut: ShortcutPage ,
2223};
2324const MenuOptions = [
24- { label: " 文件" , action : () => (activeTab .value = " file" ), icon: " icon- document" , value: " file" },
25+ { label: " 文件" , action : () => (activeTab .value = " file" ), icon: " document" , value: " file" },
2526 {
2627 label: " 设置" ,
2728 action : () => (activeTab .value = " settings" ),
28- icon: " icon- config-props" ,
29+ icon: " config-props" ,
2930 value: " settings" ,
3031 },
3132 {
3233 label: " 外观" ,
3334 action : () => (activeTab .value = " appearance" ),
34- icon: " icon- waiguan" ,
35+ icon: " waiguan" ,
3536 value: " appearance" ,
3637 },
3738 {
3839 label: " 快捷键" ,
3940 action : () => (activeTab .value = " shortcut" ),
40- icon: " icon-input " ,
41+ icon: " shortcut-key " ,
4142 value: " shortcut" ,
4243 },
4344 {
4445 label: " 语言" ,
4546 action : () => (activeTab .value = " language" ),
46- icon: " icon- fanyi" ,
47+ icon: " fanyi" ,
4748 value: " language" ,
4849 },
49- { label: " 关于" , action : () => (activeTab .value = " about" ), icon: " icon- github" , value: " about" },
50+ { label: " 关于" , action : () => (activeTab .value = " about" ), icon: " github" , value: " about" },
5051];
5152checkUpdate ().then ((updateInfo ) => {
5253 if (updateInfo ) {
@@ -58,15 +59,16 @@ checkUpdate().then((updateInfo) => {
5859<template >
5960 <div class =" MenubarBox" >
6061 <div class =" optionsContainer" >
61- <span
62+ <button
6263 v-for =" option in MenuOptions"
6364 :key =" option.label"
64- class =" iconfont "
65- :class =" { active: activeTab === option.value, [option.icon]: true }"
65+ class =" menu-option "
66+ :class =" { active: activeTab === option.value }"
6667 @click =" option.action"
6768 >
69+ <AppIcon :name =" option.icon" class =" menu-option-icon" />
6870 {{ option.label }}
69- </span >
71+ </button >
7072 </div >
7173 <div class =" detailContainer" >
7274 <div class =" scrollView" >
@@ -117,7 +119,7 @@ checkUpdate().then((updateInfo) => {
117119 -webkit-app-region : drag;
118120 background : var (--background-color );
119121
120- span {
122+ .menu-option {
121123 cursor : pointer ;
122124 width : 100% ;
123125 -webkit-app-region : no- drag;
@@ -126,12 +128,14 @@ checkUpdate().then((updateInfo) => {
126128 display : flex ;
127129 align-items : center ;
128130 gap : 8px ;
131+ border : none ;
132+ background : transparent ;
133+ text-align : left ;
129134 color : var (--text-color );
130135
131- & ::before {
132- font-size : 16px ;
133- transform : translateY (1px );
134- font-weight : 100 !important ;
136+ .menu-option-icon {
137+ font-size : 18px ;
138+ flex-shrink : 0 ;
135139 }
136140
137141 & :hover {
0 commit comments