mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 05:58:38 +00:00
Fix solid color background preview.
This commit is contained in:
parent
2b6e04bca3
commit
44f52ca6cd
@ -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…
x
Reference in New Issue
Block a user