mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
BugFix: Reminder Memory Leak
This commit is contained in:
parent
4e0659d4cc
commit
39673e9130
8 changed files with 401 additions and 456 deletions
16
DynamicIsland/extensions/Color+AccentColor.swift
Normal file
16
DynamicIsland/extensions/Color+AccentColor.swift
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue