From 3928a8de4d50e2cd7519e84aa93f76d25add06d5 Mon Sep 17 00:00:00 2001
From: Ariver <ar@MacBook-Air.local>
Date: Wed, 06 May 2026 18:05:10 +0800
Subject: [PATCH] checkpoint: v3.0.11 — 容器标题优先级优化,约15字符可见
---
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