From 65fc2a130aa2eb38173a3dad4eee34e6600baa11 Mon Sep 17 00:00:00 2001
From: Ariver <shanghai3168@gmail.com>
Date: Thu, 25 Jun 2026 19:52:09 +0800
Subject: [PATCH] Fix localized default category labels

---
 src/Apptag/AppDefaults.swift |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/src/Apptag/AppDefaults.swift b/src/Apptag/AppDefaults.swift
index 0484a60..47f9c8a 100644
--- a/src/Apptag/AppDefaults.swift
+++ b/src/Apptag/AppDefaults.swift
@@ -12,9 +12,12 @@
     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,
@@ -24,9 +27,12 @@
             "showDockIcon": showDockIcon,
             "launchAtLogin": launchAtLogin,
             "showUncommonAppBubbles": showUncommonAppBubbles,
+            "hideUsageTips": hideUsageTips,
+            AppGridTheme.storageKey: appGridThemeID,
             "useAppKitTagNavigation": useAppKitTagNavigation,
             "skipTagRemovalDropConfirm": false,
             "skipUncategorizedDropConfirm": false,
+            "skipUsageTipsCloseReminder": false,
             LauncherHotkeyRegistrationStore.mainStateKey: LauncherHotkeyRegistrationState.active.rawValue,
             LauncherHotkeyRegistrationStore.quickSearchStateKey: LauncherHotkeyRegistrationState.active.rawValue
         ])
@@ -38,6 +44,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