fix: take into account accent-color immediatly (closes #4984)
This commit is contained in:
1 parent
e5e8521ae3
commit
011fdba7d3
1 file changed
+4
-5
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user