Skip to content

Commit

Permalink
Merge pull request #51454 from nathanfranke/follow-up-snames
Browse files Browse the repository at this point in the history
Follow-Up Add SNames to get theme icon
  • Loading branch information
akien-mga authored Aug 9, 2021
2 parents c68b109 + b57b845 commit f3ddc14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scene/gui/gradient_edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit f3ddc14

Please sign in to comment.