mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Support Qt 6.5 dark mode API
This commit is contained in:
@@ -383,6 +383,7 @@ QString SingleInstanceLocalServerName(const QString &hash) {
|
||||
return u"Global\\"_q + hash + '-' + cGUIDStr();
|
||||
}
|
||||
|
||||
#if QT_VERSION < QT_VERSION_CHECK(6, 5, 0)
|
||||
std::optional<bool> IsDarkMode() {
|
||||
static const auto kSystemVersion = QOperatingSystemVersion::current();
|
||||
static const auto kDarkModeAddedVersion = QOperatingSystemVersion(
|
||||
@@ -413,6 +414,7 @@ std::optional<bool> IsDarkMode() {
|
||||
|
||||
return (value == 0);
|
||||
}
|
||||
#endif // Qt < 6.5.0
|
||||
|
||||
bool AutostartSupported() {
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user