Daniel
2024-12-06 91274c58b1772dfe38d3fcab291693141e822684
src/core/shared/qwkwindowsextra_p.h
@@ -345,11 +345,8 @@
        if (!registry.isValid()) {
            return false;
        }
        auto value = registry.dwordValue(L"ColorPrevalence");
        if (!value.second) {
            return false;
        }
        return value.first;
        auto value = registry.value<DWORD>(L"ColorPrevalence");
        return value.value_or(false);
    }
    static inline bool isHighContrastModeEnabled() {
@@ -368,11 +365,8 @@
        if (!registry.isValid()) {
            return false;
        }
        auto value = registry.dwordValue(L"AppsUseLightTheme");
        if (!value.second) {
            return false;
        }
        return !value.first;
        auto value = registry.value<DWORD>(L"AppsUseLightTheme");
        return value.value_or(false);
#endif
    }
@@ -398,13 +392,13 @@
        if (!registry.isValid()) {
            return {};
        }
        auto value = registry.dwordValue(L"AccentColor");
        if (!value.second) {
        auto value = registry.value<DWORD>(L"AccentColor");
        if (!value) {
            return {};
        }
        // The retrieved value is in the #AABBGGRR format, we need to
        // convert it to the #AARRGGBB format which Qt expects.
        QColor color = QColor::fromRgba(value.first);
        QColor color = QColor::fromRgba(*value);
        if (!color.isValid()) {
            return {};
        }