-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Match ImGui inherit_base_colors
#78740
base: master
Are you sure you want to change the base?
Conversation
Although I applaud the initiative, I request that you not make this specific change. The titlebar of a window should not be black; it should be some color that contrasts with the window background (which is black). If you want to match the look of the old window in this case, just modify the code in @@ -1254,7 +1254,7 @@ bool main_menu::load_character_tab( const std::string &worldname )
}
uilist mmenu;
- mmenu.title = string_format( _( "Load character from \"%s\"" ), worldname );
+ mmenu.text = string_format( _( "Load character from \"%s\"" ), worldname );
mmenu.border_color = c_white;
int opt_val = 0;
for( const save_t &s : savegames ) { |
Are there any places in which this would cause problem? |
Somewhat related issues:
The problem is just choosing pleasant colours. |
Titlebars are an important user control even though we cannot fully use them at the moment. Generally they allow the user to drag the window to reposition it. We’ve temporarily disabled that because it confuses the code that handles mouse clicks, but eventually I want that to work correctly. Therefore we should not make titlebars invisible. If you think it is important that this window look exactly like the old window, then remove the titlebar instead of making the titlebar invisible. |
Can you rebase it please? |
Summary
Interface "Match ImGui
inherit_base_colors
"Purpose of change
I started using
imgui_style.json:inherit_base_colors
=true
, but the UI colors didn't match so I changed the three you see in the commit. Here is the main menu loading a world.Before ... :
... and after :
Describe the solution
Describe alternatives you've considered
Testing
Settings
"inherit_base_colors"
totrue
in the fileimgui_style.json
.Additional context