mirror of
https://github.com/godotengine/godot.git
synced 2026-02-08 03:38:29 +00:00
Merge pull request #115316 from passivestar/codeedit-colors
Fix colors of code editor in modern theme
This commit is contained in:
@@ -509,8 +509,8 @@ void EditorThemeManager::_populate_text_editor_styles(const Ref<EditorTheme> &p_
|
||||
colors["text_editor/theme/highlighting/string_placeholder_color"] = p_config.dark_icon_and_font ? Color(1, 0.75, 0.4) : Color(0.93, 0.6, 0.33);
|
||||
|
||||
// Use the brightest background color on a light theme (which generally uses a negative contrast rate).
|
||||
colors["text_editor/theme/highlighting/background_color"] = p_config.dark_icon_and_font ? p_config.dark_color_2 : p_config.dark_color_3;
|
||||
colors["text_editor/theme/highlighting/completion_background_color"] = p_config.dark_icon_and_font ? p_config.base_color : p_config.dark_color_2;
|
||||
colors["text_editor/theme/highlighting/background_color"] = p_config.base_color.lerp(Color(0, 0, 0), p_config.contrast * (p_config.dark_icon_and_font ? 1.2 : 1.8)).clamp();
|
||||
colors["text_editor/theme/highlighting/completion_background_color"] = p_config.base_color.lerp(Color(0, 0, 0), p_config.contrast * 0.3).clamp();
|
||||
colors["text_editor/theme/highlighting/completion_selected_color"] = alpha1;
|
||||
colors["text_editor/theme/highlighting/completion_existing_color"] = alpha2;
|
||||
// Same opacity as the scroll grabber editor icon.
|
||||
|
||||
Reference in New Issue
Block a user