diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-08-10 01:07:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-10 01:07:28 +0200 |
commit | f3ddc14d3829ed09d6eab81811bcfb1314626ddf (patch) | |
tree | 2c37d026f6be4184fec78e0ae8e5695a5d409c22 /scene | |
parent | c68b109f270a2bf1c42c3f083b53e7bc26dadfd6 (diff) | |
parent | b57b8453b12c5c8755725c94f059ff4806f53bfe (diff) |
Merge pull request #51454 from nathanfranke/follow-up-snames
Follow-Up Add SNames to get theme icon
Diffstat (limited to 'scene')
-rw-r--r-- | scene/gui/gradient_edit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/gradient_edit.cpp b/scene/gui/gradient_edit.cpp index 706d3b48c2..ff983f4415 100644 --- a/scene/gui/gradient_edit.cpp +++ b/scene/gui/gradient_edit.cpp @@ -308,7 +308,7 @@ void GradientEdit::_notification(int p_what) { int total_w = get_size().width - get_size().height - SPACING; //Draw checker pattern for ramp - draw_texture_rect(get_theme_icon("GuiMiniCheckerboard", "EditorIcons"), Rect2(0, 0, total_w, h), true); + draw_texture_rect(get_theme_icon(SNAME("GuiMiniCheckerboard"), SNAME("EditorIcons")), Rect2(0, 0, total_w, h), true); //Draw color ramp Gradient::Point prev; @@ -375,7 +375,7 @@ void GradientEdit::_notification(int p_what) { } //Draw "button" for color selector - draw_texture_rect(get_theme_icon("GuiMiniCheckerboard", "EditorIcons"), Rect2(total_w + SPACING, 0, h, h), true); + draw_texture_rect(get_theme_icon(SNAME("GuiMiniCheckerboard"), SNAME("EditorIcons")), Rect2(total_w + SPACING, 0, h, h), true); if (grabbed != -1) { //Draw with selection color draw_rect(Rect2(total_w + SPACING, 0, h, h), points[grabbed].color); |