PrusaSlicer-NonPlainar/src/slic3r/Utils/MacDarkMode.mm

23 lines
318 B
Plaintext
Raw Normal View History

2019-04-26 14:59:14 +00:00
#import "MacDarkMode.hpp"
#import <Foundation/Foundation.h>
@implementation MacDarkMode
namespace Slic3r {
namespace GUI {
bool mac_dark_mode()
{
NSString *style = [[NSUserDefaults standardUserDefaults] stringForKey:@"AppleInterfaceStyle"];
return style && [style isEqualToString:@"Dark"];
}
}
}
@end