From fe2f62f128aa603b34cba8f8cdc219e5e0cce12e Mon Sep 17 00:00:00 2001
From: FireForge <67974470+fire-forge@users.noreply.github.com>
Date: Tue, 2 Aug 2022 17:48:11 -0500
Subject: [PATCH] Adjust 2 default theme colors in ItemList and Tree - Change
Tree's drop_position_color from orange to white. - Change ItemList's
guide_color to the same color as Tree's, which fits in with a dark theme
better.
---
doc/classes/ItemList.xml | 2 +-
doc/classes/Tree.xml | 2 +-
scene/resources/default_theme/default_theme.cpp | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/doc/classes/ItemList.xml b/doc/classes/ItemList.xml
index 15c97b08387..97ee946acd7 100644
--- a/doc/classes/ItemList.xml
+++ b/doc/classes/ItemList.xml
@@ -445,7 +445,7 @@
Text [Color] used when the item is selected.
-
+
[Color] of the guideline. The guideline is a line drawn between each row of items.
diff --git a/doc/classes/Tree.xml b/doc/classes/Tree.xml
index b06be0cf990..f326948e9c6 100644
--- a/doc/classes/Tree.xml
+++ b/doc/classes/Tree.xml
@@ -461,7 +461,7 @@
Text [Color] for a [constant TreeItem.CELL_MODE_CUSTOM] mode cell when it's hovered.
-
+
[Color] used to draw possible drop locations. See [enum DropModeFlags] constants for further description of drop locations.
diff --git a/scene/resources/default_theme/default_theme.cpp b/scene/resources/default_theme/default_theme.cpp
index 520a0a04ed2..fa375795c1b 100644
--- a/scene/resources/default_theme/default_theme.cpp
+++ b/scene/resources/default_theme/default_theme.cpp
@@ -741,7 +741,7 @@ void fill_default_theme(Ref &theme, const Ref &default_font, const
theme->set_color("font_selected_color", "Tree", control_font_pressed_color);
theme->set_color("font_outline_color", "Tree", Color(1, 1, 1));
theme->set_color("guide_color", "Tree", Color(0.7, 0.7, 0.7, 0.25));
- theme->set_color("drop_position_color", "Tree", Color(1, 0.3, 0.2));
+ theme->set_color("drop_position_color", "Tree", Color(1, 1, 1));
theme->set_color("relationship_line_color", "Tree", Color(0.27, 0.27, 0.27));
theme->set_color("parent_hl_line_color", "Tree", Color(0.27, 0.27, 0.27));
theme->set_color("children_hl_line_color", "Tree", Color(0.27, 0.27, 0.27));
@@ -776,7 +776,7 @@ void fill_default_theme(Ref &theme, const Ref &default_font, const
theme->set_color("font_color", "ItemList", control_font_lower_color);
theme->set_color("font_selected_color", "ItemList", control_font_pressed_color);
theme->set_color("font_outline_color", "ItemList", Color(1, 1, 1));
- theme->set_color("guide_color", "ItemList", Color(0, 0, 0, 0.1));
+ theme->set_color("guide_color", "ItemList", Color(0.7, 0.7, 0.7, 0.25));
theme->set_stylebox("selected", "ItemList", make_flat_stylebox(style_selected_color));
theme->set_stylebox("selected_focus", "ItemList", make_flat_stylebox(style_selected_color));
theme->set_stylebox("cursor", "ItemList", focus);