Skip to content

Commit ca10a84

Browse files
committed
Fix colors of GraphEdit overlays in light version of modern theme
1 parent cb3af5a commit ca10a84

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

editor/themes/theme_modern.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1219,7 +1219,7 @@ void ThemeModern::populate_standard_styles(const Ref<EditorTheme> &p_theme, Edit
12191219

12201220
p_theme->set_stylebox(SceneStringName(panel), "GraphEdit", ge_panel_style);
12211221
p_theme->set_stylebox("panel_focus", "GraphEdit", p_config.focus_style);
1222-
p_theme->set_stylebox("menu_panel", "GraphEdit", EditorThemeManager::make_flat_stylebox(p_config.dark_color_1 * Color(1, 1, 1, 0.6), 4, 2, 4, 2, 3));
1222+
p_theme->set_stylebox("menu_panel", "GraphEdit", EditorThemeManager::make_flat_stylebox(p_config.surface_low_color * Color(1, 1, 1, 0.5), 4, 2, 4, 2, 3));
12231223

12241224
float grid_base_brightness = p_config.dark_theme ? 1.0 : 0.0;
12251225
GraphEdit::GridPattern grid_pattern = (GraphEdit::GridPattern) int(EDITOR_GET("editors/visual_editors/grid_pattern"));
@@ -1256,7 +1256,7 @@ void ThemeModern::populate_standard_styles(const Ref<EditorTheme> &p_theme, Edit
12561256

12571257
// GraphEditMinimap.
12581258
{
1259-
Ref<StyleBoxFlat> style_minimap_bg = EditorThemeManager::make_flat_stylebox(p_config.dark_color_1, 0, 0, 0, 0);
1259+
Ref<StyleBoxFlat> style_minimap_bg = EditorThemeManager::make_flat_stylebox(p_config.surface_low_color * Color(1, 1, 1, 0.3), 0, 0, 0, 0);
12601260
style_minimap_bg->set_border_color(p_config.dark_color_3);
12611261
style_minimap_bg->set_border_width_all(1);
12621262
p_theme->set_stylebox(SceneStringName(panel), "GraphEditMinimap", style_minimap_bg);
@@ -1268,7 +1268,7 @@ void ThemeModern::populate_standard_styles(const Ref<EditorTheme> &p_theme, Edit
12681268
style_minimap_camera->set_border_color(Color(0.65, 0.65, 0.65, 0.45));
12691269
style_minimap_node = EditorThemeManager::make_flat_stylebox(Color(1, 1, 1), 0, 0, 0, 0);
12701270
} else {
1271-
style_minimap_camera = EditorThemeManager::make_flat_stylebox(Color(0.38, 0.38, 0.38, 0.2), 0, 0, 0, 0);
1271+
style_minimap_camera = EditorThemeManager::make_flat_stylebox(Color(0.38, 0.38, 0.38, 0.1), 0, 0, 0, 0);
12721272
style_minimap_camera->set_border_color(Color(0.38, 0.38, 0.38, 0.45));
12731273
style_minimap_node = EditorThemeManager::make_flat_stylebox(Color(0, 0, 0), 0, 0, 0, 0);
12741274
}
@@ -1291,7 +1291,7 @@ void ThemeModern::populate_standard_styles(const Ref<EditorTheme> &p_theme, Edit
12911291
const int gn_corner_radius = 3;
12921292

12931293
const Color gn_bg_color = p_config.dark_theme ? p_config.dark_color_3 : p_config.dark_color_1.lerp(p_config.mono_color, 0.09);
1294-
const Color gn_frame_bg = _get_base_color(p_config, p_config.dark_theme ? -1.8 : -1.0, 0.9);
1294+
const Color gn_frame_bg = _get_base_color(p_config, p_config.dark_theme ? -1.8 : -0.5, 0.9);
12951295

12961296
const bool high_contrast_borders = p_config.draw_extra_borders && p_config.dark_theme;
12971297

0 commit comments

Comments
 (0)