URL UI, history UI
This commit is contained in:
326
flumi/Scenes/BrowserMenus/history.tscn
Normal file
326
flumi/Scenes/BrowserMenus/history.tscn
Normal file
@@ -0,0 +1,326 @@
|
||||
[gd_scene load_steps=15 format=3 uid="uid://cn24pafwdpb1q"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://ctpe0lbehepen" path="res://Assets/gurted.svg" id="1_occ3h"]
|
||||
[ext_resource type="Script" uid="uid://ektopbvnhfga" path="res://Scripts/history.gd" id="1_yn8i4"]
|
||||
[ext_resource type="PackedScene" uid="uid://3smiker6ni50" path="res://Scenes/BrowserMenus/history_entry.tscn" id="2_a5287"]
|
||||
[ext_resource type="Texture2D" uid="uid://gq8g7t4s3ryg" path="res://Assets/Icons/x.svg" id="2_ijpe2"]
|
||||
[ext_resource type="Theme" uid="uid://bn6rbmdy60lhr" path="res://Scenes/Styles/BrowserText.tres" id="3_yoadi"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_ijpe2"]
|
||||
content_margin_left = 15.0
|
||||
content_margin_top = 5.0
|
||||
content_margin_right = 15.0
|
||||
content_margin_bottom = 5.0
|
||||
bg_color = Color(0.105882, 0.105882, 0.105882, 1)
|
||||
corner_radius_top_left = 15
|
||||
corner_radius_top_right = 15
|
||||
corner_radius_bottom_right = 15
|
||||
corner_radius_bottom_left = 15
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_yn8i4"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_a8gu8"]
|
||||
bg_color = Color(0.169245, 0.169245, 0.169245, 1)
|
||||
border_width_left = 2
|
||||
border_width_top = 2
|
||||
border_width_right = 2
|
||||
border_width_bottom = 2
|
||||
border_color = Color(0.247059, 0.466667, 0.807843, 1)
|
||||
corner_radius_top_left = 25
|
||||
corner_radius_top_right = 25
|
||||
corner_radius_bottom_right = 25
|
||||
corner_radius_bottom_left = 25
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_31fx5"]
|
||||
draw_center = false
|
||||
border_width_left = 2
|
||||
border_width_top = 2
|
||||
border_width_right = 2
|
||||
border_width_bottom = 2
|
||||
border_color = Color(0.247059, 0.466667, 0.807843, 1)
|
||||
corner_radius_top_left = 25
|
||||
corner_radius_top_right = 25
|
||||
corner_radius_bottom_right = 25
|
||||
corner_radius_bottom_left = 25
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_8gbba"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_8gbba"]
|
||||
bg_color = Color(0.168627, 0.168627, 0.168627, 1)
|
||||
corner_radius_top_left = 15
|
||||
corner_radius_top_right = 15
|
||||
corner_radius_bottom_right = 15
|
||||
corner_radius_bottom_left = 15
|
||||
expand_margin_left = 40.0
|
||||
|
||||
[sub_resource type="Theme" id="Theme_ijpe2"]
|
||||
LineEdit/styles/focus = SubResource("StyleBoxEmpty_8gbba")
|
||||
LineEdit/styles/normal = SubResource("StyleBoxFlat_8gbba")
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_a5287"]
|
||||
content_margin_left = 10.0
|
||||
bg_color = Color(0.219501, 0.219501, 0.219501, 1)
|
||||
corner_radius_top_left = 15
|
||||
corner_radius_top_right = 15
|
||||
corner_radius_bottom_right = 15
|
||||
corner_radius_bottom_left = 15
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_yn8i4"]
|
||||
content_margin_left = 15.0
|
||||
content_margin_top = 15.0
|
||||
content_margin_right = 15.0
|
||||
content_margin_bottom = 5.0
|
||||
bg_color = Color(0.105882, 0.105882, 0.105882, 1)
|
||||
corner_radius_top_left = 15
|
||||
corner_radius_top_right = 15
|
||||
corner_radius_bottom_right = 15
|
||||
corner_radius_bottom_left = 15
|
||||
|
||||
[node name="History" type="MarginContainer"]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_constants/margin_left = 20
|
||||
theme_override_constants/margin_top = 20
|
||||
theme_override_constants/margin_right = 20
|
||||
script = ExtResource("1_yn8i4")
|
||||
|
||||
[node name="Control" type="Control" parent="."]
|
||||
custom_minimum_size = Vector2(400, 100)
|
||||
layout_mode = 2
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="Control"]
|
||||
layout_mode = 1
|
||||
offset_right = 417.0
|
||||
offset_bottom = 417.0
|
||||
scale = Vector2(0.105, 0.105)
|
||||
texture = ExtResource("1_occ3h")
|
||||
stretch_mode = 2
|
||||
|
||||
[node name="RichTextLabel" type="RichTextLabel" parent="Control"]
|
||||
layout_mode = 0
|
||||
offset_left = 50.0
|
||||
offset_top = 9.0
|
||||
offset_right = 339.0
|
||||
offset_bottom = 85.0
|
||||
theme_override_font_sizes/bold_font_size = 26
|
||||
bbcode_enabled = true
|
||||
text = "[b]History[/b]"
|
||||
|
||||
[node name="Main" type="VBoxContainer" parent="."]
|
||||
custom_minimum_size = Vector2(600, 0)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
theme_override_constants/separation = 15
|
||||
|
||||
[node name="DeleteMenu" type="PanelContainer" parent="Main"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_ijpe2")
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="Main/DeleteMenu"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="CancelButton" type="Button" parent="Main/DeleteMenu/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
mouse_default_cursor_shape = 2
|
||||
theme_override_styles/focus = SubResource("StyleBoxEmpty_yn8i4")
|
||||
icon = ExtResource("2_ijpe2")
|
||||
flat = true
|
||||
icon_alignment = 1
|
||||
|
||||
[node name="RichTextLabel" type="RichTextLabel" parent="Main/DeleteMenu/HBoxContainer"]
|
||||
custom_minimum_size = Vector2(200, 0)
|
||||
layout_mode = 2
|
||||
text = "1 selected"
|
||||
fit_content = true
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="DeleteButton" type="Button" parent="Main/DeleteMenu/HBoxContainer"]
|
||||
custom_minimum_size = Vector2(80, 35)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 10
|
||||
mouse_default_cursor_shape = 2
|
||||
theme = ExtResource("3_yoadi")
|
||||
theme_override_colors/font_color = Color(0.781065, 0.858202, 0.977018, 1)
|
||||
theme_override_styles/hover = SubResource("StyleBoxFlat_a8gu8")
|
||||
theme_override_styles/normal = SubResource("StyleBoxFlat_31fx5")
|
||||
text = "Delete"
|
||||
|
||||
[node name="LineEdit" type="LineEdit" parent="Main"]
|
||||
custom_minimum_size = Vector2(0, 45)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme = SubResource("Theme_ijpe2")
|
||||
theme_override_styles/normal = SubResource("StyleBoxFlat_a5287")
|
||||
placeholder_text = "Search history..."
|
||||
caret_blink = true
|
||||
|
||||
[node name="HSeparator" type="HSeparator" parent="Main"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="PanelContainer2" type="PanelContainer" parent="Main"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_yn8i4")
|
||||
|
||||
[node name="ScrollContainer" type="ScrollContainer" parent="Main/PanelContainer2"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="HistoryEntryContainer" type="VBoxContainer" parent="Main/PanelContainer2/ScrollContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
alignment = 1
|
||||
|
||||
[node name="HistoryEntry" parent="Main/PanelContainer2/ScrollContainer/HistoryEntryContainer" instance=ExtResource("2_a5287")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HistoryEntry2" parent="Main/PanelContainer2/ScrollContainer/HistoryEntryContainer" instance=ExtResource("2_a5287")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HistoryEntry3" parent="Main/PanelContainer2/ScrollContainer/HistoryEntryContainer" instance=ExtResource("2_a5287")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HistoryEntry4" parent="Main/PanelContainer2/ScrollContainer/HistoryEntryContainer" instance=ExtResource("2_a5287")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HistoryEntry5" parent="Main/PanelContainer2/ScrollContainer/HistoryEntryContainer" instance=ExtResource("2_a5287")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HistoryEntry6" parent="Main/PanelContainer2/ScrollContainer/HistoryEntryContainer" instance=ExtResource("2_a5287")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HistoryEntry7" parent="Main/PanelContainer2/ScrollContainer/HistoryEntryContainer" instance=ExtResource("2_a5287")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HistoryEntry8" parent="Main/PanelContainer2/ScrollContainer/HistoryEntryContainer" instance=ExtResource("2_a5287")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HistoryEntry9" parent="Main/PanelContainer2/ScrollContainer/HistoryEntryContainer" instance=ExtResource("2_a5287")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HistoryEntry10" parent="Main/PanelContainer2/ScrollContainer/HistoryEntryContainer" instance=ExtResource("2_a5287")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HistoryEntry11" parent="Main/PanelContainer2/ScrollContainer/HistoryEntryContainer" instance=ExtResource("2_a5287")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HistoryEntry12" parent="Main/PanelContainer2/ScrollContainer/HistoryEntryContainer" instance=ExtResource("2_a5287")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HistoryEntry13" parent="Main/PanelContainer2/ScrollContainer/HistoryEntryContainer" instance=ExtResource("2_a5287")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HistoryEntry14" parent="Main/PanelContainer2/ScrollContainer/HistoryEntryContainer" instance=ExtResource("2_a5287")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HistoryEntry15" parent="Main/PanelContainer2/ScrollContainer/HistoryEntryContainer" instance=ExtResource("2_a5287")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HistoryEntry16" parent="Main/PanelContainer2/ScrollContainer/HistoryEntryContainer" instance=ExtResource("2_a5287")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HistoryEntry17" parent="Main/PanelContainer2/ScrollContainer/HistoryEntryContainer" instance=ExtResource("2_a5287")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HistoryEntry18" parent="Main/PanelContainer2/ScrollContainer/HistoryEntryContainer" instance=ExtResource("2_a5287")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HistoryEntry19" parent="Main/PanelContainer2/ScrollContainer/HistoryEntryContainer" instance=ExtResource("2_a5287")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HistoryEntry20" parent="Main/PanelContainer2/ScrollContainer/HistoryEntryContainer" instance=ExtResource("2_a5287")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HistoryEntry21" parent="Main/PanelContainer2/ScrollContainer/HistoryEntryContainer" instance=ExtResource("2_a5287")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HistoryEntry22" parent="Main/PanelContainer2/ScrollContainer/HistoryEntryContainer" instance=ExtResource("2_a5287")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HistoryEntry23" parent="Main/PanelContainer2/ScrollContainer/HistoryEntryContainer" instance=ExtResource("2_a5287")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HistoryEntry24" parent="Main/PanelContainer2/ScrollContainer/HistoryEntryContainer" instance=ExtResource("2_a5287")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HistoryEntry25" parent="Main/PanelContainer2/ScrollContainer/HistoryEntryContainer" instance=ExtResource("2_a5287")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HistoryEntry26" parent="Main/PanelContainer2/ScrollContainer/HistoryEntryContainer" instance=ExtResource("2_a5287")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HistoryEntry27" parent="Main/PanelContainer2/ScrollContainer/HistoryEntryContainer" instance=ExtResource("2_a5287")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HistoryEntry28" parent="Main/PanelContainer2/ScrollContainer/HistoryEntryContainer" instance=ExtResource("2_a5287")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HistoryEntry29" parent="Main/PanelContainer2/ScrollContainer/HistoryEntryContainer" instance=ExtResource("2_a5287")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HistoryEntry30" parent="Main/PanelContainer2/ScrollContainer/HistoryEntryContainer" instance=ExtResource("2_a5287")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HistoryEntry31" parent="Main/PanelContainer2/ScrollContainer/HistoryEntryContainer" instance=ExtResource("2_a5287")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HistoryEntry32" parent="Main/PanelContainer2/ScrollContainer/HistoryEntryContainer" instance=ExtResource("2_a5287")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HistoryEntry33" parent="Main/PanelContainer2/ScrollContainer/HistoryEntryContainer" instance=ExtResource("2_a5287")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HistoryEntry34" parent="Main/PanelContainer2/ScrollContainer/HistoryEntryContainer" instance=ExtResource("2_a5287")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HistoryEntry35" parent="Main/PanelContainer2/ScrollContainer/HistoryEntryContainer" instance=ExtResource("2_a5287")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HistoryEntry36" parent="Main/PanelContainer2/ScrollContainer/HistoryEntryContainer" instance=ExtResource("2_a5287")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HistoryEntry37" parent="Main/PanelContainer2/ScrollContainer/HistoryEntryContainer" instance=ExtResource("2_a5287")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HistoryEntry38" parent="Main/PanelContainer2/ScrollContainer/HistoryEntryContainer" instance=ExtResource("2_a5287")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HistoryEntry39" parent="Main/PanelContainer2/ScrollContainer/HistoryEntryContainer" instance=ExtResource("2_a5287")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HistoryEntry40" parent="Main/PanelContainer2/ScrollContainer/HistoryEntryContainer" instance=ExtResource("2_a5287")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HistoryEntry41" parent="Main/PanelContainer2/ScrollContainer/HistoryEntryContainer" instance=ExtResource("2_a5287")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HistoryEntry42" parent="Main/PanelContainer2/ScrollContainer/HistoryEntryContainer" instance=ExtResource("2_a5287")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HistoryEntry43" parent="Main/PanelContainer2/ScrollContainer/HistoryEntryContainer" instance=ExtResource("2_a5287")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HistoryEntry44" parent="Main/PanelContainer2/ScrollContainer/HistoryEntryContainer" instance=ExtResource("2_a5287")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HistoryEntry45" parent="Main/PanelContainer2/ScrollContainer/HistoryEntryContainer" instance=ExtResource("2_a5287")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HistoryEntry46" parent="Main/PanelContainer2/ScrollContainer/HistoryEntryContainer" instance=ExtResource("2_a5287")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HistoryEntry47" parent="Main/PanelContainer2/ScrollContainer/HistoryEntryContainer" instance=ExtResource("2_a5287")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HistoryEntry48" parent="Main/PanelContainer2/ScrollContainer/HistoryEntryContainer" instance=ExtResource("2_a5287")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HistoryEntry49" parent="Main/PanelContainer2/ScrollContainer/HistoryEntryContainer" instance=ExtResource("2_a5287")]
|
||||
layout_mode = 2
|
||||
|
||||
[connection signal="pressed" from="Main/DeleteMenu/HBoxContainer/CancelButton" to="." method="_on_cancel_button_pressed"]
|
||||
42
flumi/Scenes/BrowserMenus/history_entry.tscn
Normal file
42
flumi/Scenes/BrowserMenus/history_entry.tscn
Normal file
@@ -0,0 +1,42 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://3smiker6ni50"]
|
||||
|
||||
[ext_resource type="Theme" uid="uid://bn6rbmdy60lhr" path="res://Scenes/Styles/BrowserText.tres" id="1_4plhl"]
|
||||
[ext_resource type="Script" uid="uid://bw5pr4wrf780h" path="res://Scripts/history_entry.gd" id="1_h5c6k"]
|
||||
[ext_resource type="Texture2D" uid="uid://blskvfjswul1d" path="res://Assets/Icons/checkbox_white.svg" id="2_h5c6k"]
|
||||
[ext_resource type="Texture2D" uid="uid://bqpx2lgo0yecb" path="res://Assets/Icons/globe.svg" id="2_k4hqm"]
|
||||
|
||||
[node name="HistoryEntry" type="HBoxContainer"]
|
||||
theme_override_constants/separation = 10
|
||||
script = ExtResource("1_h5c6k")
|
||||
|
||||
[node name="CheckBox" type="CheckBox" parent="."]
|
||||
layout_mode = 2
|
||||
theme = ExtResource("1_4plhl")
|
||||
theme_override_icons/unchecked = ExtResource("2_h5c6k")
|
||||
flat = true
|
||||
|
||||
[node name="RichTextLabel" type="RichTextLabel" parent="."]
|
||||
custom_minimum_size = Vector2(60, 0)
|
||||
layout_mode = 2
|
||||
text = "2:00PM"
|
||||
fit_content = true
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="Spacer" type="Control" parent="."]
|
||||
custom_minimum_size = Vector2(50, 0)
|
||||
layout_mode = 2
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="."]
|
||||
custom_minimum_size = Vector2(24, 24)
|
||||
layout_mode = 2
|
||||
texture = ExtResource("2_k4hqm")
|
||||
stretch_mode = 3
|
||||
|
||||
[node name="RichTextLabel2" type="RichTextLabel" parent="."]
|
||||
custom_minimum_size = Vector2(350, 0)
|
||||
layout_mode = 2
|
||||
text = "Selection - Google Fonts"
|
||||
vertical_alignment = 1
|
||||
|
||||
[connection signal="toggled" from="CheckBox" to="." method="_on_check_box_toggled"]
|
||||
@@ -112,10 +112,10 @@ content_margin_top = 15.0
|
||||
content_margin_right = 15.0
|
||||
content_margin_bottom = 15.0
|
||||
bg_color = Color(0.168627, 0.168627, 0.168627, 1)
|
||||
corner_radius_top_left = 15
|
||||
corner_radius_top_right = 15
|
||||
corner_radius_bottom_right = 15
|
||||
corner_radius_bottom_left = 15
|
||||
corner_radius_top_left = 10
|
||||
corner_radius_top_right = 10
|
||||
corner_radius_bottom_right = 10
|
||||
corner_radius_bottom_left = 10
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_ya683"]
|
||||
content_margin_left = 15.0
|
||||
|
||||
@@ -8,6 +8,7 @@ anchors_preset = 10
|
||||
anchor_right = 1.0
|
||||
offset_bottom = 19.0
|
||||
grow_horizontal = 2
|
||||
size_flags_horizontal = 3
|
||||
focus_mode = 2
|
||||
mouse_default_cursor_shape = 1
|
||||
theme = ExtResource("2_1glvj")
|
||||
@@ -15,5 +16,6 @@ theme_override_colors/default_color = Color(0, 0, 0, 1)
|
||||
bbcode_enabled = true
|
||||
text = "Placeholder"
|
||||
fit_content = true
|
||||
vertical_alignment = 1
|
||||
selection_enabled = true
|
||||
script = ExtResource("1_pnbfg")
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=27 format=3 uid="uid://bytm7bt2s4ak8"]
|
||||
[gd_scene load_steps=40 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"]
|
||||
@@ -9,8 +9,21 @@
|
||||
[ext_resource type="PackedScene" uid="uid://sqhcxhcre081" path="res://Scenes/Tab.tscn" id="4_344ge"]
|
||||
[ext_resource type="Texture2D" uid="uid://cu4hjoba6etf" path="res://Assets/Icons/rotate-cw.svg" id="5_344ge"]
|
||||
[ext_resource type="Texture2D" uid="uid://cehbtwq6gq0cn" path="res://Assets/Icons/plus.svg" id="5_ynf5e"]
|
||||
[ext_resource type="Texture2D" uid="uid://cklatjc4m38dy" path="res://Assets/Icons/ellipsis-vertical.svg" id="10_6iyac"]
|
||||
[ext_resource type="Script" uid="uid://bgqglerkcylxx" path="res://addons/SmoothScroll/SmoothScrollContainer.gd" id="10_d1ilt"]
|
||||
[ext_resource type="Script" uid="uid://b7h0k2h2qwlqv" path="res://addons/SmoothScroll/scroll_damper/expo_scroll_damper.gd" id="11_6iyac"]
|
||||
[ext_resource type="Theme" uid="uid://bn6rbmdy60lhr" path="res://Scenes/Styles/BrowserText.tres" id="11_ee4r6"]
|
||||
[ext_resource type="Script" uid="uid://vjjhljlftlbk" path="res://Scripts/OptionButton.gd" id="11_gt3je"]
|
||||
[ext_resource type="Texture2D" uid="uid://du24f6em2nqwq" path="res://Assets/Icons/external-link.svg" id="12_gt3je"]
|
||||
[ext_resource type="Texture2D" uid="uid://81l2fi381yub" path="res://Assets/Icons/square.svg" id="13_3pmx8"]
|
||||
[ext_resource type="Texture2D" uid="uid://dwxquqmmd6dqx" path="res://Assets/Icons/hat-glasses.svg" id="14_u50mg"]
|
||||
[ext_resource type="Texture2D" uid="uid://bcaoarwrwqbby" path="res://Assets/Icons/history.svg" id="15_cbgmd"]
|
||||
[ext_resource type="Texture2D" uid="uid://cbwitcygwoqdo" path="res://Assets/Icons/download.svg" id="16_1w6v2"]
|
||||
[ext_resource type="Texture2D" uid="uid://codete2cbsqo2" path="res://Assets/Icons/star.svg" id="17_ueoa1"]
|
||||
[ext_resource type="Texture2D" uid="uid://c5pr3tb8rwxb8" path="res://Assets/Icons/message-circle-question-mark.svg" id="18_6vcvc"]
|
||||
[ext_resource type="Texture2D" uid="uid://mjr3nwamrqon" path="res://Assets/Icons/settings.svg" id="19_7k868"]
|
||||
[ext_resource type="Texture2D" uid="uid://cilwaxcv5dr1i" path="res://Assets/Icons/log-out.svg" id="20_hpc6h"]
|
||||
[ext_resource type="PackedScene" uid="uid://cn24pafwdpb1q" path="res://Scenes/BrowserMenus/history.tscn" id="24_3pmx8"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_344ge"]
|
||||
|
||||
@@ -49,9 +62,9 @@ corner_radius_bottom_left = 50
|
||||
bg_color = Color(0.6, 0.6, 0.6, 0)
|
||||
draw_center = false
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_8gbba"]
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_u50mg"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_8gbba"]
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_cbgmd"]
|
||||
bg_color = Color(0.168627, 0.168627, 0.168627, 1)
|
||||
corner_radius_top_left = 15
|
||||
corner_radius_top_right = 15
|
||||
@@ -60,8 +73,8 @@ corner_radius_bottom_left = 15
|
||||
expand_margin_left = 40.0
|
||||
|
||||
[sub_resource type="Theme" id="Theme_jjvhh"]
|
||||
LineEdit/styles/focus = SubResource("StyleBoxEmpty_8gbba")
|
||||
LineEdit/styles/normal = SubResource("StyleBoxFlat_8gbba")
|
||||
LineEdit/styles/focus = SubResource("StyleBoxEmpty_u50mg")
|
||||
LineEdit/styles/normal = SubResource("StyleBoxFlat_cbgmd")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_fdnlq"]
|
||||
script = ExtResource("11_6iyac")
|
||||
@@ -200,6 +213,59 @@ scale = Vector2(0.85, 0.85)
|
||||
texture = ExtResource("3_8gbba")
|
||||
stretch_mode = 5
|
||||
|
||||
[node name="OptionsButton" type="Button" parent="VBoxContainer/HBoxContainer"]
|
||||
custom_minimum_size = Vector2(45, 0)
|
||||
layout_mode = 2
|
||||
theme_override_styles/focus = SubResource("StyleBoxEmpty_d1ilt")
|
||||
theme_override_styles/hover = SubResource("StyleBoxFlat_fdnlq")
|
||||
theme_override_styles/pressed = SubResource("StyleBoxFlat_d1ilt")
|
||||
theme_override_styles/normal = SubResource("StyleBoxFlat_d1ilt")
|
||||
icon = ExtResource("10_6iyac")
|
||||
icon_alignment = 1
|
||||
script = ExtResource("11_gt3je")
|
||||
|
||||
[node name="OptionsMenu" type="PopupMenu" parent="VBoxContainer/HBoxContainer/OptionsButton"]
|
||||
unique_name_in_owner = true
|
||||
position = Vector2i(1510, 125)
|
||||
size = Vector2i(408, 360)
|
||||
theme = ExtResource("11_ee4r6")
|
||||
theme_override_constants/v_separation = 10
|
||||
item_count = 11
|
||||
item_0/text = "New tab (CTRL T)"
|
||||
item_0/icon = ExtResource("12_gt3je")
|
||||
item_0/id = 0
|
||||
item_1/text = "New window (CTRL N)"
|
||||
item_1/icon = ExtResource("13_3pmx8")
|
||||
item_1/id = 1
|
||||
item_2/text = "New Incognito Window (CTRL SHIFT N)"
|
||||
item_2/icon = ExtResource("14_u50mg")
|
||||
item_2/id = 2
|
||||
item_3/id = 3
|
||||
item_3/separator = true
|
||||
item_4/text = "History (CTRL H)"
|
||||
item_4/icon = ExtResource("15_cbgmd")
|
||||
item_4/id = 4
|
||||
item_5/text = "Downloads (CTRL J)"
|
||||
item_5/icon = ExtResource("16_1w6v2")
|
||||
item_5/id = 5
|
||||
item_6/text = "Bookmarks (CTRL SHIFT B)"
|
||||
item_6/icon = ExtResource("17_ueoa1")
|
||||
item_6/id = 7
|
||||
item_7/id = 7
|
||||
item_7/separator = true
|
||||
item_8/text = "Help"
|
||||
item_8/icon = ExtResource("18_6vcvc")
|
||||
item_8/id = 8
|
||||
item_9/text = "Settings"
|
||||
item_9/icon = ExtResource("19_7k868")
|
||||
item_9/id = 9
|
||||
item_10/text = "Exit"
|
||||
item_10/icon = ExtResource("20_hpc6h")
|
||||
item_10/id = 10
|
||||
|
||||
[node name="Control2" type="Control" parent="VBoxContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Spacer3" type="Control" parent="VBoxContainer"]
|
||||
custom_minimum_size = Vector2(0, 2)
|
||||
layout_mode = 2
|
||||
@@ -216,12 +282,17 @@ metadata/_custom_type_script = "uid://bgqglerkcylxx"
|
||||
|
||||
[node name="WebsiteContainer" type="VBoxContainer" parent="VBoxContainer/ScrollContainer"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(200, 200)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
theme_override_constants/separation = 22
|
||||
|
||||
[node name="HistoryContainer" parent="VBoxContainer/ScrollContainer" instance=ExtResource("24_3pmx8")]
|
||||
visible = false
|
||||
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
|
||||
@@ -259,3 +330,8 @@ mouse_filter = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_21xkr")
|
||||
|
||||
[connection signal="pressed" from="VBoxContainer/TabContainer/NewTabButton" to="VBoxContainer/TabContainer" method="_on_new_tab_button_pressed"]
|
||||
[connection signal="focus_entered" from="VBoxContainer/HBoxContainer/LineEdit" to="." method="_on_search_focus_entered"]
|
||||
[connection signal="focus_exited" from="VBoxContainer/HBoxContainer/LineEdit" to="." method="_on_search_focus_exited"]
|
||||
[connection signal="text_submitted" from="VBoxContainer/HBoxContainer/LineEdit" to="." method="_on_search_submitted"]
|
||||
[connection signal="pressed" from="VBoxContainer/HBoxContainer/OptionsButton" to="VBoxContainer/HBoxContainer/OptionsButton" method="_on_pressed"]
|
||||
[connection signal="id_pressed" from="VBoxContainer/HBoxContainer/OptionsButton/OptionsMenu" to="VBoxContainer/HBoxContainer/OptionsButton" method="_on_options_menu_id_pressed"]
|
||||
|
||||
Reference in New Issue
Block a user