mirror of
https://github.com/Toxblh/MTMR.git
synced 2026-01-11 17:38:38 +00:00
if button have only image, change position to .imageonly
This commit is contained in:
parent
f65e72faed
commit
9c970aff63
@ -215,6 +215,11 @@ class TouchBarController: NSObject, NSTouchBarDelegate {
|
||||
let button = item.button!
|
||||
button.imageScaling = .scaleProportionallyDown
|
||||
button.imagePosition = .imageLeading
|
||||
|
||||
if (button.title == "") {
|
||||
button.imagePosition = .imageOnly
|
||||
}
|
||||
|
||||
button.imageHugsTitle = true
|
||||
button.cell?.image = source.image
|
||||
button.bezelColor = .clear
|
||||
|
||||
Loading…
Reference in New Issue
Block a user