From b80ab1ad5c956b48e1e4a9c6dbe0444e7041b4bd Mon Sep 17 00:00:00 2001 From: RorotoSic <70805756+RorotoSic@users.noreply.github.com> Date: Sat, 16 Mar 2024 00:24:27 +0100 Subject: [PATCH] remove thick white outline when CollapseContainer is pressed and focus --- src/Tools/BaseDraw.tscn | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/Tools/BaseDraw.tscn b/src/Tools/BaseDraw.tscn index 13c9ecd5603..b1918d5f9b0 100644 --- a/src/Tools/BaseDraw.tscn +++ b/src/Tools/BaseDraw.tscn @@ -1,10 +1,18 @@ -[gd_scene load_steps=8 format=3 uid="uid://ubyatap3sylf"] +[gd_scene load_steps=11 format=3 uid="uid://ubyatap3sylf"] [ext_resource type="PackedScene" uid="uid://yjhp0ssng2mp" path="res://src/UI/Nodes/ValueSlider.tscn" id="1"] [ext_resource type="PackedScene" uid="uid://ctfgfelg0sho8" path="res://src/Tools/BaseTool.tscn" id="2"] [ext_resource type="Script" path="res://src/Tools/BaseDraw.gd" id="3"] [ext_resource type="Script" path="res://src/UI/Nodes/CollapsibleContainer.gd" id="3_76bek"] +[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_0i4gy"] + +[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_dlpcn"] + +[sub_resource type="Theme" id="Theme_i7q3e"] +Button/styles/focus = SubResource("StyleBoxEmpty_0i4gy") +Button/styles/pressed = SubResource("StyleBoxEmpty_dlpcn") + [sub_resource type="ButtonGroup" id="ButtonGroup_7u3x0"] resource_name = "rotate" allow_unpress = true @@ -33,6 +41,7 @@ script = ExtResource("3") [node name="RotationOptions" type="VBoxContainer" parent="." index="2"] visible = false layout_mode = 2 +theme = SubResource("Theme_i7q3e") theme_type_variation = &"CollapsibleContainer" script = ExtResource("3_76bek") text = "Rotation options"