mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
Remove License BS
This commit is contained in:
parent
01c0a5a775
commit
eb5d0d42d9
3 changed files with 6 additions and 91 deletions
|
|
@ -34,11 +34,6 @@ struct DynamicNotchApp: App {
|
||||||
Button("Settings") {
|
Button("Settings") {
|
||||||
SettingsWindowController.shared.showWindow()
|
SettingsWindowController.shared.showWindow()
|
||||||
}
|
}
|
||||||
if false {
|
|
||||||
Button("Activate License") {
|
|
||||||
openWindow(id: "activation")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
CheckForUpdatesView(updater: updaterController.updater)
|
CheckForUpdatesView(updater: updaterController.updater)
|
||||||
Divider()
|
Divider()
|
||||||
Button("Restart Atoll") {
|
Button("Restart Atoll") {
|
||||||
|
|
@ -62,12 +57,6 @@ struct DynamicNotchApp: App {
|
||||||
}
|
}
|
||||||
.keyboardShortcut(KeyEquivalent("Q"), modifiers: .command)
|
.keyboardShortcut(KeyEquivalent("Q"), modifiers: .command)
|
||||||
}
|
}
|
||||||
|
|
||||||
Window("Activation", id: "activation") {
|
|
||||||
ActivationWindow()
|
|
||||||
}
|
|
||||||
.windowStyle(.hiddenTitleBar)
|
|
||||||
.windowResizability(.contentSize)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var commands: some Commands {
|
var commands: some Commands {
|
||||||
|
|
|
||||||
|
|
@ -1840,6 +1840,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Activate" : {
|
"Activate" : {
|
||||||
|
"extractionState" : "stale",
|
||||||
"localizations" : {
|
"localizations" : {
|
||||||
"fr" : {
|
"fr" : {
|
||||||
"stringUnit" : {
|
"stringUnit" : {
|
||||||
|
|
@ -1850,6 +1851,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Activate your license" : {
|
"Activate your license" : {
|
||||||
|
"extractionState" : "stale",
|
||||||
"localizations" : {
|
"localizations" : {
|
||||||
"fr" : {
|
"fr" : {
|
||||||
"stringUnit" : {
|
"stringUnit" : {
|
||||||
|
|
@ -1860,6 +1862,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Activation" : {
|
"Activation" : {
|
||||||
|
"extractionState" : "stale",
|
||||||
"localizations" : {
|
"localizations" : {
|
||||||
"fr" : {
|
"fr" : {
|
||||||
"stringUnit" : {
|
"stringUnit" : {
|
||||||
|
|
@ -7757,6 +7760,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Email address" : {
|
"Email address" : {
|
||||||
|
"extractionState" : "stale",
|
||||||
"localizations" : {
|
"localizations" : {
|
||||||
"fr" : {
|
"fr" : {
|
||||||
"stringUnit" : {
|
"stringUnit" : {
|
||||||
|
|
@ -10962,6 +10966,7 @@
|
||||||
|
|
||||||
},
|
},
|
||||||
"License key" : {
|
"License key" : {
|
||||||
|
"extractionState" : "stale",
|
||||||
"localizations" : {
|
"localizations" : {
|
||||||
"fr" : {
|
"fr" : {
|
||||||
"stringUnit" : {
|
"stringUnit" : {
|
||||||
|
|
@ -19274,6 +19279,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Transform your notch truly yours" : {
|
"Transform your notch truly yours" : {
|
||||||
|
"extractionState" : "stale",
|
||||||
"localizations" : {
|
"localizations" : {
|
||||||
"fr" : {
|
"fr" : {
|
||||||
"stringUnit" : {
|
"stringUnit" : {
|
||||||
|
|
|
||||||
|
|
@ -1,80 +0,0 @@
|
||||||
//
|
|
||||||
// OnboardingSettings.swift
|
|
||||||
// DynamicIsland
|
|
||||||
//
|
|
||||||
// Created by Richard Kunkli on 2024. 09. 26..
|
|
||||||
//
|
|
||||||
|
|
||||||
import SwiftUI
|
|
||||||
|
|
||||||
struct ActivationWindow: View {
|
|
||||||
@State private var email: String = ""
|
|
||||||
@State private var key: String = ""
|
|
||||||
var body: some View {
|
|
||||||
VStack {
|
|
||||||
Image("logo")
|
|
||||||
.resizable()
|
|
||||||
.aspectRatio(contentMode: .fit)
|
|
||||||
.frame(height: 80)
|
|
||||||
.padding(.top, 30)
|
|
||||||
.padding(.bottom, 10)
|
|
||||||
Text("Activate your license")
|
|
||||||
.font(.largeTitle.bold())
|
|
||||||
.fontDesign(.rounded)
|
|
||||||
Text("Transform your notch truly yours")
|
|
||||||
.foregroundStyle(.secondary)
|
|
||||||
.font(.title2)
|
|
||||||
.padding(.bottom, 20)
|
|
||||||
Group {
|
|
||||||
TextField("Email address", text: $email)
|
|
||||||
.padding(.horizontal, 8)
|
|
||||||
.padding(.vertical, 4)
|
|
||||||
.background(.white.opacity(0.1), in: RoundedRectangle(cornerRadius: 8))
|
|
||||||
TextField("License key", text: $key)
|
|
||||||
.padding(.horizontal, 8)
|
|
||||||
.padding(.vertical, 4)
|
|
||||||
.background(.white.opacity(0.1), in: RoundedRectangle(cornerRadius: 8))
|
|
||||||
}
|
|
||||||
.textFieldStyle(PlainTextFieldStyle())
|
|
||||||
.scrollContentBackground(.hidden)
|
|
||||||
.toggleStyle(.switch)
|
|
||||||
Spacer()
|
|
||||||
VStack(alignment: .center, spacing: 14) {
|
|
||||||
HStack(alignment: .center) {
|
|
||||||
HStack {
|
|
||||||
Button {} label: {
|
|
||||||
Text("Cancel")
|
|
||||||
.padding(.horizontal, 18)
|
|
||||||
}
|
|
||||||
.buttonStyle(AccessoryBarButtonStyle())
|
|
||||||
}
|
|
||||||
.frame(maxWidth: .infinity, alignment: .leading)
|
|
||||||
Image("dynamicisland")
|
|
||||||
.resizable()
|
|
||||||
.aspectRatio(contentMode: .fit)
|
|
||||||
.frame(height: 18)
|
|
||||||
.offset(y: 4)
|
|
||||||
.blendMode(.overlay)
|
|
||||||
HStack {
|
|
||||||
Button {} label: {
|
|
||||||
Text("Activate")
|
|
||||||
.padding(.horizontal, 18)
|
|
||||||
}
|
|
||||||
.buttonStyle(BorderedProminentButtonStyle())
|
|
||||||
}
|
|
||||||
.frame(maxWidth: .infinity, alignment: .trailing)
|
|
||||||
|
|
||||||
}
|
|
||||||
.controlSize(.extraLarge)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.padding()
|
|
||||||
.frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .top)
|
|
||||||
.ignoresSafeArea()
|
|
||||||
.background {
|
|
||||||
VisualEffectView(material: .hudWindow, blendingMode: .behindWindow)
|
|
||||||
.ignoresSafeArea()
|
|
||||||
}
|
|
||||||
.frame(width: 350, height: 350)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue