From 5194065f5cebfa847061c43cf2c568a1c91721ce Mon Sep 17 00:00:00 2001
From: Ariver <shanghai3168@gmail.com>
Date: Fri, 05 Jun 2026 01:51:28 +0800
Subject: [PATCH] Prepare 7.8.14 final App Store build

---
 Apptag/PreferencesView.swift |   25 ++++++++++---------------
 1 files changed, 10 insertions(+), 15 deletions(-)

diff --git a/Apptag/PreferencesView.swift b/Apptag/PreferencesView.swift
index 37b2276..bc0bd82 100644
--- a/Apptag/PreferencesView.swift
+++ b/Apptag/PreferencesView.swift
@@ -4,8 +4,8 @@
 // MARK: - Preferences View
 
 struct PreferencesView: View {
-    private let settingsWindowWidth: CGFloat = 880
-    private let settingsContentWidth: CGFloat = 820
+    private let settingsWindowWidth: CGFloat = 1000
+    private let settingsContentWidth: CGFloat = 940
     private let generalContentWidth: CGFloat = 720
     private let generalLabelWidth: CGFloat = 190
     private let generalControlWidth: CGFloat = 500
@@ -271,16 +271,12 @@
         isApplyingSystemScheme = true
 
         DispatchQueue.global(qos: .userInitiated).async {
-            let scannedApps = AppIndexer.scan(useCache: false)
-            let result = SmartStartService.applySystemInitialScheme(apps: scannedApps)
-            let store = result.store
-            let apps = TagEditor.annotate(apps: scannedApps, store: store)
-            let colors = store.tags.mapValues { $0.color }
+            let result = AppLibraryController.applySystemInitialScheme()
 
             DispatchQueue.main.async {
                 isApplyingSystemScheme = false
-                allApps = apps
-                tagColors = colors
+                allApps = result.snapshot.apps
+                tagColors = result.snapshot.tagColors
                 refreshDataState()
                 notifyDataChanged()
 
@@ -376,8 +372,9 @@
     }
     private var languageColumns: [GridItem] {
         [
-            GridItem(.flexible(minimum: 220), spacing: 18, alignment: .top),
-            GridItem(.flexible(minimum: 220), spacing: 18, alignment: .top),
+            GridItem(.flexible(minimum: 180), spacing: 14, alignment: .top),
+            GridItem(.flexible(minimum: 180), spacing: 14, alignment: .top),
+            GridItem(.flexible(minimum: 180), spacing: 14, alignment: .top),
         ]
     }
     private var displayModeColumns: [GridItem] {
@@ -558,9 +555,7 @@
                         }
                         .padding(.vertical, 4)
                     }
-                    .frame(maxHeight: 250)
-
-                    Spacer(minLength: 0)
+                    .frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .top)
                 }
                 .frame(maxWidth: settingsContentWidth, alignment: .leading)
                 .tabItem { Label(tr("settings.language"), systemImage: "globe") }
@@ -952,7 +947,7 @@
                 .transition(.opacity.combined(with: .move(edge: .bottom)))
             }
         }
-        .frame(width: settingsWindowWidth, height: 460)
+        .frame(width: settingsWindowWidth, height: 480)
         .onAppear {
             syncSelectedLanguage()
             showPendingHotkeyWarningIfNeeded()

--
Gitblit v1.9.3