We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9dd8b9 commit 4e64c49Copy full SHA for 4e64c49
src/_macosx.m
@@ -881,6 +881,9 @@ -(void)save_figure:(id)sender { gil_call_method(toolbar, "save_figure"); }
881
NSImage* image = [[NSImage alloc] initWithContentsOfFile: filename];
882
buttons[i] = [[NSButton alloc] initWithFrame: rect];
883
[image setSize: size];
884
+ // Specify that it is a template image so the content tint
885
+ // color gets updated with the system theme (dark/light)
886
+ [image setTemplate: YES];
887
[buttons[i] setBezelStyle: NSBezelStyleShadowlessSquare];
888
[buttons[i] setButtonType: buttontypes[i]];
889
[buttons[i] setImage: image];
0 commit comments