From ec11b18d32e077eefe0a2a7f9d19ee156ca5827b Mon Sep 17 00:00:00 2001 From: Markury Date: Tue, 30 Sep 2025 12:10:39 -0400 Subject: [PATCH] ui: update app branding and add menu bar Update app name and branding across config, title bar, and HTML. Add MenuBar component to layout and improve title bar button styles. --- src-tauri/Cargo.lock | 22 ++-- src-tauri/Cargo.toml | 6 +- src-tauri/tauri.conf.json | 2 +- src/app.html | 2 +- src/lib/MenuBar.svelte | 231 ++++++++++++++++++++++++++++++++++++++ src/lib/TitleBar.svelte | 9 +- src/routes/+layout.svelte | 2 + 7 files changed, 257 insertions(+), 17 deletions(-) create mode 100644 src/lib/MenuBar.svelte diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index 9935342..29621b5 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -2,6 +2,17 @@ # It is not intended for manual editing. version = 4 +[[package]] +name = "Shark" +version = "0.1.0" +dependencies = [ + "serde", + "serde_json", + "tauri", + "tauri-build", + "tauri-plugin-opener", +] + [[package]] name = "addr2line" version = "0.25.1" @@ -3307,17 +3318,6 @@ dependencies = [ "digest", ] -[[package]] -name = "shark" -version = "0.1.0" -dependencies = [ - "serde", - "serde_json", - "tauri", - "tauri-build", - "tauri-plugin-opener", -] - [[package]] name = "shlex" version = "1.3.0" diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 5e5aef0..e3a3bda 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,8 +1,8 @@ [package] -name = "shark" +name = "Shark" version = "0.1.0" -description = "A Tauri App" -authors = ["you"] +description = "powered by tauri and sveltekit" +authors = ["markuryy"] edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 3fab36d..e008cea 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -12,7 +12,7 @@ "app": { "windows": [ { - "title": "shark", + "title": "Shark!", "width": 800, "height": 600, "decorations": false diff --git a/src/app.html b/src/app.html index 099e9e2..caefe4e 100644 --- a/src/app.html +++ b/src/app.html @@ -5,7 +5,7 @@ - Tauri + SvelteKit + Typescript App + Shark! %sveltekit.head% diff --git a/src/lib/MenuBar.svelte b/src/lib/MenuBar.svelte new file mode 100644 index 0000000..152d600 --- /dev/null +++ b/src/lib/MenuBar.svelte @@ -0,0 +1,231 @@ + + + + + + + \ No newline at end of file diff --git a/src/lib/TitleBar.svelte b/src/lib/TitleBar.svelte index c1bc2fe..6a4347e 100644 --- a/src/lib/TitleBar.svelte +++ b/src/lib/TitleBar.svelte @@ -17,7 +17,7 @@
-
shark
+
Shark!
@@ -30,5 +30,12 @@ position: sticky; top: 0; z-index: 1000; + padding: 4px 3px 4px 4px; + } + + .title-bar-controls button { + min-height: 16px; + min-width: 18px; + background-position: center !important; } \ No newline at end of file diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index eb755eb..059ccae 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -1,6 +1,8 @@ + \ No newline at end of file