mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix solid color background preview.
This commit is contained in:
parent
2b6e04bca3
commit
44f52ca6cd
1 changed files with 3 additions and 0 deletions
|
@ -366,6 +366,9 @@ WallPaper WallPaper::withUrlParams(
|
||||||
if (result._backgroundColors.empty()) {
|
if (result._backgroundColors.empty()) {
|
||||||
result._backgroundColors = ColorsFromString(params.value("color"));
|
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()) {
|
if (const auto string = params.value("intensity"); !string.isEmpty()) {
|
||||||
auto ok = false;
|
auto ok = false;
|
||||||
const auto intensity = string.toInt(&ok);
|
const auto intensity = string.toInt(&ok);
|
||||||
|
|
Loading…
Add table
Reference in a new issue