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

---
 Apptag/TagNavigationView.swift |    7 ++++---
 1 files changed, 4 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

--
Gitblit v1.9.3