mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 23:24:32 +00:00
Working
This commit is contained in:
parent
5040381840
commit
13a2ff0e20
67 changed files with 395 additions and 93 deletions
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// ContentView.swift
|
||||
// boringNotchApp
|
||||
// DynamicIslandApp
|
||||
//
|
||||
// Created by Harsh Vardhan Goswami on 02/08/24
|
||||
// Modified by Richard Kunkli on 24/08/2024.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// DynamicIslandApp.swift
|
||||
// DynamicIsland
|
||||
// DynamicIslandApp
|
||||
//
|
||||
// Created by Harsh Vardhan Goswami on 02/08/24.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -156,6 +156,7 @@
|
|||
}
|
||||
},
|
||||
"boring.notch" : {
|
||||
"extractionState" : "stale",
|
||||
"localizations" : {
|
||||
"en" : {
|
||||
"stringUnit" : {
|
||||
|
|
@ -313,6 +314,9 @@
|
|||
},
|
||||
"Drop files here" : {
|
||||
|
||||
},
|
||||
"dynamic.island" : {
|
||||
|
||||
},
|
||||
"Easily copy, store, and manage your most-used content. Upgrade now for advanced features like multi-item storage and quick access!" : {
|
||||
|
||||
|
|
@ -414,7 +418,7 @@
|
|||
"Gradient" : {
|
||||
|
||||
},
|
||||
"Hide BoringNotch Options" : {
|
||||
"Hide DynamicIsland Options" : {
|
||||
|
||||
},
|
||||
"Hide only when NowPlaying app is in fullscreen" : {
|
||||
|
|
@ -471,6 +475,7 @@
|
|||
|
||||
},
|
||||
"Made with 🫶🏻 by not so boring not.people" : {
|
||||
"extractionState" : "stale",
|
||||
"localizations" : {
|
||||
"en" : {
|
||||
"stringUnit" : {
|
||||
|
|
@ -479,6 +484,9 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"Made with 🫶🏻 by the DynamicIsland team" : {
|
||||
|
||||
},
|
||||
"Match menubar height" : {
|
||||
|
||||
|
|
@ -705,7 +713,7 @@
|
|||
"Restart" : {
|
||||
|
||||
},
|
||||
"Restart Boring Notch" : {
|
||||
"Restart Dynamic Island" : {
|
||||
|
||||
},
|
||||
"Running" : {
|
||||
|
|
@ -841,7 +849,7 @@
|
|||
"System features" : {
|
||||
|
||||
},
|
||||
"TheBoringNotch" : {
|
||||
"TheDynamicIsland" : {
|
||||
|
||||
},
|
||||
"Time to Full Charge: %lld min" : {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// AppleMusicController.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Alexander Greco on 2025-03-29.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// MediaControllerProtocol.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Alexander Greco on 2025-03-29.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// NowPlayingController.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Alexander on 2025-03-29.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// SpotifyController.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Alexander Greco on 2025-03-29.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// YouTubeMusicController.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created By Alexander Greco on 2025-03-30.
|
||||
//
|
||||
|
|
@ -23,7 +23,7 @@ class YouTubeMusicController: MediaControllerProtocol {
|
|||
private var cancellables = Set<AnyCancellable>()
|
||||
private var playbackInfoCancellable: AnyCancellable?
|
||||
private var isAuthenticating = false
|
||||
private let authQueue = DispatchQueue(label: "com.boringnotch.youtubemusicauth", qos: .background)
|
||||
private let authQueue = DispatchQueue(label: "com.dynamicisland.youtubemusicauth", qos: .background)
|
||||
|
||||
init() {
|
||||
setupAppStateObservers()
|
||||
|
|
@ -64,7 +64,7 @@ class YouTubeMusicController: MediaControllerProtocol {
|
|||
}
|
||||
|
||||
private func getAccessToken(completion: @escaping (Bool) -> Void) {
|
||||
guard let url = URL(string: "\(baseURL)/auth/boringNotch") else {
|
||||
guard let url = URL(string: "\(baseURL)/auth/dynamicIsland") else {
|
||||
completion(false)
|
||||
return
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// Constants.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Richard Kunkli on 16/08/2024.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
//
|
||||
// Created by Harsh Vardhan Goswami on 04/08/24.
|
||||
// HelloAnimation.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Harsh Vardhan Goswami on 08/08/24.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// BoringCalender.swift
|
||||
// boringNotch
|
||||
// DynamicIslandCalendar.swift
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Harsh Vardhan Goswami on 08/09/24.
|
||||
//
|
||||
|
|
@ -3,8 +3,8 @@
|
|||
// DynamicIsland
|
||||
//
|
||||
// Created by Harsh Vardhan Goswami on 04/08/24.
|
||||
// BoringSystemTiles.swift
|
||||
// boringNotch
|
||||
// DynamicIslandSystemTiles.swift
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Harsh Vardhan Goswami on 16/08/24.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// HoverButton.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Kraigo on 04.09.2024.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// DownloadView.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Harsh Vardhan Goswami on 17/08/24.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ struct BatteryView: View {
|
|||
var batteryWidth: CGFloat = 26
|
||||
var isForNotification: Bool
|
||||
|
||||
var animationStyle: BoringAnimations = BoringAnimations()
|
||||
var animationStyle: DynamicIslandAnimations = DynamicIslandAnimations()
|
||||
|
||||
var icon: String = "battery.0"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// InlineHUDs.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Richard Kunkli on 14/09/2024.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// LiveActivityModifier.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Richard Kunkli on 12/08/2024.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// MarqueeTextView.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Richard Kunkli on 08/08/2024.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// SystemEventIndicatorModifier.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Richard Kunkli on 12/08/2024.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// LottieAnimationView.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Richard Kunkli on 2024. 10. 29..
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// MusicVisualizer.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Harsh Vardhan Goswami on 02/08/24.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,13 +1,17 @@
|
|||
//
|
||||
// BoringExtrasMenu.swift
|
||||
// boringNotch
|
||||
// DynamicIslandExtrasMenu.swift
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Harsh Vardhan Goswami on 02/08/24.
|
||||
// DynamicIslandExtrasMenu.swift
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Harsh Vardhan Goswami on 04/08/24.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct BoringLargeButtons: View {
|
||||
struct DynamicIslandLargeButtons: View {
|
||||
var action: () -> Void
|
||||
var icon: Image
|
||||
var title: String
|
||||
|
|
@ -27,7 +31,7 @@ struct BoringLargeButtons: View {
|
|||
}
|
||||
}
|
||||
|
||||
struct BoringExtrasMenu : View {
|
||||
struct DynamicIslandExtrasMenu : View {
|
||||
@ObservedObject var vm: DynamicIslandViewModel
|
||||
|
||||
var body: some View {
|
||||
|
|
@ -41,7 +45,7 @@ struct BoringExtrasMenu : View {
|
|||
}
|
||||
|
||||
var github: some View {
|
||||
BoringLargeButtons(
|
||||
DynamicIslandLargeButtons(
|
||||
action: {
|
||||
NSWorkspace.shared.open(productPage)
|
||||
},
|
||||
|
|
@ -51,7 +55,7 @@ struct BoringExtrasMenu : View {
|
|||
}
|
||||
|
||||
var donate: some View {
|
||||
BoringLargeButtons(
|
||||
DynamicIslandLargeButtons(
|
||||
action: {
|
||||
NSWorkspace.shared.open(sponsorPage)
|
||||
},
|
||||
|
|
@ -75,7 +79,7 @@ struct BoringExtrasMenu : View {
|
|||
}
|
||||
|
||||
var hide: some View {
|
||||
BoringLargeButtons(
|
||||
DynamicIslandLargeButtons(
|
||||
action: {
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 0.25) {
|
||||
//vm.openMusic()
|
||||
|
|
@ -87,7 +91,7 @@ struct BoringExtrasMenu : View {
|
|||
}
|
||||
|
||||
var close: some View {
|
||||
BoringLargeButtons(
|
||||
DynamicIslandLargeButtons(
|
||||
action: {
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 0.25) {
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 0.25) {
|
||||
|
|
@ -103,5 +107,5 @@ struct BoringExtrasMenu : View {
|
|||
|
||||
|
||||
#Preview {
|
||||
BoringExtrasMenu(vm: .init())
|
||||
DynamicIslandExtrasMenu(vm: .init())
|
||||
}
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// NotchHomeView.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Hugo Persson on 2024-08-18.
|
||||
// Modified by Harsh Vardhan Goswami & Richard Kunkli
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// NotchShape.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Kai Azim on 2023-08-24.
|
||||
// Original source: https://github.com/MrKai77/DynamicNotchKit
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// OnboardingSettings.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Richard Kunkli on 2024. 09. 26..
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// ProOnboarding.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Richard Kunkli on 2024. 09. 26..
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// SparkleView.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Richard Kunkli on 2024. 09. 26..
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// ProgressIndicator.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Harsh Vardhan Goswami on 11/08/24.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// EditPanelView.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Richard Kunkli on 12/08/2024.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// ListItemPopover.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Richard Kunkli on 15/09/2024.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// SettingsView.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Richard Kunkli on 07/08/2024.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// SoftwareUpdater.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Richard Kunkli on 09/08/2024.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// DragDropView.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Richard Kunkli on 2024. 10. 19..
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// TabButton.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Hugo Persson on 2024-08-24.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// TabSelectionView.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Hugo Persson on 2024-08-25.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// TestView.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Richard Kunkli on 14/08/2024.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// TipStore.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Richard Kunkli on 15/09/2024.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// WebcamView.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Harsh Vardhan Goswami on 19/08/24.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// WhatsNewView.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Richard Kunkli on 09/08/2024.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// generic.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Harsh Vardhan Goswami on 04/08/24.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// ActionBar.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Richard Kunkli on 15/09/2024.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// BundleInfos.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Richard Kunkli on 08/08/2024.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// Button+Bouncing.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Harsh Vardhan Goswami on 19/08/24.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// ConditionalModifier.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Richard Kunkli on 20/08/2024.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// DataTypes+Extensions.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Harsh Vardhan Goswami on 27/08/24.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// KeyboardShortcutsHelper.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Richard Kunkli on 16/08/2024.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// MouseTracker.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Richard Kunkli on 12/08/2024.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// Image2Color.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Richard Kunkli on 07/08/2024.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// PanGesture.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Richard Kunkli on 21/08/2024.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// AppIcons.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Harsh Vardhan Goswami on 16/08/24.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// AppleScriptHelper.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Alexander Greco on 2025-03-29.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// AudioPlayer.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Harsh Vardhan Goswami on 09/08/24.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// CalenderManager.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Harsh Vardhan Goswami on 08/09/24.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@
|
|||
// DynamicIsland
|
||||
//
|
||||
// Created by Harsh Vardhan Goswami on 04/08/24.
|
||||
// BoringExtensionManager.swift
|
||||
// boringNotch
|
||||
// DynamicIslandExtensionManager.swift
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Harsh Vardhan Goswami on 07/09/24.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// MusicManager.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Harsh Vardhan Goswami on 03/08/24.
|
||||
//
|
||||
|
|
@ -41,7 +41,7 @@ class MusicManager: ObservableObject {
|
|||
@Published var lastUpdated: Date = .distantPast
|
||||
@Published var ignoreLastUpdated = true
|
||||
@Published var isPlayerIdle: Bool = true
|
||||
@Published var animations: BoringAnimations = .init()
|
||||
@Published var animations: DynamicIslandAnimations = .init()
|
||||
@Published var avgColor: NSColor = .white
|
||||
@Published var bundleIdentifier: String? = nil
|
||||
@Published var songDuration: TimeInterval = 0
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// NotchSpaceManager.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Alexander Greco on 2024-10-27.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// WebcamManager.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Harsh Vardhan Goswami on 19/08/24.
|
||||
//
|
||||
|
|
@ -33,7 +33,7 @@ class WebcamManager: NSObject, ObservableObject {
|
|||
}
|
||||
}
|
||||
|
||||
private let sessionQueue = DispatchQueue(label: "BoringNotch.WebcamManager.SessionQueue", qos: .userInitiated)
|
||||
private let sessionQueue = DispatchQueue(label: "DynamicIsland.WebcamManager.SessionQueue", qos: .userInitiated)
|
||||
|
||||
private var isCleaningUp: Bool = false
|
||||
|
||||
|
|
@ -166,7 +166,7 @@ class WebcamManager: NSObject, ObservableObject {
|
|||
|
||||
let videoInput = try AVCaptureDeviceInput(device: videoDevice)
|
||||
guard session.canAddInput(videoInput) else {
|
||||
throw NSError(domain: "BoringNotch.WebcamManager", code: -1, userInfo: [NSLocalizedDescriptionKey: "Cannot add video input"])
|
||||
throw NSError(domain: "DynamicIsland.WebcamManager", code: -1, userInfo: [NSLocalizedDescriptionKey: "Cannot add video input"])
|
||||
}
|
||||
|
||||
session.beginConfiguration()
|
||||
|
|
|
|||
|
|
@ -1,24 +1,44 @@
|
|||
import Cocoa
|
||||
|
||||
class BoringStatusMenu: NSMenu {
|
||||
class DynamicIslandStatusMenu: NSMenu {
|
||||
|
||||
var statusItem: NSStatusItem!
|
||||
|
||||
override init() {
|
||||
super.init()
|
||||
|
||||
override init(title: String) {
|
||||
super.init(title: title)
|
||||
setupStatusItem()
|
||||
}
|
||||
|
||||
convenience init() {
|
||||
self.init(title: "DynamicIsland")
|
||||
setupStatusItem()
|
||||
}
|
||||
|
||||
required init(coder: NSCoder) {
|
||||
super.init(coder: coder)
|
||||
setupStatusItem()
|
||||
}
|
||||
|
||||
private func setupStatusItem() {
|
||||
// Initialize the status item
|
||||
statusItem = NSStatusBar.system.statusItem(withLength: NSStatusItem.variableLength)
|
||||
|
||||
if let button = statusItem.button {
|
||||
button.image = NSImage(systemSymbolName: "music.note", accessibilityDescription: "BoringNotch")
|
||||
button.image = NSImage(systemSymbolName: "music.note", accessibilityDescription: "DynamicIsland")
|
||||
button.action = #selector(showMenu)
|
||||
}
|
||||
|
||||
// Set up the menu
|
||||
let menu = NSMenu()
|
||||
menu.addItem(NSMenuItem(title: "Quit", action: #selector(quitAction), keyEquivalent: "q"))
|
||||
statusItem.menu = menu
|
||||
self.addItem(NSMenuItem(title: "Quit", action: #selector(quitAction), keyEquivalent: "q"))
|
||||
statusItem.menu = self
|
||||
}
|
||||
|
||||
@objc func showMenu() {
|
||||
// Handle menu show action
|
||||
}
|
||||
|
||||
@objc func quitAction() {
|
||||
NSApp.terminate(nil)
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// Constants.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Richard Kunkli on 2024. 10. 17..
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// PlaybackState.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Alexander Greco on 2025-03-29.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// FullscreenMediaDetection.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Richard Kunkli on 06/09/2024.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// CGSSpace.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// sizeMatters.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Harsh Vardhan Goswami on 05/08/24.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
//
|
||||
// constants.swift
|
||||
// boringNotch
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Harsh Vardhan Goswami on 04/08/24.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
let productPage = URL(string: "https://github.com/TheBoredTeam/boring.notch")!
|
||||
let productPage = URL(string: "https://github.com/TheBoredTeam/DynamicIsland")!
|
||||
let sponsorPage = URL(string: "https://buymeacoffee.com/jfxh67wvfxq")!
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue