File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 < script >
88 ( ( ) => {
99 try {
10- if ( localStorage . getItem ( 'notepp.ui.themedTitlebar' ) === '0 ') {
10+ if ( localStorage . getItem ( 'notepp.ui.themedTitlebar' ) !== '1 ') {
1111 document . documentElement . classList . add ( 'native-titlebar-start' ) ;
1212 }
1313 } catch { }
2424 ( ( ) => {
2525 try {
2626 const themedTitlebar = localStorage . getItem ( 'notepp.ui.themedTitlebar' ) ;
27- if ( themedTitlebar === '0 ') {
27+ if ( themedTitlebar !== '1 ') {
2828 document . body . classList . add ( 'native-titlebar' ) ;
2929 }
3030
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ function fileFromArgv(argv) {
9494
9595function createWindow ( ) {
9696 const initSettings = readSettings ( ) ;
97- const themedTitlebar = initSettings ?. ui ?. themedTitlebar !== false ; // default on
97+ const themedTitlebar = initSettings ?. ui ?. themedTitlebar === true ; // default off (native)
9898
9999 mainWindow = new BrowserWindow ( {
100100 width : 1280 ,
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ let isDarkMode = false;
88let isWordWrap = false ;
99let isColumnSelectMode = false ;
1010let currentTheme = 'light' ;
11- let isThemedTitlebar = true ; // custom HTML title bar + menu vs native OS chrome
11+ let isThemedTitlebar = false ; // custom HTML title bar + menu vs native OS chrome
1212let tabCounter = 0 ;
1313let searchDecorations = [ ] ;
1414let findReplaceMode = 'find' ;
@@ -660,7 +660,7 @@ require(['vs/editor/editor.main'], () => {
660660 // ui.theme (new) takes precedence; fall back to legacy ui.darkMode boolean
661661 applyTheme ( ui . theme || ( ui . darkMode ? 'dark' : 'light' ) , false ) ;
662662 // Title bar mode: default true (themed). Only call if explicitly saved to false.
663- applyTitlebarMode ( ui . themedTitlebar !== false , false ) ;
663+ applyTitlebarMode ( ui . themedTitlebar === true , false ) ;
664664 if ( ui . wordWrap === true && ! isWordWrap ) {
665665 // Inline the toggle to skip the re-save (we just LOADED this value)
666666 isWordWrap = true ;
You can’t perform that action at this time.
0 commit comments