File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -228,7 +228,8 @@ export abstract class Constants {
228228 public static readonly MENU_BAR_WORKSPACE = "barWorkspace" ; // 顶栏主菜单
229229 public static readonly MENU_BAR_PLUGIN = "topBarPlugin" ; // 顶栏插件菜单
230230 public static readonly MENU_BAR_ZOOM = "barZoom" ; // 顶栏缩放菜单
231- public static readonly MENU_BAR_MORE = "barmore" ; // 顶栏外观菜单
231+ public static readonly MENU_BAR_MODE = "barmode" ; // 顶栏外观菜单
232+ public static readonly MENU_BAR_MORE = "barmore" ; // 顶栏更多菜单
232233 public static readonly MENU_STATUS_HELP = "statusHelp" ; // 状态栏帮助菜单
233234 public static readonly MENU_STATUS_BACKGROUND_TASK = "statusBackgroundTask" ; // 状态栏后台任务菜单
234235 public static readonly MENU_DOCK_MOBILE = "dockMobileMenu" ; // 移动端侧栏插件选项菜单
Original file line number Diff line number Diff line change @@ -127,12 +127,12 @@ export const initBar = (app: App) => {
127127 break ;
128128 } else if ( targetId === "barMode" ) {
129129 if ( ! window . siyuan . menus . menu . element . classList . contains ( "fn__none" ) &&
130- window . siyuan . menus . menu . element . getAttribute ( "data-name" ) === Constants . MENU_BAR_MORE ) {
130+ window . siyuan . menus . menu . element . getAttribute ( "data-name" ) === Constants . MENU_BAR_MODE ) {
131131 window . siyuan . menus . menu . remove ( ) ;
132132 return ;
133133 }
134134 window . siyuan . menus . menu . remove ( ) ;
135- window . siyuan . menus . menu . element . setAttribute ( "data-name" , Constants . MENU_BAR_MORE ) ;
135+ window . siyuan . menus . menu . element . setAttribute ( "data-name" , Constants . MENU_BAR_MODE ) ;
136136 window . siyuan . menus . menu . append ( new MenuItem ( {
137137 id : "themeLight" ,
138138 label : window . siyuan . languages . themeLight ,
You can’t perform that action at this time.
0 commit comments