Skip to content

Commit

Permalink
PLAYRTS-5405 PLAYRTS-5478 Better tvOS unfocused opacity on item descr…
Browse files Browse the repository at this point in the history
…iptions

Opacity option is not a good choice with gradient colors
  • Loading branch information
pyby committed May 16, 2024
1 parent 27b905e commit eb1c8a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TV Application/Sources/LabeledCardButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ struct LabeledCardButton<Content: View, Label: View>: View {
.layoutPriority(1)

label()
.opacity(isFocused ? 1 : 0.5)
.opacity(isFocused ? 1 : 0.8)
.offset(x: 0, y: isFocused ? 10 : 0)
.scaleEffect(isFocused ? 1.1 : 1, anchor: .top)
.animation(.easeInOut(duration: 0.1))
Expand Down

0 comments on commit eb1c8a4

Please sign in to comment.