fix: take into account accent-color immediatly (closes #4984)

This commit is contained in:
lwouis committed 2025-11-12 19:07:37 +01:00
1 parent e5e8521ae3
commit 011fdba7d3
1 file changed
+4 -5
+4 -5
View File
@@ -28,11 +28,10 @@ class Appearance {
// theme: constants
static let enablePanelShadow = true
static let highlightFocusedBackgroundColor = NSColor.systemAccentColor.withAlphaComponent(0.2)
static let highlightHoveredBackgroundColor = NSColor.systemAccentColor.withAlphaComponent(0.1)
static let highlightFocusedBorderColor = NSColor.systemAccentColor
static let highlightHoveredBorderColor = NSColor.systemAccentColor.withAlphaComponent(0.7)
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 } }
static var highlightHoveredBorderColor: NSColor { get { NSColor.systemAccentColor.withAlphaComponent(0.7) } }
// derived
static var font: NSFont {