From 8140d33412239eed7a6fbd8ad8ccfe7ab87ba9ce Mon Sep 17 00:00:00 2001
From: Ariver <ar@MacBook-Air.local>
Date: Wed, 06 May 2026 16:53:52 +0800
Subject: [PATCH] checkpoint: v3.0.6 — 新增标签行显示在列表最上面,确认后留在顶部(tagOrder 驱动排序)

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

diff --git a/Apptag/ApptagApp.swift b/Apptag/ApptagApp.swift
index 8edd2e1..b93e706 100644
--- a/Apptag/ApptagApp.swift
+++ b/Apptag/ApptagApp.swift
@@ -319,6 +319,8 @@
     @AppStorage("iconSize") private var iconSize: Double = 56
     @AppStorage("tagPosition") private var tagPosition = "left"
     @AppStorage("defaultGroupName") private var defaultGroupName = "Other"
+    @AppStorage("displayMode") private var displayMode = "flat"
+    @AppStorage("hideAppNames") private var hideAppNames = false
 
     @State private var allApps: [AppInfo] = []
     @State private var tagColors: [String: Int] = [:]
@@ -385,6 +387,20 @@
             // Tab 1: General
             Form {
                 Section {
+                    LabeledContent("App list style:") {
+                        Picker("", selection: $displayMode) {
+                            Text("Flat").tag("flat")
+                            Text("Container").tag("container")
+                        }
+                        .pickerStyle(.segmented)
+                        .frame(width: 210)
+                    }
+                    Text("\"Flat\" shows apps directly. \"Container\" wraps each tag group in a rounded box.")
+                        .font(.caption)
+                        .foregroundStyle(.secondary)
+                }
+
+                Section {
                     LabeledContent("Tag position:") {
                         Picker("", selection: $tagPosition) {
                             Text("Left").tag("left")
@@ -412,8 +428,6 @@
                     Text("Adjust the size of group-name labels in the overlay.")
                         .font(.caption)
                         .foregroundStyle(.secondary)
-                } header: {
-                    Text("Appearance")
                 }
 
                 Section {
@@ -429,8 +443,10 @@
                     Text("Icon display size. Grid columns adjust automatically.")
                         .font(.caption)
                         .foregroundStyle(.secondary)
-                } header: {
-                    Text("Layout")
+                }
+
+                Section {
+                    Toggle("Hide app names", isOn: $hideAppNames)
                 }
             }
             .tabItem { Label("General", systemImage: "gearshape") }

--
Gitblit v1.9.3