multi-tabs
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
[ext_resource type="Texture2D" uid="uid://gq8g7t4s3ryg" path="res://Assets/Icons/x.svg" id="2_pisds"]
|
||||
[ext_resource type="StyleBox" uid="uid://fd1nftmqox32" path="res://Scenes/Styles/TabHoverDefault.tres" id="3_kjcxk"]
|
||||
[ext_resource type="Texture2D" uid="uid://c7u7a1u1v04bx" path="res://Scenes/Styles/TabGradientDefault.tres" id="3_q3baj"]
|
||||
[ext_resource type="StyleBox" uid="uid://bx3sgro1ageff" path="res://Scenes/Styles/TabDefault.tres" id="4_ib6pj"]
|
||||
[ext_resource type="Texture2D" uid="uid://dglkjumm1q4lo" path="res://Assets/Icons/23x23-empty.svg" id="5_ib6pj"]
|
||||
[ext_resource type="Texture2D" uid="uid://bqpx2lgo0yecb" path="res://Assets/Icons/globe.svg" id="6_ib6pj"]
|
||||
[ext_resource type="StyleBox" uid="uid://dn8exdnk8tjce" path="res://Scenes/Styles/CloseButtonHover.tres" id="6_pisds"]
|
||||
@@ -12,6 +11,10 @@
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_6bp64"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_1ohlo"]
|
||||
content_margin_left = 8.0
|
||||
content_margin_right = 8.0
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_344ge"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_ib6pj"]
|
||||
@@ -103,7 +106,7 @@ unique_name_in_owner = true
|
||||
z_index = -2
|
||||
clip_contents = true
|
||||
layout_mode = 1
|
||||
offset_right = 47.0
|
||||
offset_right = 350.0
|
||||
offset_bottom = 50.0
|
||||
focus_mode = 0
|
||||
mouse_default_cursor_shape = 2
|
||||
@@ -113,7 +116,7 @@ theme_override_constants/icon_max_width = 23
|
||||
theme_override_styles/focus = SubResource("StyleBoxEmpty_6bp64")
|
||||
theme_override_styles/hover = ExtResource("3_kjcxk")
|
||||
theme_override_styles/pressed = ExtResource("3_kjcxk")
|
||||
theme_override_styles/normal = ExtResource("4_ib6pj")
|
||||
theme_override_styles/normal = SubResource("StyleBoxEmpty_1ohlo")
|
||||
action_mode = 0
|
||||
text = "New Tab"
|
||||
icon = ExtResource("5_ib6pj")
|
||||
@@ -124,17 +127,18 @@ text_overrun_behavior = 3
|
||||
unique_name_in_owner = true
|
||||
z_index = 1
|
||||
layout_mode = 0
|
||||
offset_left = -64.0
|
||||
offset_top = 2.0
|
||||
offset_bottom = 50.0
|
||||
offset_left = 252.25
|
||||
offset_top = 0.995
|
||||
offset_right = 316.25
|
||||
offset_bottom = 48.995
|
||||
texture = ExtResource("3_q3baj")
|
||||
|
||||
[node name="Icon" type="TextureRect" parent="Button"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(23, 23)
|
||||
layout_mode = 0
|
||||
offset_left = -23.0
|
||||
offset_left = 10.03
|
||||
offset_top = 13.0
|
||||
offset_right = 33.03
|
||||
offset_bottom = 36.0
|
||||
texture = ExtResource("6_ib6pj")
|
||||
expand_mode = 1
|
||||
@@ -144,12 +148,12 @@ unique_name_in_owner = true
|
||||
z_index = 2
|
||||
custom_minimum_size = Vector2(34, 34)
|
||||
layout_mode = 0
|
||||
offset_left = -34.0
|
||||
offset_left = 315.39
|
||||
offset_top = 12.0
|
||||
offset_right = 349.39
|
||||
offset_bottom = 46.0
|
||||
scale = Vector2(0.75, 0.75)
|
||||
focus_mode = 0
|
||||
mouse_filter = 2
|
||||
mouse_default_cursor_shape = 2
|
||||
theme_override_styles/focus = SubResource("StyleBoxEmpty_344ge")
|
||||
theme_override_styles/hover = ExtResource("6_pisds")
|
||||
@@ -167,3 +171,4 @@ speed_scale = 2.0
|
||||
[connection signal="mouse_entered" from="Button" to="." method="_on_button_mouse_entered"]
|
||||
[connection signal="mouse_exited" from="Button" to="." method="_on_button_mouse_exited"]
|
||||
[connection signal="pressed" from="Button" to="." method="_on_button_pressed"]
|
||||
[connection signal="pressed" from="Button/CloseButton" to="." method="_on_close_button_pressed"]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=36 format=3 uid="uid://bytm7bt2s4ak8"]
|
||||
[gd_scene load_steps=35 format=3 uid="uid://bytm7bt2s4ak8"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bg5iqnwic1rio" path="res://Scripts/main.gd" id="1_8q3xr"]
|
||||
[ext_resource type="Texture2D" uid="uid://df1m4j7uxi63v" path="res://Assets/Icons/chevron-down.svg" id="2_6bp64"]
|
||||
@@ -85,9 +85,6 @@ expand_margin_left = 40.0
|
||||
LineEdit/styles/focus = SubResource("StyleBoxFlat_ee4r6")
|
||||
LineEdit/styles/normal = SubResource("StyleBoxFlat_cbgmd")
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_white"]
|
||||
bg_color = Color(1, 1, 1, 1)
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_6iyac"]
|
||||
bg_color = Color(0.105882, 0.105882, 0.105882, 1)
|
||||
|
||||
@@ -114,7 +111,7 @@ grow_vertical = 2
|
||||
[node name="Spacer" type="Control" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="TabContainer" type="HFlowContainer" parent="VBoxContainer"]
|
||||
[node name="TabContainer" type="HBoxContainer" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
script = ExtResource("2_hptm8")
|
||||
|
||||
@@ -147,6 +144,10 @@ theme_override_styles/normal = SubResource("StyleBoxFlat_6bp64")
|
||||
icon = ExtResource("5_ynf5e")
|
||||
icon_alignment = 1
|
||||
|
||||
[node name="Spacer3" type="Control" parent="VBoxContainer/TabContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="Spacer2" type="Control" parent="VBoxContainer"]
|
||||
custom_minimum_size = Vector2(0, 5)
|
||||
layout_mode = 2
|
||||
@@ -284,19 +285,6 @@ layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="WebsiteBackground" type="Panel" parent="."]
|
||||
unique_name_in_owner = true
|
||||
z_index = -1
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_top = 122.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_white")
|
||||
|
||||
[node name="Panel" type="Panel" parent="."]
|
||||
z_index = -5
|
||||
layout_mode = 1
|
||||
|
||||
Reference in New Issue
Block a user