From 866de8b6ae63e3d7bbdd0c7a906c11060210d41f Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas Date: Sat, 23 Dec 2023 22:05:51 +0200 Subject: [PATCH] Add transparent backgrounds to the color buttons --- src/UI/ColorPickers/ColorPicker.tscn | 18 ++++++++++++++++++ src/UI/UI.tscn | 2 -- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/src/UI/ColorPickers/ColorPicker.tscn b/src/UI/ColorPickers/ColorPicker.tscn index 778f8ef90..f410d1542 100644 --- a/src/UI/ColorPickers/ColorPicker.tscn +++ b/src/UI/ColorPickers/ColorPicker.tscn @@ -86,6 +86,15 @@ mouse_filter = 2 color = Color(0, 0, 0, 1) metadata/_edit_lock_ = true +[node name="TransparentChecker" parent="ScrollContainer/VerticalContainer/ColorButtons/LeftColorButton/LeftColorRect" instance=ExtResource("3_vjkb0")] +show_behind_parent = true +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 + [node name="ColorSwitch" type="TextureButton" parent="ScrollContainer/VerticalContainer/ColorButtons" groups=["UIButtons"]] layout_mode = 2 size_flags_horizontal = 4 @@ -114,6 +123,15 @@ offset_bottom = 30.0 mouse_filter = 2 metadata/_edit_lock_ = true +[node name="TransparentChecker" parent="ScrollContainer/VerticalContainer/ColorButtons/RightColorButton/RightColorRect" instance=ExtResource("3_vjkb0")] +show_behind_parent = true +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 + [node name="ColorButtonsVertical" type="VBoxContainer" parent="ScrollContainer/VerticalContainer/ColorButtons"] layout_mode = 2 theme_override_constants/separation = 2 diff --git a/src/UI/UI.tscn b/src/UI/UI.tscn index 0eaf78183..2f83c65a0 100644 --- a/src/UI/UI.tscn +++ b/src/UI/UI.tscn @@ -315,7 +315,6 @@ render_target_update_mode = 4 [node name="TransparentChecker" parent="DockableContainer/Main Canvas/ViewportandVerticalRuler/SubViewportContainer/SubViewport" instance=ExtResource("5")] material = SubResource("2") -anchors_preset = 0 [node name="Canvas" parent="DockableContainer/Main Canvas/ViewportandVerticalRuler/SubViewportContainer/SubViewport" instance=ExtResource("19")] @@ -351,7 +350,6 @@ render_target_update_mode = 0 [node name="TransparentChecker" parent="DockableContainer/Second Canvas/SubViewport" instance=ExtResource("5")] material = SubResource("3") -anchors_preset = 0 [node name="CanvasPreview" parent="DockableContainer/Second Canvas/SubViewport" instance=ExtResource("2")]