mirror of
https://github.com/swiftbar/SwiftBar.git
synced 2024-09-11 16:05:33 +03:00
Fixing color to properly support dimming #249
This commit is contained in:
parent
9085a550fc
commit
78c139dcd8
@ -505,6 +505,7 @@ extension MenubarItem {
|
|||||||
barItem.button?.image = image
|
barItem.button?.image = image
|
||||||
barItem.button?.imagePosition = .imageLeft
|
barItem.button?.imagePosition = .imageLeft
|
||||||
}
|
}
|
||||||
|
let attrTitle = atributedTitle(with: params, pad: true).title
|
||||||
barItem.button?.attributedTitle = atributedTitle(with: params, pad: true).title
|
barItem.button?.attributedTitle = atributedTitle(with: params, pad: true).title
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -530,7 +531,7 @@ extension MenubarItem {
|
|||||||
title = title.replacingOccurrences(of: "\\n", with: "\n")
|
title = title.replacingOccurrences(of: "\\n", with: "\n")
|
||||||
|
|
||||||
let fontSize = params.size ?? 0
|
let fontSize = params.size ?? 0
|
||||||
let color = params.color ?? NSColor.labelColor
|
let color = params.color ?? NSColor.controlTextColor
|
||||||
let font = NSFont(name: params.font ?? "", size: fontSize) ??
|
let font = NSFont(name: params.font ?? "", size: fontSize) ??
|
||||||
NSFont.menuBarFont(ofSize: fontSize)
|
NSFont.menuBarFont(ofSize: fontSize)
|
||||||
let offset = font.menuBarOffset
|
let offset = font.menuBarOffset
|
||||||
|
Loading…
Reference in New Issue
Block a user