Skip to content

Commit bbfd2be

Browse files
committed
Modern style: Fix prop_subsection_stylebox color not scaling with luminance
1 parent 019889d commit bbfd2be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

editor/themes/theme_modern.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1923,7 +1923,7 @@ void ThemeModern::populate_editor_styles(const Ref<EditorTheme> &p_theme, Editor
19231923
p_theme->set_constant("indent_size", "EditorInspectorSection", 6.0 * EDSCALE);
19241924
p_theme->set_constant("h_separation", "EditorInspectorSection", p_config.base_margin * EDSCALE);
19251925

1926-
Color prop_subsection_stylebox_color = p_config.dark_color_1.lerp(p_config.mono_color_font, p_config.dark_icon_and_font ? 0.09 : 0.16);
1926+
Color prop_subsection_stylebox_color = p_config.button_disabled_color.lerp(p_config.base_color, 0.48);
19271927
p_theme->set_color("prop_subsection_stylebox", EditorStringName(Editor), prop_subsection_stylebox_color);
19281928

19291929
Ref<StyleBoxFlat> style_highlight_subsection = p_config.base_style->duplicate();

0 commit comments

Comments
 (0)