mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Use ui/style/style_core_palette.
This commit is contained in:
parent
5000902d61
commit
c4982711db
6 changed files with 13 additions and 2 deletions
|
@ -8,6 +8,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#pragma once
|
||||
|
||||
#include "ui/cached_round_corners.h"
|
||||
#include "ui/style/style_core_palette.h"
|
||||
|
||||
namespace Ui {
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "ui/image/image_prepare.h"
|
||||
#include "ui/ui_utility.h"
|
||||
#include "ui/chat/message_bubble.h"
|
||||
#include "ui/style/style_core_palette.h"
|
||||
|
||||
#include <crl/crl_async.h>
|
||||
#include <QtGui/QGuiApplication>
|
||||
|
@ -168,6 +169,8 @@ ChatTheme::ChatTheme(ChatThemeDescriptor &&descriptor)
|
|||
setBackground(descriptor.prepareBackground());
|
||||
}
|
||||
|
||||
ChatTheme::~ChatTheme() = default;
|
||||
|
||||
void ChatTheme::setBackground(ChatThemeBackground &&background) {
|
||||
_mutableBackground = std::move(background);
|
||||
_backgroundState = {};
|
||||
|
|
|
@ -11,6 +11,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "base/timer.h"
|
||||
#include "base/weak_ptr.h"
|
||||
|
||||
namespace style {
|
||||
class palette;
|
||||
} // namespace style
|
||||
|
||||
namespace Ui {
|
||||
|
||||
class ChatStyle;
|
||||
|
@ -112,6 +116,8 @@ public:
|
|||
// Expected to be invoked on a background thread. Invokes callbacks there.
|
||||
ChatTheme(ChatThemeDescriptor &&descriptor);
|
||||
|
||||
~ChatTheme();
|
||||
|
||||
[[nodiscard]] uint64 key() const;
|
||||
[[nodiscard]] const style::palette *palette() const {
|
||||
return _palette.get();
|
||||
|
|
|
@ -9,6 +9,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
|
||||
#include "data/data_wall_paper.h"
|
||||
#include "data/data_cloud_themes.h"
|
||||
#include "ui/style/style_core_palette.h"
|
||||
|
||||
namespace Main {
|
||||
class Session;
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 62158ed7955af3f7eabb1156075c1a41c4fff6b3
|
||||
Subproject commit aaa64e67cb247112dad396fd75f8ef3c1849aed3
|
|
@ -1 +1 @@
|
|||
Subproject commit ea570c07b6feef698f103a2876991f05f3ea1eb3
|
||||
Subproject commit c88762d0eb860064927bacaa784acd9a4f23c39b
|
Loading…
Add table
Reference in a new issue