]> git.r.bdr.sh - rbdr/captura/blame - Captura/Presentation/Windows/PreferencesWindow.swift
Complete initial release
[rbdr/captura] / Captura / Presentation / Windows / PreferencesWindow.swift
CommitLineData
a4e80427
RBR
1import Cocoa
2import SwiftUI
3
4import Foundation
5
6class PreferencesWindow: NSWindow {
7
8 init() {
9 super.init(
10 contentRect: NSRect(x: 0, y: 0, width: 600, height: 600),
11 styleMask: [.titled, .closable, .resizable, .fullSizeContentView],
12 backing: .buffered,
13 defer: false)
533cd932 14 self.center()
a4e80427 15 self.isReleasedWhenClosed = false
533cd932
RBR
16 self.setFrameAutosaveName("Preferences Window")
17 self.contentView = NSHostingView(rootView: PreferencesScreen())
18 self.makeKeyAndOrderFront(nil)
19 self.orderFrontRegardless()
a4e80427
RBR
20 }
21}