From 667a89382078d7b38e6dc21c5627839fbde7f92c Mon Sep 17 00:00:00 2001
From: Ariver <ar@MacBook-Air.local>
Date: Mon, 11 May 2026 11:48:46 +0800
Subject: [PATCH] Archive TagLauncher 5.1.12

---
 Apptag/ApptagApp.swift |   24 +++++++++++++-----------
 1 files changed, 13 insertions(+), 11 deletions(-)

diff --git a/Apptag/ApptagApp.swift b/Apptag/ApptagApp.swift
index ed8885a..b572f20 100644
--- a/Apptag/ApptagApp.swift
+++ b/Apptag/ApptagApp.swift
@@ -5,7 +5,7 @@
 // MARK: - Application Entry Point
 
 @main
-struct ApptagApp: App {
+struct TagLauncherApp: App {
     @NSApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
 
     var body: some Scene {
@@ -45,7 +45,7 @@
         setupLaunchAtLogin()
     }
 
-    /// Dock icon click → show overlay (same as menubar "Show Apptag")
+    /// Dock icon click → show overlay (same as menubar "Show TagLauncher")
     func applicationShouldHandleReopen(_ sender: NSApplication, hasVisibleWindows flag: Bool) -> Bool {
         showOverlay()
         return false  // Suppress default "unhide all windows" behavior
@@ -137,9 +137,9 @@
         if let button = statusItem.button {
             button.image = NSImage(
                 systemSymbolName: "tag.fill",
-                accessibilityDescription: "Apptag"
+                accessibilityDescription: "TagLauncher"
             )
-            button.toolTip = "Apptag — Tag-based app launcher"
+            button.toolTip = "TagLauncher — Tag-based app launcher"
             button.action = #selector(toggleOverlay)
             button.target = self
         }
@@ -297,7 +297,7 @@
         hotkeyRef = ref
 
         if status != noErr {
-            print("[Apptag] Hotkey registration failed: \(status). Falling back to menu bar only.")
+            print("[TagLauncher] Hotkey registration failed: \(status). Falling back to menu bar only.")
             return
         }
 
@@ -385,7 +385,7 @@
     /// Track whether the overlay is in edit mode to suppress auto-dismiss.
     private func observeEditMode() {
         NotificationCenter.default.addObserver(
-            forName: .apptagEditModeChanged,
+            forName: .tagLauncherEditModeChanged,
             object: nil,
             queue: .main
         ) { [weak self] notification in
@@ -515,14 +515,14 @@
     private func exportTags() {
         let panel = NSSavePanel()
         panel.title = tr("settings.export")
-        panel.nameFieldStringValue = "Apptag-tags.json"
+        panel.nameFieldStringValue = "TagLauncher-tags.json"
         panel.allowedContentTypes = [.json]
         panel.begin { response in
             guard response == .OK, let url = panel.url else { return }
             do {
                 try TagDatabase.exportTo(url)
             } catch {
-                fputs("[Apptag] Export failed: \(error)\n", stderr)
+                fputs("[TagLauncher] Export failed: \(error)\n", stderr)
             }
         }
     }
@@ -538,7 +538,7 @@
                 _ = try TagDatabase.importFrom(url)
                 scanApps()
             } catch {
-                fputs("[Apptag] Import failed: \(error)\n", stderr)
+                fputs("[TagLauncher] Import failed: \(error)\n", stderr)
                 // Show alert on failure
                 let alert = NSAlert()
                 alert.messageText = tr("settings.importFailed")
@@ -590,9 +590,11 @@
                                 Text(tr("settings.flat")).tag("flat")
                                 Text(tr("settings.container")).tag("container")
                                 Text(tr("settings.coloredContainer")).tag("coloredContainer")
+                                Text(tr("settings.gridContainer")).tag("gridContainer")
+                                Text(tr("settings.coloredGridContainer")).tag("coloredGridContainer")
                             }
                             .pickerStyle(.segmented)
-                            .frame(width: 360, alignment: .leading)
+                            .frame(width: 520, alignment: .leading)
                             Text(tr("settings.flatDesc"))
                                 .font(.caption).foregroundStyle(.secondary)
                                 .fixedSize(horizontal: false, vertical: true)
@@ -692,7 +694,7 @@
                                 .frame(width: 128, height: 128)
                         }
                         VStack(alignment: .leading, spacing: 4) {
-                            Text("Apptag")
+                            Text("TagLauncher")
                                 .font(.title2)
                                 .fontWeight(.semibold)
                             Text(tr("app.description"))

--
Gitblit v1.9.3