redesign begining

This commit is contained in:
Nordup 2024-11-18 04:38:33 +04:00
parent ae84731913
commit 0b61c43576
23 changed files with 560 additions and 535 deletions

View file

@ -0,0 +1,21 @@
[gd_scene load_steps=4 format=3 uid="uid://xagbhqfidf2"]
[ext_resource type="StyleBox" uid="uid://b4j4kd2p3aypx" path="res://assets/styles/button.stylebox" id="1_n17s0"]
[ext_resource type="StyleBox" uid="uid://ck127amfs72dv" path="res://assets/styles/button_hover.stylebox" id="2_rltks"]
[ext_resource type="Texture2D" uid="uid://bevejhgdw7mey" path="res://assets/new_textures/close.svg" id="2_yeqne"]
[node name="Button" type="Button"]
texture_filter = 4
custom_minimum_size = Vector2(26, 26)
size_flags_vertical = 4
theme_override_colors/icon_normal_color = Color(0.831373, 0.831373, 0.831373, 1)
theme_override_colors/icon_disabled_color = Color(0.431373, 0.435294, 0.494118, 1)
theme_override_styles/focus = ExtResource("1_n17s0")
theme_override_styles/disabled = ExtResource("1_n17s0")
theme_override_styles/hover = ExtResource("2_rltks")
theme_override_styles/pressed = ExtResource("1_n17s0")
theme_override_styles/normal = ExtResource("1_n17s0")
icon = ExtResource("2_yeqne")
expand_icon = true
[connection signal="button_up" from="." to="." method="release_focus"]

View file

@ -23,16 +23,16 @@
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_hyysn"]
content_margin_left = 40.0
content_margin_right = 40.0
bg_color = Color(0.207843, 0.164706, 0.47451, 1)
bg_color = Color(0.0862745, 0.0901961, 0.117647, 1)
border_width_left = 1
border_width_top = 1
border_width_right = 1
border_width_bottom = 1
border_color = Color(0.176471, 0.14902, 0.352941, 1)
corner_radius_top_left = 6
corner_radius_top_right = 6
corner_radius_bottom_right = 6
corner_radius_bottom_left = 6
border_color = Color(0.0823529, 0.0823529, 0.105882, 1)
corner_radius_top_left = 15
corner_radius_top_right = 15
corner_radius_bottom_right = 15
corner_radius_bottom_left = 15
corner_detail = 10
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_mh73y"]
@ -50,25 +50,22 @@ corner_detail = 10
[node name="Search" type="LineEdit" node_paths=PackedStringArray("prompt_panel")]
auto_translate_mode = 2
custom_minimum_size = Vector2(1000, 40)
anchors_preset = 8
anchor_left = 0.5
anchors_preset = 14
anchor_top = 0.5
anchor_right = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
offset_left = -500.0
offset_top = -20.0
offset_right = 500.0
offset_bottom = 20.0
offset_top = -16.5
offset_bottom = 15.5
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 3
localize_numeral_system = false
focus_next = NodePath("Prompt")
focus_mode = 1
theme_override_colors/font_placeholder_color = Color(1, 1, 1, 0.498039)
theme_override_colors/font_color = Color(1, 1, 1, 0.8)
theme_override_colors/font_placeholder_color = Color(0.431373, 0.435294, 0.494118, 1)
theme_override_colors/font_color = Color(0.831373, 0.831373, 0.831373, 1)
theme_override_fonts/font = ExtResource("1_cimak")
theme_override_font_sizes/font_size = 20
theme_override_font_sizes/font_size = 14
theme_override_styles/focus = SubResource("StyleBoxFlat_hyysn")
theme_override_styles/normal = SubResource("StyleBoxFlat_hyysn")
placeholder_text = "Search or enter address"
@ -77,7 +74,7 @@ gate_events = ExtResource("2_13io8")
prompt_panel = NodePath("Prompt/Panel")
[node name="SearchStatus" type="Control" parent="." node_paths=PackedStringArray("search_line_edit", "search", "downloading", "success", "error")]
self_modulate = Color(1, 1, 1, 0.8)
self_modulate = Color(0.831373, 0.831373, 0.831373, 1)
layout_mode = 1
anchors_preset = 4
anchor_top = 0.5

View file

@ -0,0 +1,83 @@
[gd_scene load_steps=7 format=3 uid="uid://dkfy3rcfbxqc6"]
[ext_resource type="StyleBox" uid="uid://cf4jgdfsjmjxl" path="res://assets/styles/tab.stylebox" id="1_8hbf0"]
[ext_resource type="Texture2D" uid="uid://bw1cffhlt112i" path="res://assets/new_textures/icon-round.svg" id="1_jc4ra"]
[ext_resource type="LabelSettings" uid="uid://bo2334w4lf3ug" path="res://assets/styles/text.tres" id="2_gll4d"]
[ext_resource type="Texture2D" uid="uid://cli88m5w3op6l" path="res://assets/new_textures/close-tab.svg" id="2_y6odh"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_33kce"]
corner_radius_top_left = 10
corner_radius_top_right = 10
corner_radius_bottom_right = 10
corner_radius_bottom_left = 10
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_id0w2"]
[node name="Tab" type="Control"]
custom_minimum_size = Vector2(180, 32)
layout_mode = 3
anchors_preset = 4
anchor_top = 0.5
anchor_bottom = 0.5
offset_top = -16.0
offset_right = 180.0
offset_bottom = 16.0
grow_vertical = 2
[node name="Panel" type="Panel" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = ExtResource("1_8hbf0")
[node name="MarginContainer" type="MarginContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/margin_left = 7
theme_override_constants/margin_right = 10
[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer"]
layout_mode = 2
theme_override_constants/separation = 6
[node name="Panel" type="Panel" parent="MarginContainer/HBoxContainer"]
clip_children = 1
custom_minimum_size = Vector2(19, 19)
layout_mode = 2
size_flags_vertical = 4
theme_override_styles/panel = SubResource("StyleBoxFlat_33kce")
[node name="TextureRect" type="TextureRect" parent="MarginContainer/HBoxContainer/Panel"]
texture_filter = 6
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_vertical = 4
texture = ExtResource("1_jc4ra")
expand_mode = 1
stretch_mode = 4
[node name="Label" type="Label" parent="MarginContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
text = "New Tab"
label_settings = ExtResource("2_gll4d")
[node name="Button" type="Button" parent="MarginContainer/HBoxContainer"]
custom_minimum_size = Vector2(14, 14)
layout_mode = 2
size_flags_vertical = 4
theme_override_colors/icon_normal_color = Color(0.831373, 0.831373, 0.831373, 1)
theme_override_styles/normal = SubResource("StyleBoxEmpty_id0w2")
icon = ExtResource("2_y6odh")
expand_icon = true