From 3d897c3a0509647b67a91323867340b165a1cf7e Mon Sep 17 00:00:00 2001 From: hl-valdemar Date: Mon, 12 Oct 2026 15:34:57 +0200 Subject: [PATCH] ui: match URL input font size to the drop hint --- README.md | 2 ++ Sources/App/TerebiApp.swift | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 05bda21..3e5b051 100644 --- a/README.md +++ b/README.md @@ -188,6 +188,8 @@ The layout follows [IINA's video-first window](https://iina.io/img/screenshot.pn The empty player uses the same tinted HUD-glass material, faint warm outlines, 12-point rounded corners, and Sunset palette in a centered welcome card. File and YouTube opening actions are separate, equally sized buttons with a 10-point gap, subtle orange fills, and matching half-point sand outlines. The YouTube button toggles an outlined inline URL field below the buttons, spanning their combined width including the gap. Its placeholder uses the secondary sand text color at 60% opacity to distinguish it from entered text. Showing it focuses the field; hiding it releases text-input focus and preserves the draft. The field fades in and out without a slide while the card adjusts over 220 ms with ease-in/out timing; Reduce Motion disables the animation. Return or the arrow button submits through the existing YouTube URL validation. Other URL-opening entry points retain their dialog. The card fits the minimum window, and the full window still accepts media-file and YouTube-link drops. +The inline URL field, including its placeholder, uses the same 12-point system font as the drop hint below it. + With no media open, the full window uses native behind-window HUD glass with a 35%-opaque brown tint. Static, cached amber/rust radial gradients add ambient color only to the empty screen; they disappear during loading or errors, and are never drawn over video or playback chrome. Glass title/control/error surfaces use the same brown tint with half-point sand outlines. Decorative drawing does not intercept input. The idle Metal surface stays attached but hidden; opening media restores a solid black background and letterboxing without tinting the video, and closing it restores the ambient frosted background. macOS controls the material’s appearance, including Reduce Transparency. Normal and compact titlebars have no full-width glass strip or separator: content extends beneath AppKit’s transparent titlebar using `fullSizeContentView`, `titlebarAppearsTransparent`, and `titlebarSeparatorStyle = .none`. Normal-mode titles and their file icons have a small rounded HUD-glass backdrop for legibility; the pin stays over the existing background. Compact titles sit in a controls-style frosted box with 8-point top/left insets, matching the controller’s bottom inset. Long titles truncate in the middle and fit the 160-point minimum width. Native traffic lights and window dragging are preserved. diff --git a/Sources/App/TerebiApp.swift b/Sources/App/TerebiApp.swift index 4b92633..73f068b 100644 --- a/Sources/App/TerebiApp.swift +++ b/Sources/App/TerebiApp.swift @@ -1600,7 +1600,7 @@ private struct PlayerContent: View { .help("Open YouTube Video") .disabled(youTubeURL.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty) } - .font(.system(size: 13)) + .font(.system(size: 12)) .foregroundStyle(Color(SunsetPalette.text)) .padding(.horizontal, 12) .frame(height: 40)