mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-11 02:51:11 +00:00
Update Mac background colors
This commit is contained in:
1 parent
ff39ba4c7d
commit
13f3073077
4 files changed
+6133
-6131
No files matched your search
@@ -52,7 +52,7 @@
|
||||
"location" : "https://github.com/leonboe1/LUI.git",
|
||||
"state" : {
|
||||
"branch" : "main",
|
||||
"revision" : "c389f3015fbfdf35e6e351b04c28a6d6840153ca"
|
||||
"revision" : "732e50ce4f7666f911f522eb71f1f67c2c5ce944"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@@ -37,7 +37,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, UNUserNotificationCenterDele
|
||||
func applicationDidFinishLaunching(_: Notification) {
|
||||
// app did not lauch before
|
||||
if !Settings.sharedInstance.appLaunchedBefore {
|
||||
log("[AppDelegate] Opening Welcome Screen")
|
||||
runAfter(seconds: 0.1) { log("[AppDelegate] Opening Welcome Screen") }
|
||||
|
||||
DispatchQueue.main.async {
|
||||
// open welcome screen in next cycle (await LUIInit)
|
||||
@@ -50,11 +50,11 @@ class AppDelegate: NSObject, NSApplicationDelegate, UNUserNotificationCenterDele
|
||||
} else {
|
||||
// app launched before
|
||||
#if GITHUB
|
||||
log("[AppDelegate] Downloaded from GitHub.")
|
||||
runAfter(seconds: 0.1) { log("[AppDelegate] Downloaded from GitHub.") }
|
||||
#else
|
||||
// user installed the app before the IAP was implemented, grant the plus version
|
||||
if !Settings.sharedInstance.isEligibleForIap {
|
||||
log("[AppDelegate] Granting QuickDrop+ for old user")
|
||||
runAfter(seconds: 0.1) { log("[AppDelegate] Granting QuickDrop+ for old user") }
|
||||
UserDefaults.standard.set(true, forKey: Settings.UserDefaultsKeys.plusVersionLegacy.rawValue)
|
||||
}
|
||||
#endif
|
||||
|
||||
+6128
-6127
File diff suppressed because it is too large.
Load diff
@@ -148,6 +148,7 @@ struct SettingsView: View {
|
||||
window.center()
|
||||
window.isReleasedWhenClosed = false
|
||||
window.title = "TrustedDevices".localized()
|
||||
window.backgroundColor = NSColor(Color.defaultMacBackgroundColor)
|
||||
window.contentView = NSHostingView(rootView: TrustedDevicesView())
|
||||
|
||||
NSApp.activate(ignoringOtherApps: true)
|
||||
|
||||
Reference in new issue
Block a user