I’ve made some PDFs, loaded those into Xojo and then changed the toolbar:
dim nt as NSToolbarMBS = self.Window.NSToolbarMBS
dim items() as NSToolbarItemMBS = nt.items
for each item as NSToolbarItemMBS in items
if item.label = ToolbarLocalization.kPrint then
dim theImage as new NSImageMBS(printer_outline)
theImage.isTemplate = true
theImage.setSize(24, 24)
item.image = theImage
ElseIf item.label = ToolbarLocalization.kSetup then
dim theImage as new NSImageMBS(gear_outline)
theImage.isTemplate = true
item.image = theImage
end if
next
I added the SetSize for testing. But this didn’t change anything. Or is this like for the squircle where I need to make large margins?
Thats the new Big Sur option, which is set onto the window. If you take a look at the NSToolbar classes, there are options for customizing the toolbar.
I have no idea why they decided to place the new toolbar option on the window rather than the toolbar, with all the others. It creates confusion.