You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +00:00
Merge pull request #11646 from djrm/pr_visual_improvements
Several visual improvements.
This commit is contained in:
@@ -3538,14 +3538,14 @@ void PropertyEditor::_draw_transparency(Object *t, const Rect2 &p_rect) {
|
||||
return;
|
||||
|
||||
Color color = obj->get(ti->get_metadata(1));
|
||||
Ref<Texture> arrow = tree->get_icon("select_arrow");
|
||||
Ref<Texture> arrow = tree->get_icon("select_option");
|
||||
|
||||
// make a little space between consecutive color fields
|
||||
Rect2 area = p_rect;
|
||||
area.position.y += 1;
|
||||
area.size.height -= 2;
|
||||
area.size.width -= arrow->get_size().width + 5;
|
||||
tree->draw_texture_rect(get_icon("Transparent", "EditorIcons"), area, true);
|
||||
tree->draw_texture_rect(get_icon("GuiMiniCheckerboard", "EditorIcons"), area, true);
|
||||
tree->draw_rect(area, color);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user