mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-30 18:16:31 +03:00
Fix for SpartanJ/ecode#371.
Slightly increase brighness in inactive tab text color.
This commit is contained in:
@@ -1053,14 +1053,17 @@ UIMenu* SettingsMenu::createEditMenu() {
|
||||
|
||||
UIMenu* SettingsMenu::createWindowMenu() {
|
||||
mWindowMenu = UIPopUpMenu::New();
|
||||
auto shouldCloseCb = []( UIMenuItem* ) -> bool { return false; };
|
||||
UIPopUpMenu* colorsMenu = UIPopUpMenu::New();
|
||||
colorsMenu
|
||||
->addRadioButton( i18n( "light", "Light" ),
|
||||
mApp->getUIColorScheme() == ColorSchemePreference::Light )
|
||||
->setOnShouldCloseCb( shouldCloseCb )
|
||||
->setId( "light" );
|
||||
colorsMenu
|
||||
->addRadioButton( i18n( "dark", "Dark" ),
|
||||
mApp->getUIColorScheme() == ColorSchemePreference::Dark )
|
||||
->setOnShouldCloseCb( shouldCloseCb )
|
||||
->setId( "dark" );
|
||||
colorsMenu->on( Event::OnItemClicked, [this]( const Event* event ) {
|
||||
if ( !event->getNode()->isType( UI_TYPE_MENUITEM ) )
|
||||
|
||||
Reference in New Issue
Block a user