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.
2 parents 808dbe4 + 4e64c49 commit fbfcaccCopy full SHA for fbfcacc
src/_macosx.m
@@ -873,6 +873,9 @@ -(void)save_figure:(id)sender { gil_call_method(toolbar, "save_figure"); }
873
NSImage* image = [[NSImage alloc] initWithContentsOfFile: filename];
874
buttons[i] = [[NSButton alloc] initWithFrame: rect];
875
[image setSize: size];
876
+ // Specify that it is a template image so the content tint
877
+ // color gets updated with the system theme (dark/light)
878
+ [image setTemplate: YES];
879
[buttons[i] setBezelStyle: NSBezelStyleShadowlessSquare];
880
[buttons[i] setButtonType: buttontypes[i]];
881
[buttons[i] setImage: image];
0 commit comments