Mercurial > minori
diff src/sys/osx/dark_theme.mm @ 179:9c4645100fec
osx: clean up includes, we do not need cocoa
what we *do* need is the very basics that animia already depends on anyway.
these are basically guaranteed to be on any macos system, making it fairly portable
now... I haven't tested this :) I don't have a macos machine right now...
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Mon, 04 Dec 2023 12:03:36 -0500 |
parents | 6d8da6e64d61 |
children |
line wrap: on
line diff
--- a/src/sys/osx/dark_theme.mm Mon Dec 04 11:51:30 2023 -0500 +++ b/src/sys/osx/dark_theme.mm Mon Dec 04 12:03:36 2023 -0500 @@ -1,10 +1,12 @@ #include "sys/osx/dark_theme.h" -#import <Cocoa/Cocoa.h> + +#import <AppKit/AppKit.h> namespace osx { /* I remember clang giving a hissy fit when I tried simplifying this to just - a return; does it still do that? */ + * a return; does it still do that? +*/ bool DarkThemeAvailable() { if (@available(macOS 10.14, *)) return true;