aboutsummaryrefslogtreecommitdiff
path: root/Captura/Presentation/Windows/PreferencesWindow.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Captura/Presentation/Windows/PreferencesWindow.swift')
-rw-r--r--Captura/Presentation/Windows/PreferencesWindow.swift20
1 files changed, 20 insertions, 0 deletions
diff --git a/Captura/Presentation/Windows/PreferencesWindow.swift b/Captura/Presentation/Windows/PreferencesWindow.swift
new file mode 100644
index 0000000..40eac0d
--- /dev/null
+++ b/Captura/Presentation/Windows/PreferencesWindow.swift
@@ -0,0 +1,20 @@
+import Cocoa
+import SwiftUI
+
+import Foundation
+
+class PreferencesWindow: NSWindow {
+
+ init() {
+ super.init(
+ contentRect: NSRect(x: 0, y: 0, width: 600, height: 600),
+ styleMask: [.titled, .closable, .resizable, .fullSizeContentView],
+ backing: .buffered,
+ defer: false)
+ super.center()
+ self.isReleasedWhenClosed = false
+ super.setFrameAutosaveName("Preferences Window")
+ super.contentView = NSHostingView(rootView: PreferencesScreen())
+ super.makeKeyAndOrderFront(nil)
+ }
+}