From 37e4f073e0928c1fa7c833f7479f067d7cec12c9 Mon Sep 17 00:00:00 2001 From: Eduardo Date: Tue, 26 Sep 2023 02:44:14 +0200 Subject: [PATCH] fixed button outline when being pressed --- themes/default/Default_theme.tres | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/themes/default/Default_theme.tres b/themes/default/Default_theme.tres index e05331c..59480af 100644 --- a/themes/default/Default_theme.tres +++ b/themes/default/Default_theme.tres @@ -1,4 +1,4 @@ -[gd_resource type="Theme" load_steps=4 format=3 uid="uid://dk131w4mrmlyj"] +[gd_resource type="Theme" load_steps=5 format=3 uid="uid://dk131w4mrmlyj"] [ext_resource type="FontFile" uid="uid://cek5417mq2pbt" path="res://themes/default/fonts/BunnyCute-Regular.otf" id="1_ab6ib"] @@ -13,6 +13,8 @@ shadow_color = Color(1, 0.776471, 0.729412, 1) shadow_size = 6 shadow_offset = Vector2(12, 12) +[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_l3ror"] + [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_rqaqj"] bg_color = Color(0.545098, 0.815686, 0.827451, 1) border_color = Color(1, 0.776471, 0.729412, 1) @@ -27,6 +29,7 @@ shadow_offset = Vector2(4, 4) [resource] Button/font_sizes/font_size = 64 Button/styles/disabled = SubResource("StyleBoxFlat_bk2rt") +Button/styles/focus = SubResource("StyleBoxEmpty_l3ror") Button/styles/hover = SubResource("StyleBoxFlat_bk2rt") Button/styles/normal = SubResource("StyleBoxFlat_bk2rt") Button/styles/pressed = SubResource("StyleBoxFlat_rqaqj") -- 2.30.2