Skip to content

Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.

fix(ui): align home stage, titlebar, omnibox pill, and mascot assets

IGECTd6bf3d201f41
diff --git a/src-tauri/src/core/queue.rs b/src-tauri/src/core/queue.rs
index b9bddd73..fe12c0de 100644
--- a/src-tauri/src/core/queue.rs
+++ b/src-tauri/src/core/queue.rs
@@ -1132,9 +1132,9 @@ pub fn emit_queue_state_from_state(app: &tauri::AppHandle, state: Vec<QueueItemI
if let Some(window) = app.get_webview_window("main") {
let title = if total > 0 {
- format!("({}) omniget", total)
+ format!("({}) OmniGet", total)
} else {
- "omniget".into()
+ "OmniGet".into()
};
let _ = window.set_title(&title);
}
diff --git a/src/components/home/HomeUrlBar.svelte b/src/components/home/HomeUrlBar.svelte
index 1fb52e8b..a8b740f4 100644
--- a/src/components/home/HomeUrlBar.svelte
+++ b/src/components/home/HomeUrlBar.svelte
@@ -49,7 +49,6 @@
.home-url-bar.stage {
align-items: center;
- gap: var(--space-3);
- max-width: 680px;
+ max-width: 560px;
}
</style>
diff --git a/src/components/mascot/Mascot.svelte b/src/components/mascot/Mascot.svelte
index abff90a7..0da60e37 100644
--- a/src/components/mascot/Mascot.svelte
+++ b/src/components/mascot/Mascot.svelte
@@ -1,4 +1,6 @@
<script lang="ts">
+ import { untrack } from "svelte";
+
type MascotEmotion = "idle" | "downloading" | "error" | "stalled" | "queue" | "complete" | "amazed";
function emotionToSrc(e: MascotEmotion): string {
@@ -18,33 +20,39 @@
} = $props();
let currentSrc = $state("/mascot/idle.png");
- let nextSrc = $state("");
let showCurrent = $state(false);
- let showNext = $state(false);
let errored = $state(false);
- let transitioning = $state(false);
+ let transitionTimer: ReturnType<typeof setTimeout> | null = null;
$effect(() => {
const target = emotionToSrc(emotion);
- if (target === currentSrc && !transitioning) return;
- if (transitioning) return;
+ if (target === currentSrc) {
+ if (!untrack(() => errored)) showCurrent = true;
+ return;
+ }
- if (!showCurrent) {
+ if (transitionTimer) {
+ clearTimeout(transitionTimer);
+ transitionTimer = null;
+ }
+
+ if (!untrack(() => showCurrent)) {
currentSrc = target;
return;
}
- transitioning = true;
- nextSrc = target;
- showNext = false;
showCurrent = false;
-
- setTimeout(() => {
+ transitionTimer = setTimeout(() => {
+ transitionTimer = null;
currentSrc = target;
- nextSrc = "";
- showCurrent = false;
- transitioning = false;
}, 200);
+
+ return () => {
+ if (transitionTimer) {
+ clearTimeout(transitionTimer);
+ transitionTimer = null;
+ }
+ };
});
function onCurrentLoad() {
@@ -73,8 +81,6 @@
<svg
class="mascot-fallback"
viewBox="0 0 64 64"
- width="100"
- height="100"
fill="none"
stroke="currentColor"
stroke-width="1.5"
@@ -99,38 +105,44 @@
flex-direction: column;
align-items: center;
justify-content: flex-start;
- height: 100px;
+ min-height: 100px;
position: relative;
- transition: height 0.2s ease;
+ transition: min-height 0.2s ease;
}
.mascot.compact {
- height: 72px;
+ min-height: 72px;
}
.mascot.stage {
- height: 128px;
+ min-height: 128px;
}
.mascot-img {
+ width: 100px;
height: 100px;
- width: auto;
- border-radius: var(--radius-xl);
+ aspect-ratio: 1;
+ object-fit: contain;
opacity: 0;
transform: scale(0.9);
transition:
opacity var(--duration-base) var(--ease-out),
transform var(--duration-bounce) var(--ease-spring),
+ width var(--duration-base) var(--ease-out),
height var(--duration-base) var(--ease-out);
pointer-events: none;
user-select: none;
}
- .mascot.compact .mascot-img {
+ .mascot.compact .mascot-img,
+ .mascot.compact .mascot-fallback {
+ width: 72px;
height: 72px;
}
- .mascot.stage .mascot-img {
+ .mascot.stage .mascot-img,
+ .mascot.stage .mascot-fallback {
+ width: 128px;
height: 128px;
}
@@ -140,6 +152,8 @@
}
.mascot-fallback {
+ width: 100px;
+ height: 100px;
color: var(--gray);
opacity: 0.5;
pointer-events: none;
diff --git a/src/components/omnibox/OmniboxInput.svelte b/src/components/omnibox/OmniboxInput.svelte
index ac0b9e98..2bde3b49 100644
--- a/src/components/omnibox/OmniboxInput.svelte
+++ b/src/components/omnibox/OmniboxInput.svelte
@@ -123,7 +123,7 @@
type="button"
class="omnibox-plus-btn"
class:open={menuOpen}
- aria-label={$t('omnibox.options')}
+ aria-label={$t('omnibox.more_actions')}
aria-expanded={menuOpen}
aria-haspopup="menu"
onclick={(e) => {
@@ -228,8 +228,8 @@
.omnibox-wrapper.prominent {
height: 52px;
- padding: 0 var(--space-3);
- border-radius: var(--radius-xl);
+ padding: 0 10px;
+ border-radius: var(--radius-full);
background: var(--surface);
box-shadow:
inset 0 0 0 var(--hairline) var(--content-border),
@@ -267,6 +267,7 @@
position: relative;
display: flex;
align-items: center;
+ height: 100%;
flex-shrink: 0;
}
@@ -323,7 +324,7 @@
.omnibox-plus-menu {
position: absolute;
top: calc(100% + var(--space-2));
- left: 0;
+ inset-inline-start: 0;
min-width: 220px;
padding: var(--space-1);
display: flex;
@@ -351,7 +352,7 @@
color: var(--text);
font-size: var(--text-base);
font-weight: 500;
- text-align: left;
+ text-align: start;
cursor: pointer;
transition: background var(--duration-fast) var(--ease-out);
}
@@ -423,9 +424,9 @@
}
.omnibox-wrapper.prominent .omnibox-paste-btn {
- height: 30px;
+ height: 32px;
padding: 0 var(--space-3);
- border-radius: var(--radius-md);
+ border-radius: var(--radius-full);
}
.omnibox-paste-label {
@@ -465,6 +466,11 @@
flex-shrink: 0;
}
+ .omnibox-wrapper.prominent .clear-btn {
+ width: 32px;
+ height: 32px;
+ }
+
.clear-btn :global(svg) {
pointer-events: none;
}
diff --git a/src/lib/i18n/el.json b/src/lib/i18n/el.json
index f1b55f11..08e0149b 100644
--- a/src/lib/i18n/el.json
+++ b/src/lib/i18n/el.json
@@ -4262,6 +4262,7 @@
"added_to_downloads": "Added to Downloads",
"open_downloads": "Open Downloads",
"options": "Επιλογές",
+ "more_actions": "Περισσότερες επιλογές εισόδου",
"advanced": "Προχωρημένα",
"preparing": "Προετοιμασία μεταφόρτωσης...",
"error": "Αποτυχία λήψης",
diff --git a/src/lib/i18n/en.json b/src/lib/i18n/en.json
index b122bd1c..702fefba 100644
--- a/src/lib/i18n/en.json
+++ b/src/lib/i18n/en.json
@@ -4262,6 +4262,7 @@
"added_to_downloads": "Added to Downloads",
"open_downloads": "Open Downloads",
"options": "Quality and more",
+ "more_actions": "More input options",
"advanced": "Advanced",
"preparing": "Preparing download...",
"error": "Download failed",
diff --git a/src/lib/i18n/es.json b/src/lib/i18n/es.json
index 1053a2f7..3b40363e 100644
--- a/src/lib/i18n/es.json
+++ b/src/lib/i18n/es.json
@@ -4262,6 +4262,7 @@
"added_to_downloads": "Added to Downloads",
"open_downloads": "Open Downloads",
"options": "Opciones",
+ "more_actions": "Más opciones de entrada",
"advanced": "Avanzado",
"preparing": "Preparando descarga...",
"error": "La descarga falló",
diff --git a/src/lib/i18n/fa.json b/src/lib/i18n/fa.json
index 564dfe2c..629d9bd1 100644
--- a/src/lib/i18n/fa.json
+++ b/src/lib/i18n/fa.json
@@ -4262,6 +4262,7 @@
"added_to_downloads": "Added to Downloads",
"open_downloads": "Open Downloads",
"options": "Options",
+ "more_actions": "گزینه‌های بیشتر ورودی",
"advanced": "Advanced",
"preparing": "Preparing download...",
"error": "Download failed",
diff --git a/src/lib/i18n/fr.json b/src/lib/i18n/fr.json
index 1f66d1f8..8c84d130 100644
--- a/src/lib/i18n/fr.json
+++ b/src/lib/i18n/fr.json
@@ -4262,6 +4262,7 @@
"added_to_downloads": "Added to Downloads",
"open_downloads": "Open Downloads",
"options": "Options",
+ "more_actions": "Plus d'options de saisie",
"advanced": "Avancé",
"preparing": "Préparation du téléchargement...",
"error": "Échec du téléchargement",
diff --git a/src/lib/i18n/it.json b/src/lib/i18n/it.json
index 1382ed48..5b339cef 100644
--- a/src/lib/i18n/it.json
+++ b/src/lib/i18n/it.json
@@ -4262,6 +4262,7 @@
"added_to_downloads": "Added to Downloads",
"open_downloads": "Open Downloads",
"options": "Opzioni",
+ "more_actions": "Altre opzioni di input",
"advanced": "Avanzato",
"preparing": "Preparazione download...",
"error": "Download fallito",
diff --git a/src/lib/i18n/ja.json b/src/lib/i18n/ja.json
index 3afe3788..983ab8f6 100644
--- a/src/lib/i18n/ja.json
+++ b/src/lib/i18n/ja.json
@@ -4262,6 +4262,7 @@
"added_to_downloads": "Added to Downloads",
"open_downloads": "Open Downloads",
"options": "オプション",
+ "more_actions": "その他の入力オプション",
"advanced": "詳細",
"preparing": "ダウンロードを準備中...",
"error": "ダウンロード失敗",
diff --git a/src/lib/i18n/keys.ts b/src/lib/i18n/keys.ts
index 4ed06e03..8743deca 100644
--- a/src/lib/i18n/keys.ts
+++ b/src/lib/i18n/keys.ts
@@ -753,6 +753,7 @@ export type TranslationKeys =
| 'omnibox.mode_auto'
| 'omnibox.mode_mute'
| 'omnibox.mode_normal'
+ | 'omnibox.more_actions'
| 'omnibox.no_formats'
| 'omnibox.open_downloads'
| 'omnibox.options'
diff --git a/src/lib/i18n/lo.json b/src/lib/i18n/lo.json
index eb47e284..7b2eeb2e 100644
--- a/src/lib/i18n/lo.json
+++ b/src/lib/i18n/lo.json
@@ -4262,6 +4262,7 @@
"added_to_downloads": "Added to Downloads",
"open_downloads": "Open Downloads",
"options": "ຕົວເລືອກ",
+ "more_actions": "ຕົວເລືອກການປ້ອນຂໍ້ມູນເພີ່ມເຕີມ",
"advanced": "ຂັ້ນສູງ",
"preparing": "ກຳລັງກຽມດາວໂຫຼດ...",
"error": "ດາວໂຫຼດບໍ່ສຳເລັດ",
diff --git a/src/lib/i18n/pt.json b/src/lib/i18n/pt.json
index baff0923..ec78f484 100644
--- a/src/lib/i18n/pt.json
+++ b/src/lib/i18n/pt.json
@@ -4262,6 +4262,7 @@
"added_to_downloads": "Added to Downloads",
"open_downloads": "Open Downloads",
"options": "Opções",
+ "more_actions": "Mais opções de entrada",
"advanced": "Avançado",
"preparing": "Preparando download...",
"error": "Download falhou",
diff --git a/src/lib/i18n/ru.json b/src/lib/i18n/ru.json
index dd5e73e0..d2d06e1f 100644
--- a/src/lib/i18n/ru.json
+++ b/src/lib/i18n/ru.json
@@ -4262,6 +4262,7 @@
"added_to_downloads": "Added to Downloads",
"open_downloads": "Open Downloads",
"options": "Опции",
+ "more_actions": "Дополнительные параметры ввода",
"advanced": "Дополнительно",
"preparing": "Подготовка к скачиванию…",
"error": "Ошибка скачивания",
diff --git a/src/lib/i18n/zh-TW.json b/src/lib/i18n/zh-TW.json
index 387f6a8b..99c33710 100644
--- a/src/lib/i18n/zh-TW.json
+++ b/src/lib/i18n/zh-TW.json
@@ -4262,6 +4262,7 @@
"added_to_downloads": "Added to Downloads",
"open_downloads": "Open Downloads",
"options": "选项",
+ "more_actions": "更多輸入選項",
"advanced": "高级",
"preparing": "正在準備下載...",
"error": "下載失敗",
diff --git a/src/lib/i18n/zh.json b/src/lib/i18n/zh.json
index 209ea6d1..a7a49b79 100644
--- a/src/lib/i18n/zh.json
+++ b/src/lib/i18n/zh.json
@@ -4262,6 +4262,7 @@
"added_to_downloads": "Added to Downloads",
"open_downloads": "Open Downloads",
"options": "选项",
+ "more_actions": "更多输入选项",
"advanced": "高级",
"preparing": "正在准备下载...",
"error": "下载失败",
diff --git a/src/lib/style/macos-shell.css b/src/lib/style/macos-shell.css
index e6debbf7..d2066c5e 100644
--- a/src/lib/style/macos-shell.css
+++ b/src/lib/style/macos-shell.css
@@ -35,7 +35,8 @@
align-items: center;
gap: var(--space-3);
height: var(--titlebar-height);
- padding: 0 calc(var(--pane-inset) + var(--space-2)) 0 var(--space-4);
+ margin-inline-end: var(--pane-inset);
+ padding: 0 var(--space-4);
background: transparent;
flex-shrink: 0;
user-select: none;
@@ -175,13 +176,13 @@
.mac-search-label {
flex: 1;
- text-align: left;
+ text-align: start;
font-size: var(--text-base);
font-weight: 400;
}
.mac-search-field .kbd {
- margin-left: auto;
+ margin-inline-start: auto;
}
@media (hover: hover) {
@@ -221,12 +222,7 @@
/* Windows and Linux keep the native title bar: `titleBarStyle: Overlay` is
macOS-only in tauri-runtime-wry, so the OS draws its own bar with the
- window controls *above* the webview. Nothing overlaps our toolbar there,
- which is why no space is reserved on the trailing edge. */
-[data-platform="other"] .mac-titlebar {
- padding-right: calc(var(--pane-inset) + var(--space-2));
-}
-
+ window controls *above* the webview. Nothing overlaps our toolbar there. */
[data-platform="other"] .mac-source-list-drag {
height: var(--space-3);
}
@@ -426,7 +422,8 @@
inset 0 0 0 var(--hairline) var(--content-border),
inset 0 1px 0 color-mix(in srgb, var(--secondary) 5%, transparent),
0 1px 2px rgba(var(--shadow-ink), var(--elev-alpha-1));
- margin: 0 var(--pane-inset) var(--pane-inset) 0;
+ margin-block: 0 var(--pane-inset);
+ margin-inline: 0 var(--pane-inset);
overflow: hidden;
position: relative;
}
@@ -954,9 +951,9 @@
flex-direction: column;
align-items: center;
justify-content: flex-start;
- gap: var(--space-4);
position: relative;
- padding: var(--space-6) var(--space-5) var(--space-8);
+ padding: var(--space-6) var(--space-5);
+ overflow-x: hidden;
overflow-y: auto;
isolation: isolate;
}
@@ -972,6 +969,9 @@
}
.home-stage-hero {
+ position: relative;
+ isolation: isolate;
+ width: 100%;
display: flex;
justify-content: center;
transition: filter var(--duration-base) var(--ease-out), opacity var(--duration-base) var(--ease-out);
@@ -983,14 +983,14 @@
}
/* one warm light behind the mascot — the single decorative moment of the page */
-.home-stage::before {
+.home-stage-hero::before {
content: "";
position: absolute;
- top: 8%;
+ top: 50%;
left: 50%;
- width: min(560px, 80%);
+ width: min(560px, 100%);
aspect-ratio: 1.4;
- transform: translateX(-50%);
+ transform: translate(-50%, -50%);
border-radius: 50%;
background: radial-gradient(closest-side, var(--accent-glow), transparent 70%);
opacity: 0.9;
@@ -998,17 +998,6 @@
z-index: -1;
}
-.home-stage-title {
- margin: 0;
- font-family: var(--font-display);
- font-size: var(--text-3xl);
- line-height: var(--leading-3xl);
- font-weight: 700;
- letter-spacing: var(--track-tight);
- color: var(--text);
- text-align: center;
-}
-
.home-secondary {
display: flex;
flex-wrap: wrap;
@@ -1049,19 +1038,6 @@
outline-offset: var(--focus-ring-offset);
}
-.home-value {
- margin: 0;
- font-size: var(--text-sm);
- color: var(--text-dim);
- text-align: center;
- font-variant-numeric: tabular-nums;
-}
-
-.home-value strong {
- font-weight: 600;
- color: var(--text-muted);
-}
-
.home-mac-workspace {
display: flex;
flex-direction: column;
@@ -1075,14 +1051,10 @@
padding: var(--space-4) var(--space-5) var(--space-3);
}
-.home-mac-workspace--idle {
- justify-content: center;
-}
-
.home-mac-hero {
flex-shrink: 0;
width: 100%;
- max-width: 640px;
+ max-width: 560px;
padding: 0 0 var(--space-3);
display: flex;
align-items: flex-end;
@@ -1091,13 +1063,6 @@
overflow: visible;
}
-.home-mac-hero .mascot-bubble {
- max-width: 100%;
- font-size: var(--text-xs);
- padding: var(--space-1) var(--space-2);
- line-height: 1.35;
-}
-
.home-mac-main {
flex-shrink: 0;
width: 100%;
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte
index d835b2d7..61cfa842 100644
--- a/src/routes/+layout.svelte
+++ b/src/routes/+layout.svelte
@@ -512,7 +512,8 @@
align-items: center;
justify-content: space-between;
gap: var(--space-3);
- margin: 0 var(--pane-inset) var(--space-2) 0;
+ margin-block: 0 var(--space-2);
+ margin-inline: 0 var(--pane-inset);
padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4);
background: var(--accent);
color: var(--on-accent);
@@ -599,7 +600,8 @@
align-items: center;
justify-content: space-between;
gap: var(--space-3);
- margin: 0 var(--pane-inset) var(--space-2) 0;
+ margin-block: 0 var(--space-2);
+ margin-inline: 0 var(--pane-inset);
padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4);
background: color-mix(in srgb, var(--warning) 16%, var(--pane-bg));
color: var(--text);
diff --git a/static/mascot/amazed.png b/static/mascot/amazed.png
index 8f95bbee..681c6a91 100644
Binary files a/static/mascot/amazed.png and b/static/mascot/amazed.png differ
diff --git a/static/mascot/complete.png b/static/mascot/complete.png
index 5ae1dd99..57409fac 100644
Binary files a/static/mascot/complete.png and b/static/mascot/complete.png differ
diff --git a/static/mascot/downloading.png b/static/mascot/downloading.png
index 329940e1..0b2a3384 100644
Binary files a/static/mascot/downloading.png and b/static/mascot/downloading.png differ
diff --git a/static/mascot/error.png b/static/mascot/error.png
index 80a51c79..fd237b80 100644
Binary files a/static/mascot/error.png and b/static/mascot/error.png differ
diff --git a/static/mascot/idle.png b/static/mascot/idle.png
index d14ac19b..2f576d4d 100644
Binary files a/static/mascot/idle.png and b/static/mascot/idle.png differ
diff --git a/static/mascot/queue.png b/static/mascot/queue.png
index a387264d..4dfae3e0 100644
Binary files a/static/mascot/queue.png and b/static/mascot/queue.png differ
diff --git a/static/mascot/stalled.png b/static/mascot/stalled.png
index f80da367..48542ded 100644
Binary files a/static/mascot/stalled.png and b/static/mascot/stalled.png differ