Initial commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
// PreferencesWindowController.swift
|
||||
// GreenshotMac
|
||||
|
||||
import AppKit
|
||||
import SwiftUI
|
||||
|
||||
@MainActor
|
||||
final class PreferencesWindowController: NSWindowController {
|
||||
|
||||
convenience init() {
|
||||
let hosting = NSHostingController(rootView: PreferencesView())
|
||||
let window = NSWindow(contentViewController: hosting)
|
||||
window.title = "GreenshotMac Preferences"
|
||||
window.styleMask = [.titled, .closable]
|
||||
window.setContentSize(NSSize(width: 552, height: 412))
|
||||
window.center()
|
||||
window.isReleasedWhenClosed = false
|
||||
self.init(window: window)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user