mirror of
https://github.com/yattee/yattee.git
synced 2026-07-20 14:22:02 +00:00
Unify macOS content view backgrounds with opaque window background
Views without an explicit background sat on the translucent window material, which picks up a wallpaper tint (bluish in dark mode) and clashed with views drawing windowBackgroundColor, making the video info header gradient fade visibly mismatch. Add opaqueWindowBackground() and apply it centrally in NavigationDestinationHandlerModifier to both stack roots and pushed destinations, plus VideoInfoView for presentations outside navigation stacks. Claude-Session: https://claude.ai/code/session_0154KH8RAVAvm6iVanhmoW8o
This commit is contained in:
@@ -184,13 +184,17 @@ private struct MediaSourceByIDView: View {
|
||||
struct NavigationDestinationHandlerModifier: ViewModifier {
|
||||
func body(content: Content) -> some View {
|
||||
content
|
||||
.opaqueWindowBackground()
|
||||
.navigationDestination(for: NavigationDestination.self) { destination in
|
||||
if let transitionID = destination.transitionID {
|
||||
destination.view()
|
||||
.zoomTransitionDestination(id: transitionID)
|
||||
} else {
|
||||
destination.view()
|
||||
Group {
|
||||
if let transitionID = destination.transitionID {
|
||||
destination.view()
|
||||
.zoomTransitionDestination(id: transitionID)
|
||||
} else {
|
||||
destination.view()
|
||||
}
|
||||
}
|
||||
.opaqueWindowBackground()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user