mirror of
https://github.com/Toxblh/MTMR.git
synced 2026-01-11 09:28:38 +00:00
* staticButton image size
This commit is contained in:
parent
8031108fc9
commit
cf5d8bf546
@ -206,9 +206,8 @@ class TouchBarController: NSObject, NSTouchBarDelegate {
|
||||
}
|
||||
if case .image(let source)? = item.additionalParameters[.image], let item = barItem as? CustomButtonTouchBarItem {
|
||||
let button = item.button!
|
||||
button.image = source.image
|
||||
button.imagePosition = .imageLeading
|
||||
button.imageHugsTitle = true
|
||||
button.cell?.image = source.image
|
||||
button.cell?.image?.size = NSSize(width: 36, height: 36)
|
||||
button.bezelColor = .clear
|
||||
}
|
||||
return barItem
|
||||
|
||||
Loading…
Reference in New Issue
Block a user