From 0b61c43576ae4adec40209ad227a3ced280426bb Mon Sep 17 00:00:00 2001 From: Nordup Date: Mon, 18 Nov 2024 04:38:33 +0400 Subject: [PATCH] redesign begining --- app/assets/fonts/Inter-Bold.otf.import | 4 +- app/assets/fonts/Inter-BoldItalic.otf.import | 4 +- app/assets/fonts/Inter-Italic.otf.import | 4 +- app/assets/fonts/Inter-Regular.otf.import | 4 +- app/assets/fonts/Monospace.ttf.import | 4 +- app/assets/fonts/MonospaceBold.ttf.import | 4 +- app/assets/new_textures/arrow-left.svg | 26 + app/assets/new_textures/arrow-left.svg.import | 39 ++ .../{arrow.svg => arrow-right.svg} | 0 ...rrow.svg.import => arrow-right.svg.import} | 8 +- app/assets/new_textures/close-tab.svg | 27 + app/assets/new_textures/close-tab.svg.import | 39 ++ app/assets/new_textures/icon-round.svg | 113 ++++ app/assets/new_textures/icon-round.svg.import | 37 + app/assets/styles/button.stylebox | Bin 0 -> 486 bytes app/assets/styles/button_hover.stylebox | Bin 0 -> 498 bytes app/assets/styles/tab.stylebox | Bin 0 -> 497 bytes app/assets/styles/text.tres | 8 + app/scenes/components/button.tscn | 21 + app/scenes/components/search.tscn | 33 +- app/scenes/components/tab.tscn | 83 +++ app/scenes/menu.tscn | 631 ++++-------------- app/scripts/ui/menu/window_buttons.gd | 6 + 23 files changed, 560 insertions(+), 535 deletions(-) create mode 100644 app/assets/new_textures/arrow-left.svg create mode 100644 app/assets/new_textures/arrow-left.svg.import rename app/assets/new_textures/{arrow.svg => arrow-right.svg} (100%) rename app/assets/new_textures/{arrow.svg.import => arrow-right.svg.import} (62%) create mode 100644 app/assets/new_textures/close-tab.svg create mode 100644 app/assets/new_textures/close-tab.svg.import create mode 100644 app/assets/new_textures/icon-round.svg create mode 100644 app/assets/new_textures/icon-round.svg.import create mode 100644 app/assets/styles/button.stylebox create mode 100644 app/assets/styles/button_hover.stylebox create mode 100644 app/assets/styles/tab.stylebox create mode 100644 app/assets/styles/text.tres create mode 100644 app/scenes/components/button.tscn create mode 100644 app/scenes/components/tab.tscn diff --git a/app/assets/fonts/Inter-Bold.otf.import b/app/assets/fonts/Inter-Bold.otf.import index ad54dc3..2acb0dd 100644 --- a/app/assets/fonts/Inter-Bold.otf.import +++ b/app/assets/fonts/Inter-Bold.otf.import @@ -14,9 +14,9 @@ dest_files=["res://.godot/imported/Inter-Bold.otf-fed3606970d0d1ec228f8cbb3326ce Rendering=null antialiasing=1 -generate_mipmaps=false +generate_mipmaps=true disable_embedded_bitmaps=true -multichannel_signed_distance_field=false +multichannel_signed_distance_field=true msdf_pixel_range=8 msdf_size=48 allow_system_fallback=true diff --git a/app/assets/fonts/Inter-BoldItalic.otf.import b/app/assets/fonts/Inter-BoldItalic.otf.import index c56b53d..d9a4f0e 100644 --- a/app/assets/fonts/Inter-BoldItalic.otf.import +++ b/app/assets/fonts/Inter-BoldItalic.otf.import @@ -14,9 +14,9 @@ dest_files=["res://.godot/imported/Inter-BoldItalic.otf-fc2a2d62a96e28426d3bc0af Rendering=null antialiasing=1 -generate_mipmaps=false +generate_mipmaps=true disable_embedded_bitmaps=true -multichannel_signed_distance_field=false +multichannel_signed_distance_field=true msdf_pixel_range=8 msdf_size=48 allow_system_fallback=true diff --git a/app/assets/fonts/Inter-Italic.otf.import b/app/assets/fonts/Inter-Italic.otf.import index 7da89e5..d890a52 100644 --- a/app/assets/fonts/Inter-Italic.otf.import +++ b/app/assets/fonts/Inter-Italic.otf.import @@ -14,9 +14,9 @@ dest_files=["res://.godot/imported/Inter-Italic.otf-a2ee68ef97ef9010eaa7272e19db Rendering=null antialiasing=1 -generate_mipmaps=false +generate_mipmaps=true disable_embedded_bitmaps=true -multichannel_signed_distance_field=false +multichannel_signed_distance_field=true msdf_pixel_range=8 msdf_size=48 allow_system_fallback=true diff --git a/app/assets/fonts/Inter-Regular.otf.import b/app/assets/fonts/Inter-Regular.otf.import index bd860b2..79ca033 100644 --- a/app/assets/fonts/Inter-Regular.otf.import +++ b/app/assets/fonts/Inter-Regular.otf.import @@ -14,9 +14,9 @@ dest_files=["res://.godot/imported/Inter-Regular.otf-f352c7616b1c2d50404f5bb3f48 Rendering=null antialiasing=1 -generate_mipmaps=false +generate_mipmaps=true disable_embedded_bitmaps=true -multichannel_signed_distance_field=false +multichannel_signed_distance_field=true msdf_pixel_range=8 msdf_size=48 allow_system_fallback=true diff --git a/app/assets/fonts/Monospace.ttf.import b/app/assets/fonts/Monospace.ttf.import index d0bd784..5308139 100644 --- a/app/assets/fonts/Monospace.ttf.import +++ b/app/assets/fonts/Monospace.ttf.import @@ -14,9 +14,9 @@ dest_files=["res://.godot/imported/Monospace.ttf-84d18bc2b9fbca262f60d9ae15d1ff1 Rendering=null antialiasing=1 -generate_mipmaps=false +generate_mipmaps=true disable_embedded_bitmaps=true -multichannel_signed_distance_field=false +multichannel_signed_distance_field=true msdf_pixel_range=8 msdf_size=48 allow_system_fallback=true diff --git a/app/assets/fonts/MonospaceBold.ttf.import b/app/assets/fonts/MonospaceBold.ttf.import index 987d9fb..969b1f0 100644 --- a/app/assets/fonts/MonospaceBold.ttf.import +++ b/app/assets/fonts/MonospaceBold.ttf.import @@ -14,9 +14,9 @@ dest_files=["res://.godot/imported/MonospaceBold.ttf-85e6bb30ac22368fdf6bd988771 Rendering=null antialiasing=1 -generate_mipmaps=false +generate_mipmaps=true disable_embedded_bitmaps=true -multichannel_signed_distance_field=false +multichannel_signed_distance_field=true msdf_pixel_range=8 msdf_size=48 allow_system_fallback=true diff --git a/app/assets/new_textures/arrow-left.svg b/app/assets/new_textures/arrow-left.svg new file mode 100644 index 0000000..0464cf5 --- /dev/null +++ b/app/assets/new_textures/arrow-left.svg @@ -0,0 +1,26 @@ + + + + + + + + + + diff --git a/app/assets/new_textures/arrow-left.svg.import b/app/assets/new_textures/arrow-left.svg.import new file mode 100644 index 0000000..9913d17 --- /dev/null +++ b/app/assets/new_textures/arrow-left.svg.import @@ -0,0 +1,39 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://c4dxov80fjvaq" +path.s3tc="res://.godot/imported/arrow-left.svg-ec7ffec9a23e7e531fec72a04db83a5c.s3tc.ctex" +path.etc2="res://.godot/imported/arrow-left.svg-ec7ffec9a23e7e531fec72a04db83a5c.etc2.ctex" +metadata={ +"imported_formats": ["s3tc_bptc", "etc2_astc"], +"vram_texture": true +} + +[deps] + +source_file="res://assets/new_textures/arrow-left.svg" +dest_files=["res://.godot/imported/arrow-left.svg-ec7ffec9a23e7e531fec72a04db83a5c.s3tc.ctex", "res://.godot/imported/arrow-left.svg-ec7ffec9a23e7e531fec72a04db83a5c.etc2.ctex"] + +[params] + +compress/mode=2 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=true +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 +svg/scale=2.0 +editor/scale_with_editor_scale=false +editor/convert_colors_with_editor_theme=false diff --git a/app/assets/new_textures/arrow.svg b/app/assets/new_textures/arrow-right.svg similarity index 100% rename from app/assets/new_textures/arrow.svg rename to app/assets/new_textures/arrow-right.svg diff --git a/app/assets/new_textures/arrow.svg.import b/app/assets/new_textures/arrow-right.svg.import similarity index 62% rename from app/assets/new_textures/arrow.svg.import rename to app/assets/new_textures/arrow-right.svg.import index f57121a..fdeb732 100644 --- a/app/assets/new_textures/arrow.svg.import +++ b/app/assets/new_textures/arrow-right.svg.import @@ -3,8 +3,8 @@ importer="texture" type="CompressedTexture2D" uid="uid://bo1pkhkdscf6v" -path.s3tc="res://.godot/imported/arrow.svg-22e549dfdeb825a8f10906a5fd5fa9bb.s3tc.ctex" -path.etc2="res://.godot/imported/arrow.svg-22e549dfdeb825a8f10906a5fd5fa9bb.etc2.ctex" +path.s3tc="res://.godot/imported/arrow-right.svg-3933a822bf7a3f5cf855cc96699d0030.s3tc.ctex" +path.etc2="res://.godot/imported/arrow-right.svg-3933a822bf7a3f5cf855cc96699d0030.etc2.ctex" metadata={ "imported_formats": ["s3tc_bptc", "etc2_astc"], "vram_texture": true @@ -12,8 +12,8 @@ metadata={ [deps] -source_file="res://assets/new_textures/arrow.svg" -dest_files=["res://.godot/imported/arrow.svg-22e549dfdeb825a8f10906a5fd5fa9bb.s3tc.ctex", "res://.godot/imported/arrow.svg-22e549dfdeb825a8f10906a5fd5fa9bb.etc2.ctex"] +source_file="res://assets/new_textures/arrow-right.svg" +dest_files=["res://.godot/imported/arrow-right.svg-3933a822bf7a3f5cf855cc96699d0030.s3tc.ctex", "res://.godot/imported/arrow-right.svg-3933a822bf7a3f5cf855cc96699d0030.etc2.ctex"] [params] diff --git a/app/assets/new_textures/close-tab.svg b/app/assets/new_textures/close-tab.svg new file mode 100644 index 0000000..b8fba36 --- /dev/null +++ b/app/assets/new_textures/close-tab.svg @@ -0,0 +1,27 @@ + + + + + + + + + + diff --git a/app/assets/new_textures/close-tab.svg.import b/app/assets/new_textures/close-tab.svg.import new file mode 100644 index 0000000..f3860ef --- /dev/null +++ b/app/assets/new_textures/close-tab.svg.import @@ -0,0 +1,39 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cli88m5w3op6l" +path.s3tc="res://.godot/imported/close-tab.svg-081e0c7b6a2589a52623872d7ed88949.s3tc.ctex" +path.etc2="res://.godot/imported/close-tab.svg-081e0c7b6a2589a52623872d7ed88949.etc2.ctex" +metadata={ +"imported_formats": ["s3tc_bptc", "etc2_astc"], +"vram_texture": true +} + +[deps] + +source_file="res://assets/new_textures/close-tab.svg" +dest_files=["res://.godot/imported/close-tab.svg-081e0c7b6a2589a52623872d7ed88949.s3tc.ctex", "res://.godot/imported/close-tab.svg-081e0c7b6a2589a52623872d7ed88949.etc2.ctex"] + +[params] + +compress/mode=2 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=true +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 +svg/scale=2.0 +editor/scale_with_editor_scale=false +editor/convert_colors_with_editor_theme=false diff --git a/app/assets/new_textures/icon-round.svg b/app/assets/new_textures/icon-round.svg new file mode 100644 index 0000000..8ca81ce --- /dev/null +++ b/app/assets/new_textures/icon-round.svg @@ -0,0 +1,113 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/app/assets/new_textures/icon-round.svg.import b/app/assets/new_textures/icon-round.svg.import new file mode 100644 index 0000000..fa301c0 --- /dev/null +++ b/app/assets/new_textures/icon-round.svg.import @@ -0,0 +1,37 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bw1cffhlt112i" +path="res://.godot/imported/icon-round.svg-14ecefe0ad7176f64ce7c5eb12e7883d.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/new_textures/icon-round.svg" +dest_files=["res://.godot/imported/icon-round.svg-14ecefe0ad7176f64ce7c5eb12e7883d.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=true +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=true +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 +svg/scale=2.0 +editor/scale_with_editor_scale=false +editor/convert_colors_with_editor_theme=false diff --git a/app/assets/styles/button.stylebox b/app/assets/styles/button.stylebox new file mode 100644 index 0000000000000000000000000000000000000000..81f93143ae08ff57c274c6b2494cfceb0e3c36cc GIT binary patch literal 486 zcmVMQ$s@n000005C8z%0{{Td0RR9fwJ-f(+X5vH0M?X9IY6Z<9m4}~j-m## zPSF-W)H#L?3H~ewBoF@W*VrajZnDoGW3m-R{e1h;SQ*DD}NB&Fx zl6#h;t(kM2asN+lxhZRpgEsy*xUI8lZ_EA{yi~huhVUkB(sFL9t$B}lJ}Ng0ORp(+ z*A?OLKfoldHn357p`7r^rjYMwR5j$~YJ{ZA*<>PxCKOKzo1t0%Li;RJoA5|^ zW|fTwL+Th5AyKG70b~IZg0)%zFczx=>$+7ZgE_c>RR0H}TYU&N?B}ZcQznv##K$iX z@f=mN2U@#N*>!oQ`d+vBUKmEGaY-4e8l?rLMa=zBKaqo+}dx4WDi-OT0w0GSe4B+_t~)szI1Y+_DqvEqN1Av~IBF-_=S|H cB&m!Dg^A1i=ijW<2sBLgN0X9*CQ?&FLjhIf;{X5v literal 0 HcmV?d00001 diff --git a/app/assets/styles/button_hover.stylebox b/app/assets/styles/button_hover.stylebox new file mode 100644 index 0000000000000000000000000000000000000000..2ec14dd1270bca7977ea1513655fdb8cd3b74392 GIT binary patch literal 498 zcmV%9w9kp#GnnZqLQs_9*-hamtc0mtFrIKH_e^Cf-^W>EV-KFj*x_`g7k6l=(4tS`#vV$Zi#B;o_HZVaDRHyR9_k7QaIUoW&+TySbB z!bct5NhuEJ%B!NuT(ki|ArMBzXMh6;oz-eWCzVolP^bhP%ta#NgW&fxg$f=J)dG(P zO2JQ=NFpH(eujv~O?-9GHNcvi++Dh?y7JW3s=Wb5sBuXdsT!pPrDf`H0ueQ2I})JM zfSxhN8znMm3#;`ra%8~x>zBKaqo+}d=ewLD-OT0w0GtwJBr+`A_K84pl2k^7!o=mJ@^4mZ1R5s$(@dqH2~tx-LnUM4l>h($ literal 0 HcmV?d00001 diff --git a/app/assets/styles/tab.stylebox b/app/assets/styles/tab.stylebox new file mode 100644 index 0000000000000000000000000000000000000000..7b83d1758d1e62ac501befc2cd0eb09d5eac3e8c GIT binary patch literal 497 zcmVt6&dsXhcJgH`-DZ@;b?N`ie~XU>R#aes3A~^5C^5%MQ-A(T{wMsm z{zLv33nkPrZjLUbT=}*E>i@{;_T0>EkHY^Arz|;h8up*zBJO4k;vLc=#eBqVd4pEE z88!Mut^-eAwYS!HT^ktx4@Qw@3fheIMfqIp`L=>UEFjj6;R{vFr2^+0l~%^r3nvp4 znM#WAQAc;uh{L%OlLQ@}kEcR{0{}q+&1%I!qf!;nq*AC%h4SFQIsF@r6l$|DfNp-O zodXew)miW(SQjrbw$ju!V{$hMyQ(&0_f{tt3r47c$q^|Ur3IyB=5PX$G-NvxAftSq zQAQgjGH45{^)vJ{5ccM!J void: minimize.pressed.connect(on_minimize) + maximize.pressed.connect(on_maximize) exit.pressed.connect(on_exit) @@ -13,5 +15,9 @@ func on_minimize() -> void: DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_MINIMIZED) +func on_maximize() -> void: + DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_MAXIMIZED) + + func on_exit() -> void: get_tree().quit()