From c9d5a7212ba1fff7e88a3d2165adb846435fe72b Mon Sep 17 00:00:00 2001
From: Ariver <ar@MacBook-Air.local>
Date: Wed, 06 May 2026 14:28:26 +0800
Subject: [PATCH] checkpoint: v3.0.1 — 容器显示样式,Flat/Container 切换,Settings General 首行 Radio 选择
---
Apptag/ApptagApp.swift | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/Apptag/ApptagApp.swift b/Apptag/ApptagApp.swift
index 8edd2e1..d5c125a 100644
--- a/Apptag/ApptagApp.swift
+++ b/Apptag/ApptagApp.swift
@@ -319,6 +319,7 @@
@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"
@State private var allApps: [AppInfo] = []
@State private var tagColors: [String: Int] = [:]
@@ -385,6 +386,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")
--
Gitblit v1.9.3