From 0226bcf034a0ba040ae4178336144f9df80e4c6e Mon Sep 17 00:00:00 2001 From: Lukas <134181853+bo2themax@users.noreply.github.com> Date: Wed, 6 May 2026 19:14:42 +0200 Subject: [PATCH] macOS: update window appearance for About and ConfigurationErrors --- macos/Sources/Features/About/AboutController.swift | 1 + .../Features/Settings/ConfigurationErrorsController.swift | 1 + macos/Sources/Features/Settings/ConfigurationErrorsView.swift | 3 +++ 3 files changed, 5 insertions(+) diff --git a/macos/Sources/Features/About/AboutController.swift b/macos/Sources/Features/About/AboutController.swift index 6f4cccf6d..ace92052c 100644 --- a/macos/Sources/Features/About/AboutController.swift +++ b/macos/Sources/Features/About/AboutController.swift @@ -13,6 +13,7 @@ class AboutController: NSWindowController, NSWindowDelegate { window.center() window.isMovableByWindowBackground = true window.contentView = NSHostingView(rootView: AboutView().environmentObject(viewModel)) + window.titlebarAppearsTransparent = true } // MARK: - Functions diff --git a/macos/Sources/Features/Settings/ConfigurationErrorsController.swift b/macos/Sources/Features/Settings/ConfigurationErrorsController.swift index 06fcebda3..9956f7873 100644 --- a/macos/Sources/Features/Settings/ConfigurationErrorsController.swift +++ b/macos/Sources/Features/Settings/ConfigurationErrorsController.swift @@ -29,5 +29,6 @@ class ConfigurationErrorsController: NSWindowController, NSWindowDelegate, Confi window.center() window.level = .popUpMenu window.contentView = NSHostingView(rootView: ConfigurationErrorsView(model: self)) + window.titlebarAppearsTransparent = true } } diff --git a/macos/Sources/Features/Settings/ConfigurationErrorsView.swift b/macos/Sources/Features/Settings/ConfigurationErrorsView.swift index 3ed84e3f0..d81552efc 100644 --- a/macos/Sources/Features/Settings/ConfigurationErrorsView.swift +++ b/macos/Sources/Features/Settings/ConfigurationErrorsView.swift @@ -46,8 +46,11 @@ struct ConfigurationErrorsView: View { HStack { Spacer() Button("Ignore") { model.errors = [] } + .keyboardShortcut(.cancelAction) Button("Reload Configuration") { reloadConfig() } + .keyboardShortcut(.defaultAction) } + .controlSize(.large) .padding([.bottom, .trailing]) } .frame(minWidth: 480, maxWidth: 960, minHeight: 270)