Skip to content

Commit 67aaa2a

Browse files
committed
CurrencyBarItem: fix text vertical alignment
1 parent 58e4160 commit 67aaa2a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

MTMR/Widgets/CurrencyBarItem.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ class CurrencyBarItem: CustomButtonTouchBarItem {
123123
}
124124

125125
let regularFont = attributedTitle.attribute(.font, at: 0, effectiveRange: nil) as? NSFont ?? NSFont.systemFont(ofSize: 15)
126-
let newTitle = NSMutableAttributedString(string: title as String, attributes: [.foregroundColor: color, .font: regularFont])
126+
let newTitle = NSMutableAttributedString(string: title as String, attributes: [.foregroundColor: color, .font: regularFont, .baselineOffset: 1])
127127
newTitle.setAlignment(.center, range: NSRange(location: 0, length: title.count))
128128
attributedTitle = newTitle
129129
}

0 commit comments

Comments
 (0)