Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Slightly increase brighness in inactive tab text color.
  • Loading branch information
SpartanJ committed Dec 19, 2024
1 parent 90ef341 commit 98c387f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bin/assets/ui/breeze.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
--tab-hover: #334e5e;
--tab-close: #909396;
--tab-close-hover: #863d47;
--tab-font-inactive: #b6bbc2;
--tab-font-inactive: #c0c5cc;
--icon: #b6bbc2;
--icon-active: white;
--icon-back-hover: #eff0f1;
Expand Down
3 changes: 3 additions & 0 deletions src/tools/ecode/settingsmenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) )
Expand Down

0 comments on commit 98c387f

Please sign in to comment.