ui: fade URL input in place and use Sunset placeholder color

This commit is contained in:
2026-10-12 15:12:08 +02:00
parent aacd260fe7
commit b2dc5fa373
2 changed files with 5 additions and 3 deletions
+4 -2
View File
@@ -1580,7 +1580,9 @@ private struct PlayerContent: View {
.disabled(!model.canOpen)
if showsYouTubeInput {
HStack(spacing: 8) {
TextField("YouTube video URL", text: $youTubeURL)
TextField("YouTube video URL", text: $youTubeURL,
prompt: Text("YouTube video URL")
.foregroundStyle(Color(SunsetPalette.secondaryText)))
.textFieldStyle(.plain)
.focused($youTubeInputFocused)
.accessibilityLabel("YouTube video URL")
@@ -1606,7 +1608,7 @@ private struct PlayerContent: View {
.overlay(RoundedRectangle(cornerRadius: 8)
.strokeBorder(Color(SunsetPalette.outline), lineWidth: 0.5)
.allowsHitTesting(false))
.transition(reduceMotion ? .opacity : .move(edge: .top).combined(with: .opacity))
.transition(.opacity)
.disabled(!model.canOpen)
}
Text("Drop a media file or YouTube link here")