mirror of
				https://github.com/yattee/yattee.git
				synced 2025-11-04 06:32:03 +00:00 
			
		
		
		
	Improve macOS Big Sur blur effect
This commit is contained in:
		@@ -33,7 +33,7 @@ final class PlayerModel: ObservableObject {
 | 
			
		||||
    @Published var streamSelection: Stream? { didSet { rebuildTVMenu() } }
 | 
			
		||||
 | 
			
		||||
    @Published var queue = [PlayerQueueItem]() { didSet { Defaults[.queue] = queue } }
 | 
			
		||||
    @Published var currentItem: PlayerQueueItem! { didSet { updateWindowTitle() }}
 | 
			
		||||
    @Published var currentItem: PlayerQueueItem! { didSet { updateWindowTitle() } }
 | 
			
		||||
    @Published var historyVideos = [Video]()
 | 
			
		||||
 | 
			
		||||
    @Published var preservedTime: CMTime?
 | 
			
		||||
 
 | 
			
		||||
@@ -34,7 +34,7 @@ struct DetailBadge: View {
 | 
			
		||||
            } else {
 | 
			
		||||
                content
 | 
			
		||||
                #if os(macOS)
 | 
			
		||||
                .background(VisualEffectBlur())
 | 
			
		||||
                .background(VisualEffectBlur(material: .hudWindow))
 | 
			
		||||
                #elseif os(iOS)
 | 
			
		||||
                .background(VisualEffectBlur(blurStyle: .systemThinMaterial))
 | 
			
		||||
                #endif
 | 
			
		||||
 
 | 
			
		||||
@@ -119,7 +119,7 @@ struct PlayerControlsView<Content: View>: View {
 | 
			
		||||
            } else {
 | 
			
		||||
                controls
 | 
			
		||||
                #if os(macOS)
 | 
			
		||||
                .background(VisualEffectBlur())
 | 
			
		||||
                .background(VisualEffectBlur(material: .hudWindow))
 | 
			
		||||
                #elseif os(iOS)
 | 
			
		||||
                .background(VisualEffectBlur(blurStyle: .systemUltraThinMaterial))
 | 
			
		||||
                #endif
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user