Add glass background theme setting for macOS control bar

Rename the macOS "Control Bar Buttons" settings entry to "Control Bar"
and add an Auto/Light/Dark glass background picker on that page. The
choice is stored per-preset as GlobalLayoutSettings.controlBarTheme and
forces the bar's glass color scheme via glassBackground(colorScheme:).
This commit is contained in:
Arkadiusz Fal
2026-06-02 19:38:46 +02:00
parent 0d56dd02b7
commit 96fef3663f
5 changed files with 75 additions and 5 deletions

View File

@@ -80,7 +80,7 @@ struct MacOSControlBar: View {
.padding(.horizontal, 16)
.padding(.vertical, 10)
.frame(maxWidth: 500)
.glassBackground(.regular, in: .rect(cornerRadius: 16))
.glassBackground(.regular, in: .rect(cornerRadius: 16), colorScheme: globalSettings.controlBarTheme.colorScheme)
.shadow(color: .black.opacity(0.3), radius: 8, y: 4)
// Seek preview overlay - positioned above the control bar
.overlay(alignment: .bottom) {