diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-12-16 14:06:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-16 14:06:43 +0100 |
commit | 3914bdb82eafa558bc1512c7cf3c4f77565d0847 (patch) | |
tree | eeb1e4058a8a570ba8cdc20bc90d4719f8cabf9c | |
parent | d3debe18b54ebca4bcfdcf4843e256dbdfbcf99c (diff) | |
parent | 1e56b4dd62348e9de172829e3a25cff0c522d20b (diff) |
Merge pull request #24376 from Calinou/tweak-editor-status-colors
Tweak editor status colors (success, warning, error)
-rw-r--r-- | editor/editor_themes.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/editor/editor_themes.cpp b/editor/editor_themes.cpp index 36053d7534..eacf2ee1b4 100644 --- a/editor/editor_themes.cpp +++ b/editor/editor_themes.cpp @@ -351,18 +351,18 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) { theme->set_color("mono_color", "Editor", mono_color); - Color success_color = accent_color.linear_interpolate(Color(0.2, 1, 0.2), 0.6) * 1.2; - Color warning_color = accent_color.linear_interpolate(Color(1, 1, 0), 0.7) * 1.0; - Color error_color = accent_color.linear_interpolate(Color(1, 0, 0), 0.8) * 1.7; + Color success_color = Color(0.45, 0.95, 0.5); + Color warning_color = Color(1, 0.87, 0.4); + Color error_color = Color(1, 0.47, 0.42); Color property_color = font_color.linear_interpolate(Color(0.5, 0.5, 0.5), 0.5); if (!dark_theme) { - // yellow on white themes is a P.I.T.A. - warning_color = accent_color.linear_interpolate(Color(0.9, 0.7, 0), 0.9); - warning_color = warning_color.linear_interpolate(mono_color, 0.2); - success_color = success_color.linear_interpolate(mono_color, 0.2); - error_color = error_color.linear_interpolate(mono_color, 0.2); + // Darken some colors to be readable on a light background + success_color = success_color.linear_interpolate(mono_color, 0.35); + warning_color = warning_color.linear_interpolate(mono_color, 0.35); + error_color = error_color.linear_interpolate(mono_color, 0.25); } + theme->set_color("success_color", "Editor", success_color); theme->set_color("warning_color", "Editor", warning_color); theme->set_color("error_color", "Editor", error_color); |