Deskflow 1.22.0.197
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
StyleUtils.h File Reference
#include <QDir>
#include <QFileInfoList>
#include <QPalette>
#include <QStyleHints>
Include dependency graph for StyleUtils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  deskflow
namespace  deskflow::gui

Functions

bool deskflow::gui::isDarkMode ()
 Detects dark mode in a universal manner (all Qt versions). Until better platform support is added, it's more reliable to use the old way (compare text and window lightness), because the newer versions in Qt 6.5+ are not always correct and some return UnknownScheme. https://www.qt.io/blog/dark-mode-on-windows-11-with-qt-6.5.
QString deskflow::gui::iconMode ()
 get a string for the iconMode