mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
Update: Support for 2K resolution
This commit is contained in:
parent
3a99bad78d
commit
5b489ee90d
5 changed files with 42 additions and 9 deletions
|
|
@ -53,10 +53,11 @@ struct DynamicIslandHeader: View {
|
|||
}
|
||||
|
||||
if vm.notchState == .open && !Defaults[.enableMinimalisticUI] {
|
||||
let spacerWidth = min(vm.closedNotchSize.width, 300)
|
||||
Rectangle()
|
||||
.fill(NSScreen.screens
|
||||
.first(where: { $0.localizedName == coordinator.selectedScreen })?.safeAreaInsets.top ?? 0 > 0 ? .black : .clear)
|
||||
.frame(width: vm.closedNotchSize.width)
|
||||
.frame(width: spacerWidth)
|
||||
.mask {
|
||||
NotchShape()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,7 +32,8 @@ struct MusicPlayerView: View {
|
|||
|
||||
var body: some View {
|
||||
HStack(alignment: .top, spacing: 12) {
|
||||
AlbumArtView(vm: vm, albumArtNamespace: albumArtNamespace).padding(.all, 5)
|
||||
AlbumArtView(vm: vm, albumArtNamespace: albumArtNamespace)
|
||||
.padding(.all, 5)
|
||||
MusicControlsView()
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
.drawingGroup()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue