1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-31 18:41:20 +00:00

Decrease font placeholder opacity in the editor theme

This makes placeholder text easier to distinguish from actual text
in the editor. Previously, placeholder text's contrast against the
background was only slightly lower than actual text.
This commit is contained in:
Hugo Locurcio
2025-05-26 23:15:51 +02:00
parent 6c9765d87e
commit dfdcea22c5

View File

@@ -472,7 +472,7 @@ void EditorThemeManager::_create_shared_styles(const Ref<EditorTheme> &p_theme,
p_config.font_hover_pressed_color = p_config.font_hover_color.lerp(p_config.accent_color, 0.74);
p_config.font_disabled_color = Color(p_config.mono_color.r, p_config.mono_color.g, p_config.mono_color.b, 0.35);
p_config.font_readonly_color = Color(p_config.mono_color.r, p_config.mono_color.g, p_config.mono_color.b, 0.65);
p_config.font_placeholder_color = Color(p_config.mono_color.r, p_config.mono_color.g, p_config.mono_color.b, 0.6);
p_config.font_placeholder_color = Color(p_config.mono_color.r, p_config.mono_color.g, p_config.mono_color.b, 0.5);
p_config.font_outline_color = Color(0, 0, 0, 0);
p_theme->set_color(SceneStringName(font_color), EditorStringName(Editor), p_config.font_color);