From 01bab5422712299b49f656e6b4c42a3bf314f519 Mon Sep 17 00:00:00 2001
From: Ariver <shanghai3168@gmail.com>
Date: Thu, 02 Jul 2026 11:02:42 +0800
Subject: [PATCH] Release 8.3.5 free tag order persistence

---
 src/Apptag/AppDefaults.swift |   19 +++++++++++++++++--
 1 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/src/Apptag/AppDefaults.swift b/src/Apptag/AppDefaults.swift
index db0fb3b..6e62000 100644
--- a/src/Apptag/AppDefaults.swift
+++ b/src/Apptag/AppDefaults.swift
@@ -5,17 +5,19 @@
     static let currentSchemaVersion = 3
 
     static let tagFontSize: Double = 22
-    static let iconSize: Double = 64
+    static let iconSize: Double = 56
     static let tagPosition = "right"
-    static let displayMode = "coloredGridContainer"
+    static let displayMode = "gridContainer"
     static let hideAppNames = true
     static let showDockIcon = true
     static let launchAtLogin = true
     static let showUncommonAppBubbles = false
     static let hideUsageTips = false
+    static let appGridThemeID = AppGridTheme.defaultLight.rawValue
     static let useAppKitTagNavigation = true
 
     static func register() {
+        migrateAppGridThemePreferenceIfNeeded()
         UserDefaults.standard.register(defaults: [
             "tagFontSize": tagFontSize,
             "iconSize": iconSize,
@@ -26,9 +28,13 @@
             "launchAtLogin": launchAtLogin,
             "showUncommonAppBubbles": showUncommonAppBubbles,
             "hideUsageTips": hideUsageTips,
+            AppGridTheme.storageKey: appGridThemeID,
+            AppGridTheme.deepBlueTuningStorageKey: AppGridTheme.deepBlue.defaultColorTuning,
+            AppGridTheme.colorfulTuningStorageKey: AppGridTheme.colorful.defaultColorTuning,
             "useAppKitTagNavigation": useAppKitTagNavigation,
             "skipTagRemovalDropConfirm": false,
             "skipUncategorizedDropConfirm": false,
+            "skipUsageTipsCloseReminder": false,
             LauncherHotkeyRegistrationStore.mainStateKey: LauncherHotkeyRegistrationState.active.rawValue,
             LauncherHotkeyRegistrationStore.quickSearchStateKey: LauncherHotkeyRegistrationState.active.rawValue
         ])
@@ -40,6 +46,15 @@
         return UserDefaults.standard.persistentDomain(forName: domain)?[key] != nil
     }
 
+    private static func migrateAppGridThemePreferenceIfNeeded() {
+        let defaults = UserDefaults.standard
+        guard !hasStoredValue(for: AppGridTheme.storageKey),
+              hasStoredValue(for: "useDarkAppGrid"),
+              defaults.bool(forKey: "useDarkAppGrid")
+        else { return }
+        defaults.set(AppGridTheme.deepBlue.rawValue, forKey: AppGridTheme.storageKey)
+    }
+
     private static func removeShortcutCustomizationDefaults() {
         let defaults = UserDefaults.standard
         [

--
Gitblit v1.9.3