mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
Restored files from old Mac, force pushing
This commit is contained in:
parent
5dd95228b8
commit
5040381840
126 changed files with 10431 additions and 67 deletions
50
DynamicIsland/components/Notch/DynamicIslandWindow.swift
Normal file
50
DynamicIsland/components/Notch/DynamicIslandWindow.swift
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
//
|
||||
// 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
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue