add glass background to bar, remove from buttons

This commit is contained in:
Jesús A. Álvarez 2024-02-16 21:29:22 +01:00
parent 043c20b645
commit 0204043e10

View File

@ -20,22 +20,23 @@ extension ViewController {
VStack { VStack {
Spacer(minLength: 80.0) Spacer(minLength: 80.0)
HStack { HStack {
PowerMenu().glassBackgroundEffect() PowerMenu()
SettingsMenu().glassBackgroundEffect() SettingsMenu()
Button(action: { Button(action: {
AppDelegate.shared.showInsertDisk(self) AppDelegate.shared.showInsertDisk(self)
}, label: { }, label: {
Image(systemName: "opticaldiscdrive") Image(systemName: "opticaldiscdrive")
}).glassBackgroundEffect() })
Button(action: { Button(action: {
self.showKeyboard(self) self.showKeyboard(self)
}, label: { }, label: {
Image(systemName: "keyboard") Image(systemName: "keyboard")
}).glassBackgroundEffect() })
}.padding(.all) }
.glassBackgroundEffect() .padding(.all)
.glassBackgroundEffect()
} }
} }
] ]