Skip to content
This repository was archived by the owner on Sep 15, 2024. It is now read-only.

Commit 56b8c58

Browse files
Theme for TabContainer
1 parent e336be1 commit 56b8c58

2 files changed

Lines changed: 36 additions & 12 deletions

File tree

Scenes/Prefabs/Options.tscn

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,7 @@ margin_bottom = 23.0
9797
[node name="Multiplayer" type="MarginContainer" parent="."]
9898
anchor_right = 1.0
9999
anchor_bottom = 1.0
100-
margin_left = 4.0
101-
margin_top = 32.0
102-
margin_right = -4.0
103-
margin_bottom = -4.0
100+
margin_top = 24.0
104101
custom_constants/margin_right = 15
105102
custom_constants/margin_top = 15
106103
custom_constants/margin_left = 15
@@ -109,11 +106,11 @@ custom_constants/margin_bottom = 15
109106
[node name="VBoxContainer" type="VBoxContainer" parent="Multiplayer"]
110107
margin_left = 15.0
111108
margin_top = 15.0
112-
margin_right = 377.0
109+
margin_right = 385.0
113110
margin_bottom = 53.0
114111

115112
[node name="Online Username" type="HBoxContainer" parent="Multiplayer/VBoxContainer"]
116-
margin_right = 362.0
113+
margin_right = 370.0
117114
margin_bottom = 17.0
118115

119116
[node name="Label" type="Label" parent="Multiplayer/VBoxContainer/Online Username"]
@@ -122,8 +119,8 @@ margin_bottom = 17.0
122119
text = "Online Username: "
123120

124121
[node name="OnlineUsername" type="LineEdit" parent="Multiplayer/VBoxContainer/Online Username"]
125-
margin_left = 162.0
126-
margin_right = 362.0
122+
margin_left = 170.0
123+
margin_right = 370.0
127124
margin_bottom = 17.0
128125
rect_min_size = Vector2( 200, 0 )
129126
size_flags_horizontal = 10
@@ -132,7 +129,7 @@ caret_blink_speed = 0.5
132129

133130
[node name="Web Server" type="HBoxContainer" parent="Multiplayer/VBoxContainer"]
134131
margin_top = 21.0
135-
margin_right = 362.0
132+
margin_right = 370.0
136133
margin_bottom = 38.0
137134

138135
[node name="Label" type="Label" parent="Multiplayer/VBoxContainer/Web Server"]
@@ -141,8 +138,8 @@ margin_bottom = 17.0
141138
text = "Web Server:"
142139

143140
[node name="WebServerIp" type="LineEdit" parent="Multiplayer/VBoxContainer/Web Server"]
144-
margin_left = 162.0
145-
margin_right = 362.0
141+
margin_left = 170.0
142+
margin_right = 370.0
146143
margin_bottom = 17.0
147144
rect_min_size = Vector2( 200, 0 )
148145
size_flags_horizontal = 10

Themes/Main.tres

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[gd_resource type="Theme" load_steps=14 format=2]
1+
[gd_resource type="Theme" load_steps=17 format=2]
22

33
[ext_resource path="res://Themes/Fonts/Roboto.tres" type="DynamicFont" id=1]
44
[ext_resource path="res://Themes/Button/Btn_Hover.tres" type="StyleBox" id=2]
@@ -39,6 +39,30 @@ border_color = Color( 0.188235, 0.188235, 0.188235, 1 )
3939
shadow_color = Color( 0.184314, 0.184314, 0.184314, 0.486275 )
4040
shadow_size = 3
4141

42+
[sub_resource type="StyleBoxFlat" id=7]
43+
bg_color = Color( 0.0862745, 0.0862745, 0.0862745, 1 )
44+
45+
[sub_resource type="StyleBoxFlat" id=8]
46+
content_margin_left = 5.0
47+
content_margin_right = 5.0
48+
bg_color = Color( 0.109804, 0.109804, 0.109804, 1 )
49+
expand_margin_left = 3.0
50+
expand_margin_right = 3.0
51+
expand_margin_top = 3.0
52+
expand_margin_bottom = 3.0
53+
54+
[sub_resource type="StyleBoxFlat" id=9]
55+
content_margin_left = 5.0
56+
content_margin_right = 5.0
57+
bg_color = Color( 0.341176, 0.341176, 0.341176, 1 )
58+
border_width_left = 2
59+
border_width_top = 2
60+
border_width_right = 2
61+
border_width_bottom = 2
62+
border_color = Color( 0.231373, 0.231373, 0.231373, 1 )
63+
expand_margin_top = 2.0
64+
expand_margin_bottom = 2.0
65+
4266
[resource]
4367
Button/fonts/font = ExtResource( 1 )
4468
Button/styles/disabled = ExtResource( 4 )
@@ -55,6 +79,9 @@ LineEdit/styles/focus = SubResource( 6 )
5579
LineEdit/styles/normal = ExtResource( 9 )
5680
PanelContainer/styles/panel = SubResource( 1 )
5781
RichTextLabel/constants/line_separation = 4
82+
TabContainer/styles/panel = SubResource( 7 )
83+
TabContainer/styles/tab_bg = SubResource( 8 )
84+
TabContainer/styles/tab_fg = SubResource( 9 )
5885
TextEdit/colors/brace_mismatch_color = Color( 0.372549, 0.372549, 0.372549, 1 )
5986
TextEdit/colors/font_color = Color( 0.615686, 0.615686, 0.615686, 1 )
6087
TextEdit/colors/font_color_readonly = Color( 1, 1, 1, 1 )

0 commit comments

Comments
 (0)