From 85fff938fbf20161b734775586aee815e93b1a03 Mon Sep 17 00:00:00 2001 From: Mario Steele Date: Mon, 9 Mar 2026 03:13:49 -0500 Subject: [PATCH] Updated GeneralPanel Update StyleBoxes for ObsPassword line entry. Added TabPanel theme variation to General panel. --- UI/Controls/general_panel.tscn | 53 ++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/UI/Controls/general_panel.tscn b/UI/Controls/general_panel.tscn index b0e8d6cb..c4626b71 100644 --- a/UI/Controls/general_panel.tscn +++ b/UI/Controls/general_panel.tscn @@ -4,12 +4,62 @@ [ext_resource type="Texture2D" uid="uid://cnu6l3x820i82" path="res://UI/assets/bootstrap/eye-slash.png" id="1_rbtts"] [ext_resource type="Script" uid="uid://ch7qf8iy31pfy" path="res://lib/UI/line_edit_with_buttons.gd" id="2_oookw"] +[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_oookw"] +content_margin_left = 4.0 +content_margin_top = 4.0 +content_margin_right = 35.0 +content_margin_bottom = 4.0 +bg_color = Color(0.1, 0.1, 0.1, 0.6) +border_width_bottom = 2 +border_color = Color(0, 0, 0, 0.6) +corner_radius_top_left = 3 +corner_radius_top_right = 3 +corner_radius_bottom_right = 3 +corner_radius_bottom_left = 3 +corner_detail = 5 + +[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_7naex"] +content_margin_left = 4.0 +content_margin_top = 4.0 +content_margin_right = 35.0 +content_margin_bottom = 4.0 +bg_color = Color(0.1, 0.1, 0.1, 0.3) +border_width_bottom = 2 +border_color = Color(0, 0, 0, 0.3) +corner_radius_top_left = 3 +corner_radius_top_right = 3 +corner_radius_bottom_right = 3 +corner_radius_bottom_left = 3 +corner_detail = 5 + +[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_en626"] +content_margin_left = 4.0 +content_margin_top = 4.0 +content_margin_right = 35.0 +content_margin_bottom = 4.0 +bg_color = Color(1, 1, 1, 0.75) +draw_center = false +border_width_left = 2 +border_width_top = 2 +border_width_right = 2 +border_width_bottom = 2 +corner_radius_top_left = 3 +corner_radius_top_right = 3 +corner_radius_bottom_right = 3 +corner_radius_bottom_left = 3 +corner_detail = 5 +expand_margin_left = 2.0 +expand_margin_top = 2.0 +expand_margin_right = 2.0 +expand_margin_bottom = 2.0 + [node name="General" type="PanelContainer" unique_id=1071328377] anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 +theme_type_variation = &"TabPanel" script = ExtResource("1_oafot") metadata/_tab_index = 0 @@ -126,6 +176,9 @@ text = "Password:" [node name="ObsPass" type="LineEdit" parent="MarginContainer/VBoxContainer/GridContainer" unique_id=170190217] unique_name_in_owner = true layout_mode = 2 +theme_override_styles/normal = SubResource("StyleBoxFlat_oookw") +theme_override_styles/read_only = SubResource("StyleBoxFlat_7naex") +theme_override_styles/focus = SubResource("StyleBoxFlat_en626") secret = true script = ExtResource("2_oookw") right = ExtResource("1_rbtts")