From a3c7df76c023e0cc0552cfe5b67a18c2b69a3d85 Mon Sep 17 00:00:00 2001 From: passivestar <60579014+passivestar@users.noreply.github.com> Date: Sat, 30 Nov 2024 02:31:02 +0400 Subject: [PATCH] Fix scroll container focus --- minimal_theme.tres | 13 +++++++------ minimal_theme_high_ppi.tres | 13 +++++++------ 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/minimal_theme.tres b/minimal_theme.tres index a1ddecd..f5fdd81 100644 --- a/minimal_theme.tres +++ b/minimal_theme.tres @@ -592,6 +592,12 @@ corner_radius_top_right = 4 corner_radius_bottom_right = 4 corner_radius_bottom_left = 4 +[sub_resource type="StyleBoxLine" id="StyleBoxLine_rijeh"] +color = Color(1, 1, 1, 0.0784314) +grow_begin = -6.0 +grow_end = -6.0 +thickness = 1 + [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_cbgao"] content_margin_left = 6.0 content_margin_top = 6.0 @@ -599,12 +605,6 @@ content_margin_right = 6.0 content_margin_bottom = 6.0 bg_color = Color(0.11, 0.11, 0.11, 1) -[sub_resource type="StyleBoxLine" id="StyleBoxLine_rijeh"] -color = Color(1, 1, 1, 0.0784314) -grow_begin = -6.0 -grow_end = -6.0 -thickness = 1 - [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_5sp0q"] content_margin_left = 7.0 content_margin_top = 7.0 @@ -961,6 +961,7 @@ ProgressBar/styles/background = SubResource("StyleBoxFlat_twhwf") ProgressBar/styles/fill = SubResource("StyleBoxFlat_xdk0w") RichTextLabel/styles/focus = SubResource("StyleBoxFlat_tx2dl") RichTextLabel/styles/normal = SubResource("StyleBoxFlat_tx2dl") +ScrollContainer/styles/focus = SubResource("StyleBoxEmpty_v1a6f") SplitContainer/constants/minimum_grab_thickness = 6 SplitContainer/constants/separation = 2 SplitContainer/icons/h_grabber = SubResource("PlaceholderTexture2D_cdxsg") diff --git a/minimal_theme_high_ppi.tres b/minimal_theme_high_ppi.tres index a0e9054..f9520f9 100644 --- a/minimal_theme_high_ppi.tres +++ b/minimal_theme_high_ppi.tres @@ -592,6 +592,12 @@ corner_radius_top_right = 8 corner_radius_bottom_right = 8 corner_radius_bottom_left = 8 +[sub_resource type="StyleBoxLine" id="StyleBoxLine_rijeh"] +color = Color(1, 1, 1, 0.0784314) +grow_begin = -12.0 +grow_end = -12.0 +thickness = 2 + [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_cbgao"] content_margin_left = 12.0 content_margin_top = 12.0 @@ -599,12 +605,6 @@ content_margin_right = 12.0 content_margin_bottom = 12.0 bg_color = Color(0.11, 0.11, 0.11, 1) -[sub_resource type="StyleBoxLine" id="StyleBoxLine_rijeh"] -color = Color(1, 1, 1, 0.0784314) -grow_begin = -12.0 -grow_end = -12.0 -thickness = 2 - [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_5sp0q"] content_margin_left = 14.0 content_margin_top = 14.0 @@ -961,6 +961,7 @@ ProgressBar/styles/background = SubResource("StyleBoxFlat_twhwf") ProgressBar/styles/fill = SubResource("StyleBoxFlat_xdk0w") RichTextLabel/styles/focus = SubResource("StyleBoxFlat_tx2dl") RichTextLabel/styles/normal = SubResource("StyleBoxFlat_tx2dl") +ScrollContainer/styles/focus = SubResource("StyleBoxEmpty_v1a6f") SplitContainer/constants/minimum_grab_thickness = 12 SplitContainer/constants/separation = 4 SplitContainer/icons/h_grabber = SubResource("PlaceholderTexture2D_cdxsg")