Fixing color to properly support dimming #249

This commit is contained in:
Alex Mazanov 2021-12-18 13:08:22 -05:00
parent 9085a550fc
commit 78c139dcd8
No known key found for this signature in database
GPG Key ID: FD35C3C7C1D34AB4

View File

@ -505,6 +505,7 @@ extension MenubarItem {
barItem.button?.image = image
barItem.button?.imagePosition = .imageLeft
}
let attrTitle = 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")
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) ??
NSFont.menuBarFont(ofSize: fontSize)
let offset = font.menuBarOffset