mirror of
https://github.com/swiftbar/SwiftBar.git
synced 2024-09-11 16:05:33 +03:00
SFSymbol image should honor custom font size #230
This commit is contained in:
parent
88f43a1a72
commit
aa182ad1c1
@ -13,7 +13,8 @@ extension String {
|
||||
out.append(NSAttributedString(string: word))
|
||||
return
|
||||
}
|
||||
if let image = NSImage(systemSymbolName: String(word.dropFirst().dropLast()), accessibilityDescription: nil) {
|
||||
let imageConfig = NSImage.SymbolConfiguration(pointSize: font.pointSize, weight: .regular)
|
||||
if let image = NSImage(systemSymbolName: String(word.dropFirst().dropLast()), accessibilityDescription: nil)?.withSymbolConfiguration(imageConfig) {
|
||||
let tintColor = colors.first
|
||||
if colors.count > 1 {
|
||||
colors = Array(colors.dropFirst())
|
||||
|
Loading…
Reference in New Issue
Block a user