mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 22:25:12 +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
|
#pragma once
|
||||||
|
|
||||||
#include "ui/cached_round_corners.h"
|
#include "ui/cached_round_corners.h"
|
||||||
|
#include "ui/style/style_core_palette.h"
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
|
|
||||||
|
@@ -10,6 +10,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||||||
#include "ui/image/image_prepare.h"
|
#include "ui/image/image_prepare.h"
|
||||||
#include "ui/ui_utility.h"
|
#include "ui/ui_utility.h"
|
||||||
#include "ui/chat/message_bubble.h"
|
#include "ui/chat/message_bubble.h"
|
||||||
|
#include "ui/style/style_core_palette.h"
|
||||||
|
|
||||||
#include <crl/crl_async.h>
|
#include <crl/crl_async.h>
|
||||||
#include <QtGui/QGuiApplication>
|
#include <QtGui/QGuiApplication>
|
||||||
@@ -168,6 +169,8 @@ ChatTheme::ChatTheme(ChatThemeDescriptor &&descriptor)
|
|||||||
setBackground(descriptor.prepareBackground());
|
setBackground(descriptor.prepareBackground());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ChatTheme::~ChatTheme() = default;
|
||||||
|
|
||||||
void ChatTheme::setBackground(ChatThemeBackground &&background) {
|
void ChatTheme::setBackground(ChatThemeBackground &&background) {
|
||||||
_mutableBackground = std::move(background);
|
_mutableBackground = std::move(background);
|
||||||
_backgroundState = {};
|
_backgroundState = {};
|
||||||
|
@@ -11,6 +11,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||||||
#include "base/timer.h"
|
#include "base/timer.h"
|
||||||
#include "base/weak_ptr.h"
|
#include "base/weak_ptr.h"
|
||||||
|
|
||||||
|
namespace style {
|
||||||
|
class palette;
|
||||||
|
} // namespace style
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
|
|
||||||
class ChatStyle;
|
class ChatStyle;
|
||||||
@@ -112,6 +116,8 @@ public:
|
|||||||
// Expected to be invoked on a background thread. Invokes callbacks there.
|
// Expected to be invoked on a background thread. Invokes callbacks there.
|
||||||
ChatTheme(ChatThemeDescriptor &&descriptor);
|
ChatTheme(ChatThemeDescriptor &&descriptor);
|
||||||
|
|
||||||
|
~ChatTheme();
|
||||||
|
|
||||||
[[nodiscard]] uint64 key() const;
|
[[nodiscard]] uint64 key() const;
|
||||||
[[nodiscard]] const style::palette *palette() const {
|
[[nodiscard]] const style::palette *palette() const {
|
||||||
return _palette.get();
|
return _palette.get();
|
||||||
|
@@ -9,6 +9,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||||||
|
|
||||||
#include "data/data_wall_paper.h"
|
#include "data/data_wall_paper.h"
|
||||||
#include "data/data_cloud_themes.h"
|
#include "data/data_cloud_themes.h"
|
||||||
|
#include "ui/style/style_core_palette.h"
|
||||||
|
|
||||||
namespace Main {
|
namespace Main {
|
||||||
class Session;
|
class Session;
|
||||||
|
Submodule Telegram/codegen updated: 62158ed795...aaa64e67cb
Submodule Telegram/lib_ui updated: ea570c07b6...c88762d0eb
Reference in New Issue
Block a user