From 7dc82df1a6af533b1c9e5e654b79ac91763d729d Mon Sep 17 00:00:00 2001 From: Chris Cranford Date: Sun, 30 Jun 2024 18:02:08 -0400 Subject: [PATCH] GH-463 Restore style configuration via settings --- src/editor/graph/nodes/graph_node_comment.cpp | 105 ++++++++++++++---- src/editor/graph/nodes/graph_node_comment.h | 12 ++ src/editor/theme/theme_cache.cpp | 61 +++++++++- src/editor/theme/theme_cache.h | 15 +-- 4 files changed, 163 insertions(+), 30 deletions(-) diff --git a/src/editor/graph/nodes/graph_node_comment.cpp b/src/editor/graph/nodes/graph_node_comment.cpp index b0600ec0..cd86d4aa 100644 --- a/src/editor/graph/nodes/graph_node_comment.cpp +++ b/src/editor/graph/nodes/graph_node_comment.cpp @@ -16,6 +16,8 @@ // #include "graph_node_comment.h" +#include "common/macros.h" +#include "common/scene_utils.h" #include "editor/graph/graph_edit.h" #include "editor/plugins/orchestrator_editor_plugin.h" #include "editor/theme/theme_cache.h" @@ -23,6 +25,7 @@ #include #include #include +#include OrchestratorGraphNodeComment::OrchestratorGraphNodeComment(OrchestratorGraphEdit* p_graph, const Ref& p_node) : OrchestratorGraphNode(p_graph, p_node) @@ -168,21 +171,66 @@ void OrchestratorGraphFrameComment::_node_resized() void OrchestratorGraphFrameComment::_script_node_changed() { - set_tint_color(_node->get_background_color()); - set_title(_node->get_node_title()); - - Label* title = Object::cast_to