1
0
Fork 0

Reduce opacity of scroll hints in light theme

This commit is contained in:
passivestar 2026-01-08 21:45:47 +04:00
parent fa27088143
commit 8e66e512e6
1 changed files with 6 additions and 0 deletions

View File

@ -670,6 +670,7 @@ void ThemeModern::populate_standard_styles(const Ref<EditorTheme> &p_theme, Edit
p_theme->set_color("children_hl_line_color", "Tree", relationship_line_color);
p_theme->set_color("drop_position_color", "Tree", p_config.icon_normal_color);
p_theme->set_color("guide_color", "Tree", Color(1, 1, 1, 0));
p_theme->set_color("scroll_hint_color", "Tree", Color(0, 0, 0, p_config.dark_theme ? 1.0 : 0.5));
Ref<StyleBoxFlat> style_tree_hover = p_config.flat_button_hover->duplicate();
style_tree_hover->set_content_margin_all(0);
@ -752,6 +753,7 @@ void ThemeModern::populate_standard_styles(const Ref<EditorTheme> &p_theme, Edit
p_theme->set_color("font_selected_color", "ItemList", p_config.font_pressed_color);
p_theme->set_color("font_outline_color", "ItemList", p_config.font_outline_color);
p_theme->set_color("guide_color", "ItemList", Color(1, 1, 1, 0));
p_theme->set_color("scroll_hint_color", "ItemList", Color(0, 0, 0, p_config.dark_theme ? 1.0 : 0.5));
p_theme->set_constant("v_separation", "ItemList", p_config.base_margin * 1.5 * EDSCALE);
p_theme->set_constant("h_separation", "ItemList", (p_config.increased_margin + 2) * EDSCALE);
p_theme->set_constant("icon_margin", "ItemList", (p_config.increased_margin + 2) * EDSCALE);
@ -1626,6 +1628,10 @@ void ThemeModern::populate_editor_styles(const Ref<EditorTheme> &p_theme, Editor
p_theme->set_stylebox(SceneStringName(panel), "ScrollContainer", p_config.base_empty_style);
p_theme->set_stylebox("focus", "ScrollContainer", p_config.focus_style);
// Scroll hints.
p_theme->set_color("scroll_hint_vertical_color", "ScrollContainer", Color(0, 0, 0, p_config.dark_theme ? 1.0 : 0.5));
p_theme->set_color("scroll_hint_horizontal_color", "ScrollContainer", Color(0, 0, 0, p_config.dark_theme ? 1.0 : 0.5));
// This stylebox is used in 3d and 2d viewports (no borders).
Ref<StyleBoxFlat> style_content_panel_vp = p_config.content_panel_style->duplicate();
style_content_panel_vp->set_content_margin_individual(p_config.border_width * 2, p_config.base_margin * EDSCALE, p_config.border_width * 2, p_config.border_width * 2);