mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Moved out Stickers::EmojiImageLoader to td_ui.
This commit is contained in:
parent
4b4de9d5aa
commit
5e11c43f84
4 changed files with 5 additions and 3 deletions
|
@ -392,8 +392,6 @@ PRIVATE
|
||||||
chat_helpers/spellchecker_common.h
|
chat_helpers/spellchecker_common.h
|
||||||
chat_helpers/stickers_dice_pack.cpp
|
chat_helpers/stickers_dice_pack.cpp
|
||||||
chat_helpers/stickers_dice_pack.h
|
chat_helpers/stickers_dice_pack.h
|
||||||
chat_helpers/stickers_emoji_image_loader.cpp
|
|
||||||
chat_helpers/stickers_emoji_image_loader.h
|
|
||||||
chat_helpers/stickers_emoji_pack.cpp
|
chat_helpers/stickers_emoji_pack.cpp
|
||||||
chat_helpers/stickers_emoji_pack.h
|
chat_helpers/stickers_emoji_pack.h
|
||||||
chat_helpers/stickers_gift_box_pack.cpp
|
chat_helpers/stickers_gift_box_pack.cpp
|
||||||
|
|
|
@ -28,7 +28,7 @@ void EmojiImageLoader::init(
|
||||||
|
|
||||||
QImage EmojiImageLoader::prepare(EmojiPtr emoji) const {
|
QImage EmojiImageLoader::prepare(EmojiPtr emoji) const {
|
||||||
const auto loaded = _images->ensureLoaded();
|
const auto loaded = _images->ensureLoaded();
|
||||||
const auto factor = cIntRetinaFactor();
|
const auto factor = style::DevicePixelRatio();
|
||||||
const auto side = st::largeEmojiSize + 2 * st::largeEmojiOutline;
|
const auto side = st::largeEmojiSize + 2 * st::largeEmojiOutline;
|
||||||
auto tinted = QImage(
|
auto tinted = QImage(
|
||||||
QSize(st::largeEmojiSize, st::largeEmojiSize) * factor,
|
QSize(st::largeEmojiSize, st::largeEmojiSize) * factor,
|
||||||
|
|
|
@ -7,6 +7,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <crl/crl_object_on_queue.h>
|
||||||
#include "ui/emoji_config.h"
|
#include "ui/emoji_config.h"
|
||||||
|
|
||||||
namespace Stickers {
|
namespace Stickers {
|
||||||
|
|
|
@ -63,6 +63,9 @@ PRIVATE
|
||||||
calls/group/ui/desktop_capture_choose_source.cpp
|
calls/group/ui/desktop_capture_choose_source.cpp
|
||||||
calls/group/ui/desktop_capture_choose_source.h
|
calls/group/ui/desktop_capture_choose_source.h
|
||||||
|
|
||||||
|
chat_helpers/stickers_emoji_image_loader.cpp
|
||||||
|
chat_helpers/stickers_emoji_image_loader.h
|
||||||
|
|
||||||
core/file_location.cpp
|
core/file_location.cpp
|
||||||
core/file_location.h
|
core/file_location.h
|
||||||
core/mime_type.cpp
|
core/mime_type.cpp
|
||||||
|
|
Loading…
Add table
Reference in a new issue