From 091641ffff6c0f8252fbe44ea276a86c604c7663 Mon Sep 17 00:00:00 2001
From: Ariver <shanghai3168@gmail.com>
Date: Thu, 28 May 2026 23:16:56 +0800
Subject: [PATCH] Strengthen tag drag shadow
---
TODO.md | 6 ++++++
Apptag/TagNavigationView.swift | 7 ++++---
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/Apptag/TagNavigationView.swift b/Apptag/TagNavigationView.swift
index 9f9941f..62cd16b 100644
--- a/Apptag/TagNavigationView.swift
+++ b/Apptag/TagNavigationView.swift
@@ -425,10 +425,11 @@
let background = TagColor.nsColor(for: item.colorIndex)
layer?.backgroundColor = background.cgColor
layer?.cornerRadius = orientation == .horizontal ? 7 : 6
- layer?.shadowColor = NSColor.black.withAlphaComponent(0.20).cgColor
+ layer?.shadowColor = NSColor.black.withAlphaComponent(isDragging ? 0.38 : 0.20).cgColor
layer?.shadowOpacity = 1
- layer?.shadowRadius = isDragging ? 8 : 3
- layer?.shadowOffset = NSSize(width: 0, height: isDragging ? -4 : -1)
+ layer?.shadowRadius = isDragging ? 14 : 3
+ layer?.shadowOffset = NSSize(width: 0, height: isDragging ? -7 : -1)
+ layer?.zPosition = isDragging ? 20 : 0
alphaValue = dragModeActive ? (isDragging ? 1.0 : 0.62) : 1.0
let textColor: NSColor = (item.colorIndex == 0 || item.colorIndex == 5) ? .labelColor : .white
diff --git a/TODO.md b/TODO.md
index 0752b4b..41e76f8 100644
--- a/TODO.md
+++ b/TODO.md
@@ -42,6 +42,12 @@
## Done
+- [2026-05-28] 第二批 AppKit 化第 4.1 项:标签拖拽态浮起阴影。
+ - 提交: 本次提交
+ - 结果: 长按标签进入可移动状态后,正在拖拽的标签使用更强阴影和更高层级,视觉上更明确地浮在其他标签上方。
+ - 范围: 只改 AppKit 标签按钮拖拽态视觉;未改排序命中、持久化、窗口层级。
+ - 验证: 构建 `7.6.0 (20260528.2312)`、签名、静态 QA、顶部/左/右三种标签栏拖拽排序、视觉屏幕复核、窗口 8 逻辑 QA 全部通过;QA 后已恢复用户标签顺序和语言自动设置。
+
- [2026-05-28] 第二批 AppKit 化第 4 项:标签栏 AppKit 化第三阶段,拖拽排序。
- 提交: 本次提交
- 结果: AppKit 标签栏已支持长按拖拽排序;排序命中改为 AppKit button frame hit-testing;持久化继续走 `TagEditor.reorderTags`。
--
Gitblit v1.9.3