ui: fade URL input in place and use Sunset placeholder color
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user