mirror of
https://github.com/Toxblh/MTMR.git
synced 2026-01-11 17:38:38 +00:00
lead position for image in image+title button
This commit is contained in:
parent
c76027ca9d
commit
b95f5af95f
@ -207,6 +207,7 @@ class TouchBarController: NSObject, NSTouchBarDelegate {
|
|||||||
if case .image(let source)? = item.additionalParameters[.image], let item = barItem as? CustomButtonTouchBarItem {
|
if case .image(let source)? = item.additionalParameters[.image], let item = barItem as? CustomButtonTouchBarItem {
|
||||||
let button = item.button!
|
let button = item.button!
|
||||||
button.imageScaling = .scaleProportionallyDown
|
button.imageScaling = .scaleProportionallyDown
|
||||||
|
button.imagePosition = .imageLeading
|
||||||
button.cell?.image = source.image
|
button.cell?.image = source.image
|
||||||
button.bezelColor = .clear
|
button.bezelColor = .clear
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user