From bbdd038614c55804c4166d93310807705af7efb0 Mon Sep 17 00:00:00 2001 From: passivestar <60579014+passivestar@users.noreply.github.com> Date: Thu, 6 Jun 2024 20:02:26 +0400 Subject: [PATCH] Fix the styling of disabled buttons --- editor_theme.tres | 8 +++----- editor_theme_high_ppi.tres | 8 +++----- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/editor_theme.tres b/editor_theme.tres index 6384948..27f6845 100644 --- a/editor_theme.tres +++ b/editor_theme.tres @@ -41,11 +41,7 @@ content_margin_left = 6.0 content_margin_top = 4.0 content_margin_right = 6.0 content_margin_bottom = 4.0 -bg_color = Color(1, 1, 1, 0) -border_width_left = 1 -border_width_top = 1 -border_width_right = 1 -border_width_bottom = 1 +bg_color = Color(1, 1, 1, 0.0588235) border_color = Color(1, 1, 1, 0.0784314) corner_radius_top_left = 4 corner_radius_top_right = 4 @@ -647,6 +643,8 @@ MenuButton/styles/normal_mirrored = SubResource("StyleBoxFlat_l5ore") MenuButton/styles/pressed = SubResource("StyleBoxFlat_l5ore") MenuButton/styles/pressed_mirrored = SubResource("StyleBoxFlat_l5ore") OptionButton/colors/font_pressed_color = Color(1, 1, 1, 1) +OptionButton/styles/disabled = SubResource("StyleBoxFlat_s11c6") +OptionButton/styles/disabled_mirrored = SubResource("StyleBoxFlat_s11c6") OptionButton/styles/focus = SubResource("StyleBoxFlat_tj0ge") OptionButton/styles/hover = SubResource("StyleBoxFlat_ohale") OptionButton/styles/hover_mirrored = SubResource("StyleBoxFlat_ohale") diff --git a/editor_theme_high_ppi.tres b/editor_theme_high_ppi.tres index a9eafce..ffacfa2 100644 --- a/editor_theme_high_ppi.tres +++ b/editor_theme_high_ppi.tres @@ -41,11 +41,7 @@ content_margin_left = 12.0 content_margin_top = 8.0 content_margin_right = 12.0 content_margin_bottom = 8.0 -bg_color = Color(1, 1, 1, 0) -border_width_left = 2 -border_width_top = 2 -border_width_right = 2 -border_width_bottom = 2 +bg_color = Color(1, 1, 1, 0.0588235) border_color = Color(1, 1, 1, 0.0784314) corner_radius_top_left = 8 corner_radius_top_right = 8 @@ -647,6 +643,8 @@ MenuButton/styles/normal_mirrored = SubResource("StyleBoxFlat_l5ore") MenuButton/styles/pressed = SubResource("StyleBoxFlat_l5ore") MenuButton/styles/pressed_mirrored = SubResource("StyleBoxFlat_l5ore") OptionButton/colors/font_pressed_color = Color(1, 1, 1, 1) +OptionButton/styles/disabled = SubResource("StyleBoxFlat_s11c6") +OptionButton/styles/disabled_mirrored = SubResource("StyleBoxFlat_s11c6") OptionButton/styles/focus = SubResource("StyleBoxFlat_tj0ge") OptionButton/styles/hover = SubResource("StyleBoxFlat_ohale") OptionButton/styles/hover_mirrored = SubResource("StyleBoxFlat_ohale")