Slightly increase brighness in inactive tab text color.
This commit is contained in:
Martín Lucas Golini
2024-12-19 19:16:20 -03:00
parent 90ef341f00
commit 98c387f2b1
2 changed files with 4 additions and 1 deletions

View File

@@ -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 ) )