Skip to content

Commit a427644

Browse files
committed
Enhance contrast on Modern theme a bit more
1 parent 6fd949a commit a427644

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

editor/themes/editor_theme_manager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ EditorThemeManager::ThemeConfiguration EditorThemeManager::_create_theme_config(
356356
preset_contrast = light_contrast;
357357
} else { // Default
358358
preset_accent_color = Color(0.337, 0.62, 1.0);
359-
preset_base_color = Color(0.153, 0.153, 0.153);
359+
preset_base_color = Color(0.161, 0.161, 0.161);
360360
}
361361

362362
config.accent_color = preset_accent_color;

editor/themes/editor_theme_manager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class EditorThemeManager {
8484
// Make sure to keep those in sync with the definitions in the editor settings.
8585
const float default_icon_saturation = 2.0;
8686
const int default_relationship_lines = RELATIONSHIP_SELECTED_ONLY;
87-
const float default_contrast = 0.35;
87+
const float default_contrast = 0.37;
8888
const int default_corner_radius = 4;
8989

9090
// Generated properties.

editor/themes/theme_modern.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,11 @@ void ThemeModern::populate_shared_styles(const Ref<EditorTheme> &p_theme, Editor
160160
p_config.surface_low_color = _get_base_color(p_config, p_config.dark_theme ? -0.6 : -0.9);
161161
p_config.surface_base_color = _get_base_color(p_config, -0.2);
162162
p_config.surface_high_color = _get_base_color(p_config, 0.2, 0.8);
163-
p_config.surface_higher_color = _get_base_color(p_config, 0.35, 0.8);
164-
p_config.surface_highest_color = _get_base_color(p_config, 0.55, 0.6);
163+
p_config.surface_higher_color = _get_base_color(p_config, 0.3, 0.8);
164+
p_config.surface_highest_color = _get_base_color(p_config, 0.5, 0.6);
165165

166166
p_config.button_normal_color = _get_base_color(p_config, 0.35, 0.85);
167-
p_config.button_hover_color = _get_base_color(p_config, 0.55, 0.75);
167+
p_config.button_hover_color = _get_base_color(p_config, 0.5, 0.75);
168168
p_config.button_pressed_color = _get_base_color(p_config, 0.75, 0.75);
169169
p_config.button_disabled_color = _get_base_color(p_config, 0.2, 0.75);
170170
p_config.button_border_normal_color = _get_base_color(p_config, 0.45, 0.75);

0 commit comments

Comments
 (0)