mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
Update LiquidGlassBackground to remove polling
This commit is contained in:
parent
4ec5c84b9c
commit
1d6cdf866a
8 changed files with 145 additions and 59 deletions
|
|
@ -163,14 +163,11 @@ struct CustomOSDView: View {
|
|||
case .liquid:
|
||||
if #available(macOS 26.0, *) {
|
||||
if osdLiquidGlassCustomizationMode == .customLiquid {
|
||||
TimelineView(.periodic(from: .now, by: 1.0 / 30.0)) { context in
|
||||
LiquidGlassBackground(
|
||||
variant: osdLiquidGlassVariant,
|
||||
cornerRadius: 18,
|
||||
trigger: context.date.timeIntervalSinceReferenceDate
|
||||
) {
|
||||
Color.white.opacity(0.04)
|
||||
}
|
||||
LiquidGlassBackground(
|
||||
variant: osdLiquidGlassVariant,
|
||||
cornerRadius: 18
|
||||
) {
|
||||
Color.white.opacity(0.04)
|
||||
}
|
||||
} else {
|
||||
RoundedRectangle(cornerRadius: 18, style: .continuous)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue