IconUtils: transform to lower case for comparison

This commit is contained in:
Le Tan 2022-07-18 08:59:41 +08:00
parent 30f73cb004
commit 9a3c69870c

View File

@ -89,7 +89,7 @@ bool IconUtils::isMonochrome(const QString &p_iconContent)
break; break;
} }
auto curColor = monoRe.cap(1); auto curColor = monoRe.cap(1).toLower();
if (curColor.size() == 3) { if (curColor.size() == 3) {
for (int i = curColor.size() - 1; i >= 0; --i) { for (int i = curColor.size() - 1; i >= 0; --i) {
curColor.insert(i, curColor[i]); curColor.insert(i, curColor[i]);