source: launchers/macosx/I2PLauncher/userinterface/preferences/PreferencesWindowController.swift @ 56eb11bc

Last change on this file since 56eb11bc was 56eb11bc, checked in by meeh <meeh@…>, 13 months ago

Mac OSX Launcher: Adding Swift 4.2 support to the preferences UI classes.

  • Property mode set to 100644
File size: 803 bytes
Line 
1//
2//  PreferencesWindowController.swift
3//  I2PLauncher
4//
5//  Created by Mikal Villa on 07/11/2018.
6//  Copyright © 2018 The I2P Project. All rights reserved.
7//
8
9import Cocoa
10
11class PreferencesWindowController: NSWindowController, NSWindowDelegate {
12
13  override func windowDidLoad() {
14    super.windowDidLoad()
15 
16    let visualEffect = NSVisualEffectView()
17    visualEffect.blendingMode = .behindWindow
18    visualEffect.state = .active
19    visualEffect.material = .dark
20    //self.window?.contentView = visualEffect
21   
22    //self.window?.titlebarAppearsTransparent = true
23    //self.window?.styleMask.insert(.fullSizeContentView)
24    window?.titlebarAppearsTransparent = true
25  }
26 
27  func windowShouldClose(_ sender: NSWindow) -> Bool {
28    self.window?.orderOut(sender)
29    return false
30  }
31
32}
Note: See TracBrowser for help on using the repository browser.