Fix solid color background preview.

This commit is contained in:
John Preston 2021-08-20 13:57:55 +03:00
parent 2b6e04bca3
commit 44f52ca6cd

View file

@ -366,6 +366,9 @@ WallPaper WallPaper::withUrlParams(
if (result._backgroundColors.empty()) {
result._backgroundColors = ColorsFromString(params.value("color"));
}
if (result._backgroundColors.empty()) {
result._backgroundColors = ColorsFromString(params.value("slug"));
}
if (const auto string = params.value("intensity"); !string.isEmpty()) {
auto ok = false;
const auto intensity = string.toInt(&ok);