Skip to content

Commit

Permalink
opacity adjustment: make the selected wallpaper thumnail image's titl…
Browse files Browse the repository at this point in the history
…e more readable
  • Loading branch information
haren724 committed Jun 18, 2023
1 parent 298b900 commit 998deee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Open Wallpaper Engine/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -245,15 +245,17 @@ struct ContentView: View {
ZStack {
Rectangle()
.frame(height: 30)
.foregroundStyle(Color(white: 0, opacity: 0.4))
.opacity(imageScales[index] == 1 ? 0.4 : 0.2)
Text("Sumeru【Genshin Impact】")
.font(.footnote)
.lineLimit(2)
.multilineTextAlignment(.center)
.foregroundStyle(Color(white: 0.7))
.foregroundStyle(Color(white: imageScales[index] == 1 ? 0.7 : 0.9))
}
.animation(.default, value: imageScales)
}
}
.animation(.default, value: isFilterReveal)
.onTapGesture {
withAnimation(.default.speed(2)) {
selectedIndex = index
Expand Down

0 comments on commit 998deee

Please sign in to comment.