Skip to content

Commit

Permalink
VPN-6783: detect system theme changes (#10235)
Browse files Browse the repository at this point in the history
* VPN-6783 detect system theme changes

* only do this for certain versions

* comment out code for now
  • Loading branch information
mcleinman authored Feb 3, 2025
1 parent 75d0323 commit 92bd8ef
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/theme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,17 @@ Theme::Theme(QObject* parent) : QAbstractListModel(parent) {
m_themes.clear();
initialize(QmlEngineHolder::instance()->engine());
});

// In VPN-6178, uncomment these next few lines and add code.
// #if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
// connect(QGuiApplication::styleHints(), &QStyleHints::colorSchemeChanged,
// this,
// []() {
// Code gets added here. Code must update the theme when the system
// theme changes (if the user has "system theme" selected for their VPN
// theme).
// });
// #endif
}

Theme::~Theme() { MZ_COUNT_DTOR(Theme); }
Expand Down

0 comments on commit 92bd8ef

Please sign in to comment.