|
1 | 1 | [gd_scene load_steps=8 format=3 uid="uid://dtl3cy3awyva1"] |
2 | 2 |
|
3 | 3 | [ext_resource type="Script" uid="uid://oiyx056majqr" path="res://main.gd" id="1_5g8lr"] |
4 | | -[ext_resource type="Texture2D" uid="uid://bgs0m1punaqv3" path="res://addons/SystemBarColorChanger/icon.png" id="2_xiny2"] |
| 4 | +[ext_resource type="Texture2D" uid="uid://5yy5r3beaoiq" path="res://addons/SystemBarColorChanger/icon.png" id="2_xiny2"] |
5 | 5 |
|
6 | | -[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_qoqou"] |
7 | | - |
8 | | -[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_o2o5j"] |
| 6 | +[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_1pedh"] |
9 | 7 | content_margin_left = 20.0 |
10 | 8 | bg_color = Color(0.0588235, 0.172549, 0.172549, 1) |
11 | 9 |
|
12 | | -[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_6mb2y"] |
| 10 | +[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_h1amm"] |
13 | 11 | content_margin_left = 20.0 |
14 | 12 | bg_color = Color(0.0588235, 0.172549, 0.172549, 1) |
15 | 13 |
|
16 | | -[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_h1amm"] |
| 14 | +[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_6mb2y"] |
17 | 15 | content_margin_left = 20.0 |
18 | 16 | bg_color = Color(0.0588235, 0.172549, 0.172549, 1) |
19 | 17 |
|
20 | | -[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_1pedh"] |
| 18 | +[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_o2o5j"] |
21 | 19 | content_margin_left = 20.0 |
22 | 20 | bg_color = Color(0.0588235, 0.172549, 0.172549, 1) |
23 | 21 |
|
| 22 | +[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_qoqou"] |
| 23 | + |
24 | 24 | [node name="demo" type="Control"] |
25 | 25 | layout_mode = 3 |
26 | 26 | anchors_preset = 15 |
@@ -74,27 +74,21 @@ text = "Click to change color dynamically" |
74 | 74 | horizontal_alignment = 1 |
75 | 75 | vertical_alignment = 1 |
76 | 76 |
|
77 | | -[node name="set_status_color" type="Button" parent="VBoxContainer"] |
| 77 | +[node name="set_system_color" type="Button" parent="VBoxContainer"] |
78 | 78 | custom_minimum_size = Vector2(0, 80) |
79 | 79 | layout_mode = 2 |
80 | | -text = "Set Status Bar Color" |
81 | | - |
82 | | -[node name="set_nav_color" type="Button" parent="VBoxContainer"] |
83 | | -custom_minimum_size = Vector2(0, 80) |
84 | | -layout_mode = 2 |
85 | | -text = "Set Navigation Bar Color" |
| 80 | +text = "Set System Bar Color" |
86 | 81 |
|
87 | 82 | [node name="translucent_system_bars" type="CheckButton" parent="VBoxContainer"] |
88 | 83 | custom_minimum_size = Vector2(0, 80) |
89 | 84 | layout_mode = 2 |
90 | | -theme_override_styles/focus = SubResource("StyleBoxEmpty_qoqou") |
91 | | -theme_override_styles/hover_pressed = SubResource("StyleBoxFlat_o2o5j") |
92 | | -theme_override_styles/hover = SubResource("StyleBoxFlat_6mb2y") |
93 | | -theme_override_styles/pressed = SubResource("StyleBoxFlat_h1amm") |
94 | 85 | theme_override_styles/normal = SubResource("StyleBoxFlat_1pedh") |
| 86 | +theme_override_styles/pressed = SubResource("StyleBoxFlat_h1amm") |
| 87 | +theme_override_styles/hover = SubResource("StyleBoxFlat_6mb2y") |
| 88 | +theme_override_styles/hover_pressed = SubResource("StyleBoxFlat_o2o5j") |
| 89 | +theme_override_styles/focus = SubResource("StyleBoxEmpty_qoqou") |
95 | 90 | text = "Translucent System Bars" |
96 | 91 |
|
97 | 92 | [connection signal="color_changed" from="VBoxContainer/ColorPickerButton" to="." method="_on_color_picker_button_color_changed"] |
98 | | -[connection signal="pressed" from="VBoxContainer/set_status_color" to="." method="_on_set_status_color_pressed"] |
99 | | -[connection signal="pressed" from="VBoxContainer/set_nav_color" to="." method="_on_set_nav_color_pressed"] |
| 93 | +[connection signal="pressed" from="VBoxContainer/set_system_color" to="." method="_on_set_system_color_pressed"] |
100 | 94 | [connection signal="toggled" from="VBoxContainer/translucent_system_bars" to="." method="_on_translucent_system_bars_toggled"] |
0 commit comments