From 484a705e0daf95c95679ad7599278f102f1fe558 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 26 Jan 2023 22:15:16 +0100 Subject: pose-widget: add grid lines --- opentrack/main-window.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'opentrack/main-window.cpp') 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 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, -- cgit v1.2.3