Mercurial > minori
diff src/sys/osx/dark_theme.mm @ 105:6d8da6e64d61
theme: add dark stylesheet, make it actually usable
win32: make the titlebar black where available
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sun, 05 Nov 2023 03:54:26 -0500 |
parents | cde8f67a7c7d |
children | 9c4645100fec |
line wrap: on
line diff
--- a/src/sys/osx/dark_theme.mm Sun Nov 05 02:35:27 2023 -0500 +++ b/src/sys/osx/dark_theme.mm Sun Nov 05 03:54:26 2023 -0500 @@ -3,6 +3,8 @@ namespace osx { +/* I remember clang giving a hissy fit when I tried simplifying this to just + a return; does it still do that? */ bool DarkThemeAvailable() { if (@available(macOS 10.14, *)) return true; @@ -28,7 +30,7 @@ void SetToLightTheme() { // https://stackoverflow.com/questions/55925862/how-can-i-set-my-os-x-application-theme-in-code - if (__builtin_available(macOS 10.14, *)) { + if (@available(macOS 10.14, *)) { [NSApp setAppearance:[NSAppearance appearanceNamed:NSAppearanceNameAqua]]; } }