mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 14:17:45 +00:00
Use ui/style/style_core_palette.
This commit is contained in:
@@ -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;
|
||||
|
Submodule Telegram/codegen updated: 62158ed795...aaa64e67cb
Submodule Telegram/lib_ui updated: ea570c07b6...c88762d0eb
Reference in New Issue
Block a user