mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-03 16:05:57 +00:00
Improve footer custom emoji sizes.
This commit is contained in:
@@ -179,7 +179,8 @@ emojiSwitchColor: windowActiveTextFg;
|
|||||||
emojiSwitchStickers: icon {{ "emoji/emoji_switch", emojiSwitchColor }};
|
emojiSwitchStickers: icon {{ "emoji/emoji_switch", emojiSwitchColor }};
|
||||||
emojiSwitchEmoji: icon {{ "emoji/emoji_switch-flip_horizontal", emojiSwitchColor }};
|
emojiSwitchEmoji: icon {{ "emoji/emoji_switch-flip_horizontal", emojiSwitchColor }};
|
||||||
|
|
||||||
emojiIconSelectSkip: 2px;
|
emojiIconPadding: 8px;
|
||||||
|
emojiIconSelectSkip: 3px;
|
||||||
|
|
||||||
hashtagClose: IconButton {
|
hashtagClose: IconButton {
|
||||||
width: 30px;
|
width: 30px;
|
||||||
|
@@ -1374,8 +1374,8 @@ std::vector<StickerIcon> EmojiListWidget::fillIcons() {
|
|||||||
for (const auto &custom : _custom) {
|
for (const auto &custom : _custom) {
|
||||||
const auto set = custom.set;
|
const auto set = custom.set;
|
||||||
const auto s = custom.thumbnailDocument;
|
const auto s = custom.thumbnailDocument;
|
||||||
const auto availw = st::stickerIconWidth - 2 * st::stickerIconPadding;
|
const auto availw = st::stickerIconWidth - 2 * st::emojiIconPadding;
|
||||||
const auto availh = st::emojiFooterHeight - 2 * st::stickerIconPadding;
|
const auto availh = st::emojiFooterHeight - 2 * st::emojiIconPadding;
|
||||||
const auto size = set->hasThumbnail()
|
const auto size = set->hasThumbnail()
|
||||||
? QSize(
|
? QSize(
|
||||||
set->thumbnailLocation().width(),
|
set->thumbnailLocation().width(),
|
||||||
|
@@ -1053,10 +1053,7 @@ void StickersListFooter::validateIconLottieAnimation(
|
|||||||
icon.thumbnailMedia.get(),
|
icon.thumbnailMedia.get(),
|
||||||
icon.stickerMedia.get(),
|
icon.stickerMedia.get(),
|
||||||
StickerLottieSize::StickersFooter,
|
StickerLottieSize::StickersFooter,
|
||||||
QSize(
|
QSize(icon.pixw, icon.pixh) * cIntRetinaFactor(),
|
||||||
st::stickerIconWidth - 2 * st::stickerIconPadding,
|
|
||||||
st::emojiFooterHeight - 2 * st::stickerIconPadding
|
|
||||||
) * cIntRetinaFactor(),
|
|
||||||
_renderer());
|
_renderer());
|
||||||
if (!player) {
|
if (!player) {
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user