mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-28 07:34:32 +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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue