BugFix: Reminder Memory Leak

This commit is contained in:
Hariharan Mudaliar 2025-12-01 21:02:49 +05:30
commit 39673e9130
8 changed files with 401 additions and 456 deletions

View file

@ -0,0 +1,16 @@
#if os(macOS)
import SwiftUI
import Defaults
extension Color {
/// Returns the accent color configured in settings, falling back to the system accent color.
static var effectiveAccent: Color {
Defaults[.accentColor]
}
/// Returns a subtle background variant of the accent color.
static var effectiveAccentBackground: Color {
Defaults[.accentColor].opacity(0.25)
}
}
#endif