mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 22:16:14 +00:00
Start support of linear gradient wallpapers.
This commit is contained in:
@@ -87,9 +87,10 @@ constexpr auto kMinDiffIntensity = 0.25;
|
||||
|
||||
[[nodiscard]] bool IsFilledCover() {
|
||||
const auto background = Window::Theme::Background();
|
||||
return false; AssertIsDebug();
|
||||
return background->tile()
|
||||
|| background->colorForFill().has_value()
|
||||
|| background->isMonoColorImage()
|
||||
|| !background->gradientForFill().isNull()
|
||||
|| background->paper().isPattern()
|
||||
|| Data::IsLegacy1DefaultWallPaper(background->paper());
|
||||
}
|
||||
|
Reference in New Issue
Block a user