2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Use outbox bubble colors, adjust custom colors.

This commit is contained in:
John Preston
2021-09-06 13:18:14 +03:00
parent e4e5c4a1d2
commit c318f57fc0
18 changed files with 208 additions and 98 deletions

View File

@@ -49,6 +49,7 @@ class ChatStyle;
class ChatTheme;
struct ChatPaintContext;
struct ChatThemeBackground;
struct ChatThemeBackgroundData;
} // namespace Ui
namespace Data {
@@ -455,9 +456,9 @@ private:
void cacheChatTheme(const Data::CloudTheme &data);
void cacheChatThemeDone(std::shared_ptr<Ui::ChatTheme> result);
void updateCustomThemeBackground(CachedTheme &theme);
[[nodiscard]] Fn<Ui::ChatThemeBackground()> backgroundGenerator(
[[nodiscard]] Ui::ChatThemeBackgroundData backgroundData(
CachedTheme &theme,
bool generateGradient = true);
bool generateGradient = true) const;
const not_null<Controller*> _window;