diff src/sys/win32/dark_theme.cpp @ 2:23d0d9319a00

Update Also converted everything to LF from CRLF
author Paper <mrpapersonic@gmail.com>
date Sat, 12 Aug 2023 03:16:26 -0400
parents 1ae666fdf9e2
children 5c0397762b53
line wrap: on
line diff
--- a/src/sys/win32/dark_theme.cpp	Tue Aug 08 19:49:15 2023 -0400
+++ b/src/sys/win32/dark_theme.cpp	Sat Aug 12 03:16:26 2023 -0400
@@ -1,26 +1,26 @@
-#include <QSettings>
-#include <QOperatingSystemVersion>
-#include "sys/win32/dark_theme.h"
-bool win32::DarkThemeAvailable()
-{
-    // dark mode supported Windows 10 1809 10.0.17763 onward
-    // https://stackoverflow.com/questions/53501268/win10-dark-theme-how-to-use-in-winapi
-    if ( QOperatingSystemVersion::current().majorVersion() == 10 )
-    {
-        return QOperatingSystemVersion::current().microVersion() >= 17763;
-    }
-    else if ( QOperatingSystemVersion::current().majorVersion() > 10 )
-    {
-        return true;
-    }
-    else
-    {
-        return false;
-    }
-}
-
-bool win32::IsInDarkTheme()
-{
-    QSettings settings( "HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize", QSettings::NativeFormat );
-    return settings.value( "AppsUseLightTheme", 1 ).toInt() == 0;
-}
+#include <QSettings>
+#include <QOperatingSystemVersion>
+#include "sys/win32/dark_theme.h"
+bool win32::DarkThemeAvailable()
+{
+    // dark mode supported Windows 10 1809 10.0.17763 onward
+    // https://stackoverflow.com/questions/53501268/win10-dark-theme-how-to-use-in-winapi
+    if ( QOperatingSystemVersion::current().majorVersion() == 10 )
+    {
+        return QOperatingSystemVersion::current().microVersion() >= 17763;
+    }
+    else if ( QOperatingSystemVersion::current().majorVersion() > 10 )
+    {
+        return true;
+    }
+    else
+    {
+        return false;
+    }
+}
+
+bool win32::IsInDarkTheme()
+{
+    QSettings settings( "HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize", QSettings::NativeFormat );
+    return settings.value( "AppsUseLightTheme", 1 ).toInt() == 0;
+}