From dda612c15eed1507413c11a023ff372f3eada4a0 Mon Sep 17 00:00:00 2001 From: lwouis Date: Fri, 26 Dec 2025 16:28:23 +0100 Subject: [PATCH] feat: remove shadow around app icon appearance --- src/logic/Appearance.swift | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/logic/Appearance.swift b/src/logic/Appearance.swift index 5ce1098e..294a192a 100644 --- a/src/logic/Appearance.swift +++ b/src/logic/Appearance.swift @@ -27,7 +27,7 @@ class Appearance { static var highlightBorderWidth = CGFloat(3) // theme: constants - static let enablePanelShadow = true + static var enablePanelShadow = true static var highlightFocusedBackgroundColor: NSColor { get { NSColor.systemAccentColor.withAlphaComponent(0.2) } } static var highlightHoveredBackgroundColor: NSColor { get { NSColor.systemAccentColor.withAlphaComponent(0.1) } } static var highlightFocusedBorderColor: NSColor { get { NSColor.systemAccentColor } } @@ -75,10 +75,12 @@ class Appearance { } else { lightTheme() } - // // for Liquid Glass, we don't want a shadow around the panel - // if #available(macOS 26.0, *), currentStyle == .appIcons && LiquidGlassEffectView.canUsePrivateLiquidGlassLook() { - // enablePanelShadow = false - // } + // for Liquid Glass, we don't want a shadow around the panel + if #available(macOS 26.0, *), currentStyle == .appIcons && LiquidGlassEffectView.canUsePrivateLiquidGlassLook() { + enablePanelShadow = false + } else { + enablePanelShadow = true + } } private static func thumbnailsSize(_ isHorizontalScreen: Bool) {