UIFix: Window Shadows and Notch Shadows

This commit is contained in:
Hariharan Mudaliar 2025-11-26 23:23:49 +05:30
commit 3bba53c583
4 changed files with 68 additions and 17 deletions

View file

@ -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) {