1
- [gd_scene load_steps =4 format =3 uid ="uid://cg3hylang5fxn" ]
1
+ [gd_scene load_steps =6 format =3 uid ="uid://cg3hylang5fxn" ]
2
2
3
3
[ext_resource type ="Script" path ="res://main.gd" id ="1_j0gfq" ]
4
4
[ext_resource type ="Script" path ="res://addons/SystemBarColorChanger/SystemBarColorChanger.gd" id ="2_wvwyx" ]
5
5
6
6
[sub_resource type ="StyleBoxFlat" id ="StyleBoxFlat_jwo12" ]
7
7
bg_color = Color (0.151276 , 0.151276 , 0.151276 , 1 )
8
8
9
+ [sub_resource type ="StyleBoxFlat" id ="StyleBoxFlat_tvfxw" ]
10
+ content_margin_left = 30.0
11
+ content_margin_right = 30.0
12
+ bg_color = Color (0.0588235 , 0.25098 , 0.25098 , 1 )
13
+
14
+ [sub_resource type ="StyleBoxFlat" id ="StyleBoxFlat_7vx7x" ]
15
+ content_margin_left = 30.0
16
+ content_margin_right = 30.0
17
+ bg_color = Color (0.0588235 , 0.25098 , 0.25098 , 1 )
18
+
9
19
[node name ="Main" type ="Control" ]
10
20
layout_mode = 3
11
21
anchors_preset = 15
@@ -22,71 +32,76 @@ anchor_right = 1.0
22
32
anchor_bottom = 1.0
23
33
grow_horizontal = 2
24
34
grow_vertical = 2
25
- color = Color (0 , 0.827718 , 0.828103 , 1 )
26
-
27
- [node name ="Button" type ="Button" parent ="." ]
28
- layout_mode = 1
29
- anchors_preset = 8
30
- anchor_left = 0.5
31
- anchor_top = 0.5
32
- anchor_right = 0.5
33
- anchor_bottom = 0.5
34
- offset_left = -140.0
35
- offset_top = -122.0
36
- offset_right = 140.0
37
- offset_bottom = -60.0
38
- grow_horizontal = 2
39
- grow_vertical = 2
40
- text = "Change Status Bar Color"
41
-
42
- [node name ="Button2" type ="Button" parent ="." ]
43
- layout_mode = 1
44
- anchors_preset = 8
45
- anchor_left = 0.5
46
- anchor_top = 0.5
47
- anchor_right = 0.5
48
- anchor_bottom = 0.5
49
- offset_left = -140.0
50
- offset_top = 21.0
51
- offset_right = 140.0
52
- offset_bottom = 83.0
53
- grow_horizontal = 2
54
- grow_vertical = 2
55
- text = "Change Navigation Bar Color"
35
+ color = Color (0 , 0.473914 , 0.474144 , 1 )
56
36
57
37
[node name ="SystemBarColorChanger" type ="Node" parent ="." ]
58
38
script = ExtResource ("2_wvwyx" )
59
39
60
- [node name ="ColorPickerButton " type ="ColorPickerButton " parent ="." ]
40
+ [node name ="VBoxContainer " type ="VBoxContainer " parent ="." ]
61
41
layout_mode = 1
62
- anchors_preset = 5
63
- anchor_left = 0.5
64
- anchor_right = 0.5
65
- offset_left = -122.5
66
- offset_top = 92 .0
67
- offset_right = 122.5
68
- offset_bottom = 161 .0
42
+ anchors_preset = 15
43
+ anchor_right = 1.0
44
+ anchor_bottom = 1.0
45
+ offset_left = 48.0
46
+ offset_top = 71 .0
47
+ offset_right = -62.0
48
+ offset_bottom = -76 .0
69
49
grow_horizontal = 2
50
+ grow_vertical = 2
51
+ theme_override_constants/separation = 30
52
+
53
+ [node name ="ColorPickerButton" type ="ColorPickerButton" parent ="VBoxContainer" ]
54
+ custom_minimum_size = Vector2 (0 , 60 )
55
+ layout_mode = 2
70
56
color = Color (0.594336 , 0.58547 , 0.868764 , 1 )
71
57
72
- [node name ="Label" type ="Label" parent ="ColorPickerButton" ]
58
+ [node name ="Label" type ="Label" parent ="VBoxContainer/ ColorPickerButton" ]
73
59
layout_mode = 1
74
60
anchors_preset = 7
75
61
anchor_left = 0.5
76
62
anchor_top = 1.0
77
63
anchor_right = 0.5
78
64
anchor_bottom = 1.0
79
- offset_left = -183 .5
80
- offset_top = 15 .0
81
- offset_right = 205 .5
82
- offset_bottom = 51 .0
65
+ offset_left = -199 .5
66
+ offset_top = 4 .0
67
+ offset_right = 199 .5
68
+ offset_bottom = 27 .0
83
69
grow_horizontal = 2
84
70
grow_vertical = 0
85
71
theme_override_styles/normal = SubResource ("StyleBoxFlat_jwo12" )
86
72
text = "Click On this ☝️ button to change color dynamically"
87
73
horizontal_alignment = 1
88
74
vertical_alignment = 1
89
75
90
- [connection signal ="pressed" from ="Button" to ="." method ="_on_button_pressed" ]
91
- [connection signal ="pressed" from ="Button2" to ="." method ="_on_button_2_pressed" ]
92
- [connection signal ="color_changed" from ="ColorPickerButton" to ="." method ="_on_color_picker_button_color_changed" ]
76
+ [node name ="HSeparator" type ="HSeparator" parent ="VBoxContainer" ]
77
+ layout_mode = 2
78
+
79
+ [node name ="light_status_bar" type ="CheckButton" parent ="VBoxContainer" ]
80
+ custom_minimum_size = Vector2 (0 , 60 )
81
+ layout_mode = 2
82
+ theme_override_styles/pressed = SubResource ("StyleBoxFlat_tvfxw" )
83
+ theme_override_styles/normal = SubResource ("StyleBoxFlat_7vx7x" )
84
+ text = "LIght Status Bar"
85
+
86
+ [node name ="light_navigation_bar" type ="CheckButton" parent ="VBoxContainer" ]
87
+ custom_minimum_size = Vector2 (0 , 60 )
88
+ layout_mode = 2
89
+ theme_override_styles/pressed = SubResource ("StyleBoxFlat_tvfxw" )
90
+ theme_override_styles/normal = SubResource ("StyleBoxFlat_7vx7x" )
91
+ text = "LIght Navigation Bar"
92
+
93
+ [node name ="status_bar_color" type ="Button" parent ="VBoxContainer" ]
94
+ custom_minimum_size = Vector2 (0 , 60 )
95
+ layout_mode = 2
96
+ text = "Change Status Bar Color"
97
+
98
+ [node name ="navigation_bar_color" type ="Button" parent ="VBoxContainer" ]
99
+ custom_minimum_size = Vector2 (0 , 60 )
100
+ layout_mode = 2
101
+ text = "Change Navigation Bar Color"
102
+
103
+ [connection signal ="color_changed" from ="VBoxContainer/ColorPickerButton" to ="." method ="_on_color_picker_button_color_changed" ]
104
+ [connection signal ="toggled" from ="VBoxContainer/light_status_bar" to ="." method ="_on_light_status_bar_toggled" ]
105
+ [connection signal ="toggled" from ="VBoxContainer/light_navigation_bar" to ="." method ="_on_light_navigation_bar_toggled" ]
106
+ [connection signal ="pressed" from ="VBoxContainer/status_bar_color" to ="." method ="_on_button_pressed" ]
107
+ [connection signal ="pressed" from ="VBoxContainer/navigation_bar_color" to ="." method ="_on_button_2_pressed" ]
0 commit comments