Ignore:
Timestamp:
May 2, 2019 10:39:11 PM (13 months ago)
Author:
meeh <meeh@…>
Branches:
master
Children:
2af1f68
Parents:
214efb8
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • launchers/macosx/I2PLauncher/userinterface/preferences/PreferencesWindowController.swift

    r214efb8 r56eb11bc  
    1111class PreferencesWindowController: NSWindowController, NSWindowDelegate {
    1212
    13     override func windowDidLoad() {
    14         super.windowDidLoad()
     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
    1521   
    16         // Implement this method to handle any initialization after your window controller's window has been loaded from its nib file.
    17     }
     22    //self.window?.titlebarAppearsTransparent = true
     23    //self.window?.styleMask.insert(.fullSizeContentView)
     24    window?.titlebarAppearsTransparent = true
     25  }
    1826 
    1927  func windowShouldClose(_ sender: NSWindow) -> Bool {
Note: See TracChangeset for help on using the changeset viewer.