mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +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()) {
|
||||
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);
|
||||
|
|
Loading…
Add table
Reference in a new issue