summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Huelin <62965063+SirQuartz@users.noreply.github.com>2023-02-22 05:33:04 -0500
committerYuri Sizov <yuris@humnom.net>2023-03-13 14:06:08 +0100
commitf55c61d6011551eb1ca4eb840ff2b3ccc62a5fcb (patch)
treef07c5a1d35742cc8c3fad61c0a54972c09392cc6
parent466d226a4acc66fc1c1c4faf8d9da68e6c84fbda (diff)
Modify the default theme GraphNode close_h_offset
Modifies the close_h_offset to be 12 instead of 22. This better aligns the default position. (cherry picked from commit 961d6763fbfca8b94565079b3c15606bdac9b7c8)
-rw-r--r--doc/classes/GraphNode.xml2
-rw-r--r--scene/resources/default_theme/default_theme.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/classes/GraphNode.xml b/doc/classes/GraphNode.xml
index 8c0e8dc3c3..f97fc78b23 100644
--- a/doc/classes/GraphNode.xml
+++ b/doc/classes/GraphNode.xml
@@ -342,7 +342,7 @@
<theme_item name="title_color" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 1)">
Color of the title text.
</theme_item>
- <theme_item name="close_h_offset" data_type="constant" type="int" default="22">
+ <theme_item name="close_h_offset" data_type="constant" type="int" default="12">
</theme_item>
<theme_item name="close_offset" data_type="constant" type="int" default="22">
The vertical offset of the close button.
diff --git a/scene/resources/default_theme/default_theme.cpp b/scene/resources/default_theme/default_theme.cpp
index 7a865691d9..cc606b5b88 100644
--- a/scene/resources/default_theme/default_theme.cpp
+++ b/scene/resources/default_theme/default_theme.cpp
@@ -720,7 +720,7 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const
theme->set_constant("title_offset", "GraphNode", 26 * scale);
theme->set_constant("title_h_offset", "GraphNode", 0);
theme->set_constant("close_offset", "GraphNode", 22 * scale);
- theme->set_constant("close_h_offset", "GraphNode", 22 * scale);
+ theme->set_constant("close_h_offset", "GraphNode", 12 * scale);
theme->set_constant("port_offset", "GraphNode", 0);
// Tree