mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
50 lines
1.1 KiB
Swift
50 lines
1.1 KiB
Swift
//
|
|
// DynamicIslandWindow.swift
|
|
// DynamicIsland
|
|
//
|
|
// Created by Harsh Vardhan Goswami on 06/08/24.
|
|
//
|
|
|
|
import Cocoa
|
|
|
|
class DynamicIslandWindow: NSPanel {
|
|
override init(
|
|
contentRect: NSRect,
|
|
styleMask: NSWindow.StyleMask,
|
|
backing: NSWindow.BackingStoreType,
|
|
defer flag: Bool
|
|
) {
|
|
super.init(
|
|
contentRect: contentRect,
|
|
styleMask: styleMask,
|
|
backing: backing,
|
|
defer: flag
|
|
)
|
|
|
|
isFloatingPanel = true
|
|
isOpaque = false
|
|
titleVisibility = .hidden
|
|
titlebarAppearsTransparent = true
|
|
backgroundColor = .clear
|
|
isMovable = false
|
|
|
|
collectionBehavior = [
|
|
.fullScreenAuxiliary,
|
|
.stationary,
|
|
.canJoinAllSpaces,
|
|
.ignoresCycle,
|
|
]
|
|
|
|
isReleasedWhenClosed = false
|
|
level = .mainMenu + 3
|
|
hasShadow = false
|
|
}
|
|
|
|
override var canBecomeKey: Bool {
|
|
false
|
|
}
|
|
|
|
override var canBecomeMain: Bool {
|
|
false
|
|
}
|
|
}
|