Showing the changes to interface/src/scripting/WindowScriptingInterface.cpp (1 of 6 files). Show all
Unified · Split
| @@ -62,6 +62,10 @@ WindowScriptingInterface::WindowScriptingInterface() { · 61 unmodified lines | |||
| 62 | connect(qApp, &Application::interstitialModeChanged, [this] (bool interstitialMode) { | 62 | connect(qApp, &Application::interstitialModeChanged, [this] (bool interstitialMode) { |
| 63 | emit interstitialModeChanged(interstitialMode); | 63 | emit interstitialModeChanged(interstitialMode); |
| 64 | }); | 64 | }); |
| 65 | |||
| 66 | connect(qApp, &Application::darkThemePreferenceChanged, [this](bool useDarkTheme) { | ||
| 67 | emit darkThemePreferenceChanged(useDarkTheme); | ||
| 68 | }); | ||
| 65 | } | 69 | } |
| 66 | 70 | ||
| 67 | WindowScriptingInterface::~WindowScriptingInterface() { | 71 | WindowScriptingInterface::~WindowScriptingInterface() { |
| @@ -672,3 +676,7 @@ void WindowScriptingInterface::openWebBrowser(const QString& url) { · 604 unmodified lines | |||
| 672 | } | 676 | } |
| 673 | }); | 677 | }); |
| 674 | } | 678 | } |
| 679 | |||
| 680 | bool WindowScriptingInterface::getDarkThemePreference() { | ||
| 681 | return qApp->getDarkThemePreference(); | ||
| 682 | } | ||