summaryrefslogtreecommitdiffstats
path: root/editor/themes/editor_theme_manager.cpp
diff options
context:
space:
mode:
authorYuri Sizov <yuris@humnom.net>2024-01-18 19:26:56 +0100
committerYuri Sizov <yuris@humnom.net>2024-01-18 19:26:56 +0100
commit66b0bd9203832ee6673500bb6e11c663d18b3c2a (patch)
treeb4727447ec2a4e7b1f2a637bf928b53f3911c350 /editor/themes/editor_theme_manager.cpp
parentde95a3effeb10f69903dd7b37f830867541c9575 (diff)
parent9d7c2978f4799e84bcaa4c5692c58391ea7448eb (diff)
downloadredot-engine-66b0bd9203832ee6673500bb6e11c663d18b3c2a.tar.gz
Merge pull request #86158 from Geometror/ge-connection-rework
Rework `GraphEdit` connections (drawing, API, optimizations)
Diffstat (limited to 'editor/themes/editor_theme_manager.cpp')
-rw-r--r--editor/themes/editor_theme_manager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/themes/editor_theme_manager.cpp b/editor/themes/editor_theme_manager.cpp
index b0e95cfdc4..886f105efc 100644
--- a/editor/themes/editor_theme_manager.cpp
+++ b/editor/themes/editor_theme_manager.cpp
@@ -1442,6 +1442,10 @@ void EditorThemeManager::_populate_standard_styles(const Ref<EditorTheme> &p_the
p_theme->set_color("selection_stroke", "GraphEdit", p_theme->get_color(SNAME("box_selection_stroke_color"), EditorStringName(Editor)));
p_theme->set_color("activity", "GraphEdit", p_config.accent_color);
+ p_theme->set_color("connection_hover_tint_color", "GraphEdit", p_config.dark_theme ? Color(0, 0, 0, 0.3) : Color(1, 1, 1, 0.3));
+ p_theme->set_color("connection_valid_target_tint_color", "GraphEdit", p_config.dark_theme ? Color(1, 1, 1, 0.4) : Color(0, 0, 0, 0.4));
+ p_theme->set_color("connection_rim_color", "GraphEdit", p_config.tree_panel_style->get_bg_color());
+
p_theme->set_icon("zoom_out", "GraphEdit", p_theme->get_icon(SNAME("ZoomLess"), EditorStringName(EditorIcons)));
p_theme->set_icon("zoom_in", "GraphEdit", p_theme->get_icon(SNAME("ZoomMore"), EditorStringName(EditorIcons)));
p_theme->set_icon("zoom_reset", "GraphEdit", p_theme->get_icon(SNAME("ZoomReset"), EditorStringName(EditorIcons)));