From 1f5e9541e7d80dfc0ffc02fe81c4a4d4ac4d3657 Mon Sep 17 00:00:00 2001 From: hl-valdemar Date: Mon, 12 Oct 2026 15:40:47 +0200 Subject: [PATCH] ui: size the URL input to its content and padding --- README.md | 2 +- Sources/App/TerebiApp.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3e5b051..572110d 100644 --- a/README.md +++ b/README.md @@ -188,7 +188,7 @@ 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. +The inline URL field, including its placeholder, uses the same 12-point system font as the drop hint below it. Its height follows the content with 4-point vertical padding rather than matching the taller opening buttons; the submit arrow retains its 24-point click target. 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. diff --git a/Sources/App/TerebiApp.swift b/Sources/App/TerebiApp.swift index 73f068b..0501adb 100644 --- a/Sources/App/TerebiApp.swift +++ b/Sources/App/TerebiApp.swift @@ -1603,7 +1603,7 @@ private struct PlayerContent: View { .font(.system(size: 12)) .foregroundStyle(Color(SunsetPalette.text)) .padding(.horizontal, 12) - .frame(height: 40) + .padding(.vertical, 4) .background(Color(SunsetPalette.actionFill), in: RoundedRectangle(cornerRadius: 8)) .overlay(RoundedRectangle(cornerRadius: 8) .strokeBorder(Color(SunsetPalette.outline), lineWidth: 0.5)