mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-05-24 13:50:11 +00:00
macOS: update window appearance for About and ConfigurationErrors
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -29,5 +29,6 @@ class ConfigurationErrorsController: NSWindowController, NSWindowDelegate, Confi
|
||||
window.center()
|
||||
window.level = .popUpMenu
|
||||
window.contentView = NSHostingView(rootView: ConfigurationErrorsView(model: self))
|
||||
window.titlebarAppearsTransparent = true
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,8 +46,11 @@ struct ConfigurationErrorsView<ViewModel: ConfigurationErrorsViewModel>: 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)
|
||||
|
||||
Reference in New Issue
Block a user