diff src/main.cpp @ 5:51ae25154b70

Fix OS X support code
author Paper <mrpapersonic@gmail.com>
date Sat, 12 Aug 2023 13:10:34 -0400
parents 23d0d9319a00
children 1d82f6e04d7d
line wrap: on
line diff
--- a/src/main.cpp	Sat Aug 12 12:08:16 2023 -0400
+++ b/src/main.cpp	Sat Aug 12 13:10:34 2023 -0400
@@ -1,7 +1,7 @@
 #include "window.h"
 #include "config.h"
 #include "anime.h"
-#if APPLE
+#if MACOSX
 #include "sys/osx/dark_theme.h"
 #elif WIN32
 #include "sys/win32/dark_theme.h"
@@ -138,7 +138,7 @@
 void MainWindow::ThemeChanged() {
 	switch (session.config.theme) {
 		case LIGHT: {
-#if APPLE
+#if MACOSX
 			if (osx::DarkThemeAvailable())
 				osx::SetToLightTheme();
 			else
@@ -149,7 +149,7 @@
 			break;
 		}
 		case DARK: {
-#if APPLE
+#if MACOSX
 			if (osx::DarkThemeAvailable())
 				osx::SetToDarkTheme();
 			else
@@ -160,7 +160,7 @@
 			break;
 		}
 		case OS: {
-#if APPLE
+#if MACOSX
 			if (osx::DarkThemeAvailable())
 				osx::SetToAutoTheme();
 			else