添加了搜索框

更改了UI样式
添加了标识搜索框
This commit is contained in:
CortexCore
2023-07-09 00:48:08 +08:00
parent 36a4309730
commit 10c90cee9a
17 changed files with 555 additions and 102 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://pxxbxoejvuet"
path="res://.godot/imported/icon_arcticons_net-analyzer.png-fb2516993780d42205023d020e6de4df.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Artists/Art/Icons/icon_arcticons_net-analyzer.png"
dest_files=["res://.godot/imported/icon_arcticons_net-analyzer.png-fb2516993780d42205023d020e6de4df.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 433 B

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://chdrm4pbi6cm5"
path="res://.godot/imported/icon_fluent-mdl2_registry-editor.png-9307542f91e8af3355a25df2b2349d38.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Artists/Art/Icons/icon_fluent-mdl2_registry-editor.png"
dest_files=["res://.godot/imported/icon_fluent-mdl2_registry-editor.png-9307542f91e8af3355a25df2b2349d38.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 670 B

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://b447jkohs1utw"
path="res://.godot/imported/icon_material-symbols_bookmark-manager.png-96ef329288444734fff20b254c702f54.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Artists/Art/Icons/icon_material-symbols_bookmark-manager.png"
dest_files=["res://.godot/imported/icon_material-symbols_bookmark-manager.png-96ef329288444734fff20b254c702f54.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://l5wliaec3yiy"
path="res://.godot/imported/icon_streamline_interface-id-voice-2-identification-secure-id-soundwave-sound-voice-brackets-security.png-0cdd8a9ff54f6cf647cea5644e3d042b.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Artists/Art/Icons/icon_streamline_interface-id-voice-2-identification-secure-id-soundwave-sound-voice-brackets-security.png"
dest_files=["res://.godot/imported/icon_streamline_interface-id-voice-2-identification-secure-id-soundwave-sound-voice-brackets-security.png-0cdd8a9ff54f6cf647cea5644e3d042b.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 936 B

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://d354eewydsxs2"
path="res://.godot/imported/solar_smile-circle-bold.png-11152aa63dc1cc1bf141da09241142b0.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Artists/Art/Icons/solar_smile-circle-bold.png"
dest_files=["res://.godot/imported/solar_smile-circle-bold.png-11152aa63dc1cc1bf141da09241142b0.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

View File

@@ -1,39 +1,48 @@
[gd_scene format=3 uid="uid://dey6r76kttak6"]
[gd_scene load_steps=3 format=3 uid="uid://dey6r76kttak6"]
[node name="FactoryThemePreview" type="ScrollContainer"]
[ext_resource type="Texture2D" uid="uid://d1uver224k3px" path="res://addons/ui_design_tool/assets/icons/folder_open-white-18dp.svg" id="1_jbnj1"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_uocfi"]
bg_color = Color(0.156863, 0.152941, 0.172549, 1)
[node name="FactoryThemePreview" type="PanelContainer"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBoxFlat_uocfi")
[node name="HBoxContainer" type="HBoxContainer" parent="."]
[node name="Scroll" type="ScrollContainer" parent="."]
layout_mode = 2
[node name="VBoxContainer" type="VBoxContainer" parent="HBoxContainer"]
[node name="HBoxContainer" type="HBoxContainer" parent="Scroll"]
layout_mode = 2
[node name="VBoxContainer" type="VBoxContainer" parent="Scroll/HBoxContainer"]
custom_minimum_size = Vector2(512, 0)
layout_mode = 2
[node name="Button" type="Button" parent="HBoxContainer/VBoxContainer"]
[node name="Button" type="Button" parent="Scroll/HBoxContainer/VBoxContainer"]
layout_mode = 2
text = "按钮"
[node name="Button2" type="Button" parent="HBoxContainer/VBoxContainer"]
[node name="Button2" type="Button" parent="Scroll/HBoxContainer/VBoxContainer"]
layout_mode = 2
theme_type_variation = &"Accent"
text = "按钮"
[node name="Button3" type="Button" parent="HBoxContainer/VBoxContainer"]
[node name="Button3" type="Button" parent="Scroll/HBoxContainer/VBoxContainer"]
layout_mode = 2
theme_type_variation = &"ColorPanel"
text = "按钮"
[node name="Button4" type="Button" parent="HBoxContainer/VBoxContainer"]
[node name="Button4" type="Button" parent="Scroll/HBoxContainer/VBoxContainer"]
layout_mode = 2
theme_type_variation = &"Flat"
text = "按钮"
[node name="ItemList" type="ItemList" parent="HBoxContainer/VBoxContainer"]
[node name="ItemList" type="ItemList" parent="Scroll/HBoxContainer/VBoxContainer"]
layout_mode = 2
auto_height = true
item_count = 5
@@ -43,30 +52,50 @@ item_2/text = "item 3"
item_3/text = "item 4"
item_4/text = "item 5"
[node name="VBoxContainer2" type="VBoxContainer" parent="HBoxContainer"]
[node name="VBoxContainer" type="VBoxContainer" parent="Scroll/HBoxContainer/VBoxContainer"]
layout_mode = 2
theme_override_constants/separation = 8
[node name="Button" type="Button" parent="Scroll/HBoxContainer/VBoxContainer/VBoxContainer"]
layout_mode = 2
theme_type_variation = &"SideTab"
text = "SideBar 1"
[node name="Button2" type="Button" parent="Scroll/HBoxContainer/VBoxContainer/VBoxContainer"]
layout_mode = 2
theme_type_variation = &"SideTab"
text = "SideBar 1"
icon = ExtResource("1_jbnj1")
[node name="Button3" type="Button" parent="Scroll/HBoxContainer/VBoxContainer/VBoxContainer"]
layout_mode = 2
theme_type_variation = &"SideTab"
text = "SideBar 1"
[node name="VBoxContainer2" type="VBoxContainer" parent="Scroll/HBoxContainer"]
custom_minimum_size = Vector2(512, 0)
layout_mode = 2
[node name="Label" type="Label" parent="HBoxContainer/VBoxContainer2"]
[node name="Label" type="Label" parent="Scroll/HBoxContainer/VBoxContainer2"]
layout_mode = 2
text = "普通的标签"
[node name="Label5" type="Label" parent="HBoxContainer/VBoxContainer2"]
[node name="Label5" type="Label" parent="Scroll/HBoxContainer/VBoxContainer2"]
layout_mode = 2
theme_type_variation = &"WhitePanel"
text = "SuccessBox"
[node name="Label2" type="Label" parent="HBoxContainer/VBoxContainer2"]
[node name="Label2" type="Label" parent="Scroll/HBoxContainer/VBoxContainer2"]
layout_mode = 2
theme_type_variation = &"SuccessBox"
text = "SuccessBox"
[node name="Label3" type="Label" parent="HBoxContainer/VBoxContainer2"]
[node name="Label3" type="Label" parent="Scroll/HBoxContainer/VBoxContainer2"]
layout_mode = 2
theme_type_variation = &"AccentBox"
text = "AccentBox"
[node name="Label4" type="RichTextLabel" parent="HBoxContainer/VBoxContainer2"]
[node name="Label4" type="RichTextLabel" parent="Scroll/HBoxContainer/VBoxContainer2"]
layout_mode = 2
theme_type_variation = &"ErrorBox"
theme_override_colors/default_color = Color(0.0470588, 0.0470588, 0.0470588, 1)
@@ -75,30 +104,39 @@ text = "[b]ErrorBox[/b]
a error happened"
fit_content = true
[node name="VBoxContainer3" type="VBoxContainer" parent="HBoxContainer"]
[node name="LineEdit" type="LineEdit" parent="Scroll/HBoxContainer/VBoxContainer2"]
layout_mode = 2
placeholder_text = "LineEdit"
[node name="LineEdit2" type="LineEdit" parent="Scroll/HBoxContainer/VBoxContainer2"]
layout_mode = 2
theme_type_variation = &"SearchBar"
placeholder_text = "SearchBar"
[node name="VBoxContainer3" type="VBoxContainer" parent="Scroll/HBoxContainer"]
layout_mode = 2
[node name="TabBar" type="TabBar" parent="HBoxContainer/VBoxContainer3"]
[node name="TabBar" type="TabBar" parent="Scroll/HBoxContainer/VBoxContainer3"]
layout_mode = 2
tab_count = 3
tab_0/title = "Tab1"
tab_1/title = "Tab2"
tab_2/title = "Tab3"
[node name="TabContainer" type="TabContainer" parent="HBoxContainer/VBoxContainer3"]
[node name="TabContainer" type="TabContainer" parent="Scroll/HBoxContainer/VBoxContainer3"]
custom_minimum_size = Vector2(512, 256)
layout_mode = 2
[node name="Window 1" type="Label" parent="HBoxContainer/VBoxContainer3/TabContainer"]
[node name="Window 1" type="Label" parent="Scroll/HBoxContainer/VBoxContainer3/TabContainer"]
layout_mode = 2
text = "Window 1"
[node name="Window 2" type="Label" parent="HBoxContainer/VBoxContainer3/TabContainer"]
[node name="Window 2" type="Label" parent="Scroll/HBoxContainer/VBoxContainer3/TabContainer"]
visible = false
layout_mode = 2
text = "Window 2"
[node name="Window 3" type="Label" parent="HBoxContainer/VBoxContainer3/TabContainer"]
[node name="Window 3" type="Label" parent="Scroll/HBoxContainer/VBoxContainer3/TabContainer"]
visible = false
layout_mode = 2
text = "Window 3"

File diff suppressed because one or more lines are too long