mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-28 23:54:32 +00:00
UIFix: Window Shadows and Notch Shadows
This commit is contained in:
parent
80d132a85f
commit
3bba53c583
4 changed files with 68 additions and 17 deletions
|
|
@ -278,11 +278,15 @@ class AppDelegate: NSObject, NSApplicationDelegate {
|
|||
|
||||
// Use minimalistic or normal size based on settings, then adjust for stats layout
|
||||
let baseSize = Defaults[.enableMinimalisticUI] ? minimalisticOpenNotchSize : openNotchSize
|
||||
return statsAdjustedNotchSize(
|
||||
let adjustedContentSize = statsAdjustedNotchSize(
|
||||
from: baseSize,
|
||||
isStatsTabActive: coordinator.currentView == .stats,
|
||||
secondRowProgress: coordinator.statsSecondRowExpansion
|
||||
)
|
||||
return addShadowPadding(
|
||||
to: adjustedContentSize,
|
||||
isMinimalistic: Defaults[.enableMinimalisticUI]
|
||||
)
|
||||
}
|
||||
|
||||
func ensureWindowSize(_ size: CGSize, animated: Bool, force: Bool = false) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue