Allow force dark look for qt6ct (#613)

* Allow force dark for qt6ct-style

* Update skinfactory.cpp

Co-authored-by: akinokonomi <akinokonomi@example.com>
Co-authored-by: martinrotter <martinrotter@users.noreply.github.com>
This commit is contained in:
akinokonomi 2022-01-26 07:19:57 +00:00 committed by GitHub
parent f0d993451f
commit 3318b96c16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ void SkinFactory::loadCurrentSkin() {
}
bool SkinFactory::isStyleGoodForDarkVariant(const QString& style_name) const {
return QRegularExpression("^(fusion)|(qt5ct-style)$").match(style_name.toLower()).hasMatch();
return QRegularExpression("^(fusion)|(qt[56]ct-style)$").match(style_name.toLower()).hasMatch();
}
void SkinFactory::loadSkinFromData(const Skin& skin) {