summaryrefslogtreecommitdiffhomepage
path: root/opentrack
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 /opentrack
parent29ec855c58bd4e8f20f061056626c1060126dc26 (diff)
pose-widget: add grid lines
Diffstat (limited to 'opentrack')
-rw-r--r--opentrack/main-window.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/opentrack/main-window.cpp b/opentrack/main-window.cpp
index 4806951f..4c8ae381 100644
--- a/opentrack/main-window.cpp
+++ b/opentrack/main-window.cpp
@@ -33,6 +33,7 @@
#include <QDateTime>
extern "C" const char* const opentrack_version;
+extern "C" OTR_GENERIC_IMPORT bool opentrack_using_dark_theme;
using namespace options::globals;
using namespace options;
@@ -58,6 +59,8 @@ main_window::main_window() : State(OPENTRACK_BASE_PATH + OPENTRACK_LIBRARY_PATH)
setVisible(!start_in_tray());
ensure_tray();
+ ui.pose_display->set_grid_background(opentrack_using_dark_theme);
+
connect(&pose_update_timer, &QTimer::timeout,
this, &main_window::show_pose, Qt::DirectConnection);
connect(&det_timer, &QTimer::timeout,