Add interface languages and improve themes and workspace controls for 0.1.36

This commit is contained in:
Knotty Wyvern
2026-10-15 10:55:59 -07:00
parent b066359b66
commit 68e86ab6eb
98 changed files with 5499 additions and 874 deletions
+5 -4
View File
@@ -1,4 +1,5 @@
<script lang="ts">
import { t } from "$lib/i18n";
import { onMount } from "svelte";
import { getCurrentWindow } from "@tauri-apps/api/window";
import IconButton from "./IconButton.svelte";
@@ -32,12 +33,12 @@
});
</script>
<div class="window-controls" role="group" aria-label="Window controls">
<IconButton icon="minimize" label="Minimize window" onclick={() => void run("minimize")} />
<div class="window-controls" role="group" aria-label={$t("Window controls")}>
<IconButton icon="minimize" label={$t("Minimize window")} onclick={() => void run("minimize")} />
<IconButton icon={maximized ? "window-restore" : "window-maximize"}
label={maximized ? "Restore window" : "Maximize window"} onclick={() => void run("toggleMaximize")} />
label={maximized ? $t("Restore window") : $t("Maximize window")} onclick={() => void run("toggleMaximize")} />
<div class="window-close">
<IconButton icon="close" label="Close window" onclick={() => void run("close")} />
<IconButton icon="close" label={$t("Close window")} onclick={() => void run("close")} />
</div>
</div>
+7
View File
@@ -1,5 +1,12 @@
// Stroke icons share the same 24px grid and weight as IconButton.
export const actionIcons = {
play: '<path d="m7 4 14 8-14 8Z"/>',
pause: '<path d="M7 4v16M17 4v16"/>',
'skip-forward': '<path d="m4 4 12 8-12 8ZM20 4v16"/>',
eye: '<path d="M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Z"/><circle cx="12" cy="12" r="3"/>',
'eye-off': '<path d="m3 3 18 18M10.6 5.1 12 5c6.5 0 10 7 10 7a18 18 0 0 1-3.1 3.8M6.2 6.2A21 21 0 0 0 2 12s3.5 7 10 7a13 13 0 0 0 5.8-1.4M9.9 9.9a3 3 0 0 0 4.2 4.2"/>',
image: '<rect x="3" y="3" width="18" height="18" rx="2"/><circle cx="8" cy="8" r="1.5"/><path d="m21 15-5-5L5 21"/>',
settings: '<path d="M4 7h16M4 17h16"/><circle cx="9" cy="7" r="3"/><circle cx="15" cy="17" r="3"/>',
archive: '<path d="M4 8v12h16V8M3 3h18v5H3zM9 12h6"/>',
save: '<path d="M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"/><path d="M17 21v-8H7v8M7 3v5h8"/>',
refresh: '<path d="M20 7v5h-5M4 17v-5h5M6 7a7 7 0 0 1 12-1l2 3M4 15l2 3a7 7 0 0 0 12-1"/>',
+1 -1
View File
@@ -46,5 +46,5 @@
.rs-menu > button > .action-icon, .rs-picker-icon { width: var(--rs-menu-icon-size); height: var(--rs-menu-icon-size); flex: 0 0 var(--rs-menu-icon-size); }
.rs-picker-hint { display: block; color: var(--rs-text-dim); font-size: var(--rs-settings-description-size); }
.rs-picker-icon > svg { width: 100%; height: 100%; }
.rs-menu > button > .action-label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.rs-menu > button > .action-label { flex: 1; min-width: 0; overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
.rs-menu > button > .action-chevron { width: 13px; height: 13px; flex: 0 0 13px; }