[all] hide "Dark theme" option from "View settings" menu
This commit is contained in:
parent
b4e8567481
commit
b07a01bb0f
|
@ -313,21 +313,6 @@ define([
|
|||
cls : 'btn-toolbar'
|
||||
})).on('click', _on_btn_zoom.bind(me, 'up'));
|
||||
|
||||
if ( Common.UI.Themes.available() ) {
|
||||
var mnuitemDarkTheme = new Common.UI.MenuItem({
|
||||
caption: me.header.textDarkTheme,
|
||||
checked: Common.UI.Themes.isDarkTheme(),
|
||||
checkable: true,
|
||||
value: 'theme:dark'
|
||||
});
|
||||
|
||||
|
||||
me.header.btnOptions.menu.insertItem(7, mnuitemDarkTheme);
|
||||
me.header.btnOptions.menu.insertItem(7, {caption:'--'});
|
||||
Common.NotificationCenter.on('uitheme:change', function (name) {
|
||||
mnuitemDarkTheme.setChecked(Common.UI.Themes.isDarkTheme());
|
||||
});
|
||||
}
|
||||
me.header.btnOptions.menu.on('item:click', me.onOptionsItemClick.bind(this));
|
||||
}
|
||||
},
|
||||
|
@ -415,10 +400,6 @@ define([
|
|||
Common.NotificationCenter.trigger('edit:complete', me.header);
|
||||
break;
|
||||
case 'advanced': me.header.fireEvent('file:settings', me.header); break;
|
||||
case 'theme:dark':
|
||||
if ( item.isChecked() != Common.UI.Themes.isDarkTheme() )
|
||||
Common.UI.Themes.toggleTheme();
|
||||
break;
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -316,22 +316,6 @@ define([
|
|||
cls : 'btn-toolbar'
|
||||
})).on('click', _on_btn_zoom.bind(me, 'up'));
|
||||
|
||||
if ( Common.UI.Themes.available() ) {
|
||||
var mnuitemDarkTheme = new Common.UI.MenuItem({
|
||||
caption: me.header.textDarkTheme,
|
||||
checked: Common.UI.Themes.isDarkTheme(),
|
||||
checkable: true,
|
||||
value: 'theme:dark'
|
||||
});
|
||||
|
||||
|
||||
me.header.btnOptions.menu.insertItem(7, mnuitemDarkTheme);
|
||||
me.header.btnOptions.menu.insertItem(7, {caption:'--'});
|
||||
Common.NotificationCenter.on('uitheme:change', function (name) {
|
||||
mnuitemDarkTheme.setChecked(Common.UI.Themes.isDarkTheme());
|
||||
});
|
||||
}
|
||||
|
||||
me.header.btnOptions.menu.on('item:click', me.onOptionsItemClick.bind(this));
|
||||
}
|
||||
},
|
||||
|
@ -459,10 +443,6 @@ define([
|
|||
Common.NotificationCenter.trigger('edit:complete', me.header);
|
||||
break;
|
||||
case 'advanced': me.header.fireEvent('file:settings', me.header); break;
|
||||
case 'theme:dark':
|
||||
if ( item.isChecked() != Common.UI.Themes.isDarkTheme() )
|
||||
Common.UI.Themes.toggleTheme();
|
||||
break;
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -327,22 +327,6 @@ define([
|
|||
cls : 'btn-toolbar'
|
||||
})).on('click', _on_btn_zoom.bind(me, 'up'));
|
||||
|
||||
if ( Common.UI.Themes.available() ) {
|
||||
var mnuitemDarkTheme = new Common.UI.MenuItem({
|
||||
caption: me.header.textDarkTheme,
|
||||
checked: Common.UI.Themes.isDarkTheme(),
|
||||
checkable: true,
|
||||
value: 'theme:dark'
|
||||
});
|
||||
|
||||
|
||||
me.header.btnOptions.menu.insertItem(10, mnuitemDarkTheme);
|
||||
me.header.btnOptions.menu.insertItem(10, {caption:'--'});
|
||||
Common.NotificationCenter.on('uitheme:change', function (name) {
|
||||
mnuitemDarkTheme.setChecked(Common.UI.Themes.isDarkTheme());
|
||||
});
|
||||
}
|
||||
|
||||
me.header.btnOptions.menu.on('item:click', me.onOptionsItemClick.bind(this));
|
||||
}
|
||||
},
|
||||
|
@ -506,10 +490,6 @@ define([
|
|||
Common.localStorage.setBool('sse-freeze-shadow', item.isChecked());
|
||||
break;
|
||||
case 'advanced': me.header.fireEvent('file:settings', me.header); break;
|
||||
case 'theme:dark':
|
||||
if ( item.isChecked() != Common.UI.Themes.isDarkTheme() )
|
||||
Common.UI.Themes.toggleTheme();
|
||||
break;
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue