mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-10 05:33:50 +00:00
47 lines
1.1 KiB
C++
47 lines
1.1 KiB
C++
/*
|
|
This file is part of Telegram Desktop,
|
|
the official desktop application for the Telegram messaging service.
|
|
|
|
For license and copyright information please follow this link:
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|
*/
|
|
#pragma once
|
|
|
|
#include "data/data_cloud_themes.h"
|
|
|
|
namespace Ui {
|
|
struct ChatThemeBubblesData;
|
|
} // namespace Ui
|
|
|
|
namespace Window {
|
|
class SessionController;
|
|
} // namespace Window
|
|
|
|
namespace Window::Theme {
|
|
|
|
struct Preview;
|
|
|
|
[[nodiscard]] std::optional<Data::CloudThemeType> ChatThemeVariant(
|
|
const Data::CloudTheme &theme,
|
|
bool dark);
|
|
|
|
[[nodiscard]] Ui::ChatThemeBubblesData PrepareBubblesData(
|
|
const Data::CloudTheme &theme,
|
|
Data::CloudThemeType type);
|
|
|
|
[[nodiscard]] std::unique_ptr<Preview> PreviewFromChatTheme(
|
|
const Data::CloudTheme &theme,
|
|
bool dark);
|
|
|
|
[[nodiscard]] bool ChatThemeOwnsPaper(const Data::CloudTheme &theme);
|
|
|
|
void ApplyChatTheme(
|
|
not_null<SessionController*> controller,
|
|
const Data::CloudTheme &theme,
|
|
bool dark,
|
|
bool replacePaper = true);
|
|
|
|
void CheckChatThemeWallPaper(not_null<SessionController*> controller);
|
|
|
|
} // namespace Window::Theme
|