From 628ccebd9ae723a5c784b24b0427e6abaf07abb2 Mon Sep 17 00:00:00 2001 From: Jokin Date: Mon, 13 Jul 2026 14:26:25 +0200 Subject: [PATCH] Rename Text size to Interface; scale panel header with it Action buttons, server picker, and its dropdown now follow the size setting via new --action-h/--action-font/--action-icon variables. Default tier matches the old fixed sizes; tab bar stays fixed. Co-Authored-By: Claude Fable 5 --- src/shared/types.ts | 2 +- ui/src/app/file-panel/file-panel.html | 72 ++++++++++++++------------- ui/src/app/tab-bar/tab-bar.ts | 2 +- ui/src/styles.css | 16 ++++-- 4 files changed, 53 insertions(+), 39 deletions(-) diff --git a/src/shared/types.ts b/src/shared/types.ts index a970546..42286f7 100644 --- a/src/shared/types.ts +++ b/src/shared/types.ts @@ -69,7 +69,7 @@ export interface AppSettings { /** File-list icons: plain neutral glyphs, or per-category glyphs and colors. */ iconColors: "plain" | "multi"; speedUnit: "MBps" | "Mbps"; - /** Font size of the path bar and file list. */ + /** Size of the panel interface: file list, path bar, header controls. */ textSize: "compact" | "default" | "large"; /** Run transfer jobs one at a time, or several in parallel. */ transferMode: "single" | "multi"; diff --git a/ui/src/app/file-panel/file-panel.html b/ui/src/app/file-panel/file-panel.html index ba18ec5..61a5c2a 100644 --- a/ui/src/app/file-panel/file-panel.html +++ b/ui/src/app/file-panel/file-panel.html @@ -2,28 +2,32 @@
@if (isRemote()) { } @@ -34,55 +38,55 @@ @if (menuOpen()) { @@ -92,9 +96,9 @@ > } @@ -120,9 +124,9 @@ @for (connection of group.connections; track connection.id) { } @@ -138,9 +142,9 @@ (click)="pickSshHost(host)" [disabled]="host.unsupported" [title]="sshHostTitle(host)" - class="flex w-full items-center gap-2 py-1.5 pr-3 pl-5 text-left text-xs hover:bg-accent disabled:opacity-60 disabled:hover:bg-transparent" + class="flex w-full items-center gap-2 py-1.5 pr-3 pl-5 text-left text-(length:--path-font) hover:bg-accent disabled:opacity-60 disabled:hover:bg-transparent" > - + {{ host.name }} } @@ -149,9 +153,9 @@
diff --git a/ui/src/app/tab-bar/tab-bar.ts b/ui/src/app/tab-bar/tab-bar.ts index 386f3f1..01f6cf6 100644 --- a/ui/src/app/tab-bar/tab-bar.ts +++ b/ui/src/app/tab-bar/tab-bar.ts @@ -169,7 +169,7 @@ const CONCURRENCY_CHOICES = [2, 3, 4, 6, 8] as const;
- Text size + Interface
@for (size of textSizes; track size) {