Notifies about changes between dark/bright mode in the system that the application runs on.
More...
#include <iASystemThemeWatcher.h>
|
| void | themeChanged (bool brightTheme) |
| | notification triggered when the theme switches between bright and dark
|
| |
|
| static iASystemThemeWatcher * | get () |
| | get the (singleton) object that triggers notifications on theme change
|
| |
| static bool | isBrightTheme () |
| | whether currently the system has bright mode
|
| |
| static void | stop () |
| | stop looking for theme changes
|
| |
Notifies about changes between dark/bright mode in the system that the application runs on.
Currently only supports Windows (10/11), and selected Linux window managers (tested with XFCE)
◆ iASystemThemeWatcher()
| iASystemThemeWatcher::iASystemThemeWatcher |
( |
| ) |
|
◆ ~iASystemThemeWatcher()
| iASystemThemeWatcher::~iASystemThemeWatcher |
( |
| ) |
|
◆ checkForChange()
| void iASystemThemeWatcher::checkForChange |
( |
| ) |
|
trigger a check for whether something as changed (required for linux, where a changeEvent on main window (type StyleChanged(/ThemeChanged?) should trigger this)
◆ get()
get the (singleton) object that triggers notifications on theme change
◆ isBrightTheme()
| bool iASystemThemeWatcher::isBrightTheme |
( |
| ) |
|
|
static |
whether currently the system has bright mode
◆ stop()
| void iASystemThemeWatcher::stop |
( |
| ) |
|
|
static |
stop looking for theme changes
◆ themeChanged
| void iASystemThemeWatcher::themeChanged |
( |
bool | brightTheme | ) |
|
|
signal |
notification triggered when the theme switches between bright and dark
The documentation for this class was generated from the following files: