Merge pull request #73713 from SirQuartz/graph-node-close-button

Fix Graph Node close rect default position
This commit is contained in:
Rémi Verschelde 2023-03-02 11:26:28 +01:00
commit f339f8e3d2
No known key found for this signature in database
GPG key ID: C3336907360768E1
2 changed files with 2 additions and 2 deletions

View file

@ -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.

View file

@ -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