summaryrefslogtreecommitdiffhomepage
path: root/gui/init.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-01-26 22:15:16 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-01-26 22:15:16 +0100
commit484a705e0daf95c95679ad7599278f102f1fe558 (patch)
treed3b012d45bce3f1fbb55954f681439c8d5153802 /gui/init.cpp
parent29ec855c58bd4e8f20f061056626c1060126dc26 (diff)
pose-widget: add grid lines
Diffstat (limited to 'gui/init.cpp')
-rw-r--r--gui/init.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/gui/init.cpp b/gui/init.cpp
index b54a085e..431ad04c 100644
--- a/gui/init.cpp
+++ b/gui/init.cpp
@@ -37,6 +37,9 @@ using namespace options;
extern "C" __declspec(dllimport) unsigned __cdecl _controlfp(unsigned, unsigned);
#endif
+extern "C" OTR_GENERIC_EXPORT bool opentrack_using_dark_theme;
+bool opentrack_using_dark_theme = false;
+
static void set_fp_mask()
{
#if defined OTR_ARCH_DENORM_DAZ
@@ -188,6 +191,7 @@ static void apply_dark_windows_theme_if_needed()
qApp->setPalette(darkPalette);
qApp->setStyleSheet("QToolTip { color: #ffffff; background-color: #2a82da; border: 1px solid white; }");
+ opentrack_using_dark_theme = true;
}
}
@@ -345,4 +349,3 @@ int otr_main(int argc, char** argv, std::function<std::unique_ptr<QWidget>()> co
return ret;
}
-