mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-07-29 08:53:03 +02:00
Even nicer empty chat.
This commit is contained in:
parent
8dc151e14d
commit
28e7afa412
5 changed files with 8 additions and 2 deletions
BIN
Telegram/Resources/icons/chat/large_messages.png
Normal file
BIN
Telegram/Resources/icons/chat/large_messages.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
BIN
Telegram/Resources/icons/chat/large_messages@2x.png
Normal file
BIN
Telegram/Resources/icons/chat/large_messages@2x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.2 KiB |
BIN
Telegram/Resources/icons/chat/large_messages@3x.png
Normal file
BIN
Telegram/Resources/icons/chat/large_messages@3x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.4 KiB |
|
@ -403,7 +403,9 @@ EmptyChatLockedBox::EmptyChatLockedBox(not_null<Element*> parent, Type type)
|
||||||
EmptyChatLockedBox::~EmptyChatLockedBox() = default;
|
EmptyChatLockedBox::~EmptyChatLockedBox() = default;
|
||||||
|
|
||||||
int EmptyChatLockedBox::width() {
|
int EmptyChatLockedBox::width() {
|
||||||
return st::premiumRequiredWidth;
|
return (_type == Type::PremiumRequired)
|
||||||
|
? st::premiumRequiredWidth
|
||||||
|
: st::starsPerMessageWidth;
|
||||||
}
|
}
|
||||||
|
|
||||||
int EmptyChatLockedBox::top() {
|
int EmptyChatLockedBox::top() {
|
||||||
|
@ -460,7 +462,9 @@ void EmptyChatLockedBox::draw(
|
||||||
p.setBrush(context.st->msgServiceBg()); // ?
|
p.setBrush(context.st->msgServiceBg()); // ?
|
||||||
p.setPen(Qt::NoPen);
|
p.setPen(Qt::NoPen);
|
||||||
p.drawEllipse(geometry);
|
p.drawEllipse(geometry);
|
||||||
st::premiumRequiredIcon.paintInCenter(p, geometry);
|
(_type == Type::PremiumRequired
|
||||||
|
? st::premiumRequiredIcon
|
||||||
|
: st::directMessagesIcon).paintInCenter(p, geometry);
|
||||||
}
|
}
|
||||||
|
|
||||||
void EmptyChatLockedBox::stickerClearLoopPlayed() {
|
void EmptyChatLockedBox::stickerClearLoopPlayed() {
|
||||||
|
|
|
@ -1055,6 +1055,8 @@ chatSimilarSkip: 12px;
|
||||||
premiumRequiredWidth: 186px;
|
premiumRequiredWidth: 186px;
|
||||||
premiumRequiredIcon: icon{{ "chat/large_lockedchat", msgServiceFg }};
|
premiumRequiredIcon: icon{{ "chat/large_lockedchat", msgServiceFg }};
|
||||||
premiumRequiredCircle: 60px;
|
premiumRequiredCircle: 60px;
|
||||||
|
directMessagesIcon: icon{{ "chat/large_messages", msgServiceFg }};
|
||||||
|
starsPerMessageWidth: 226px;
|
||||||
|
|
||||||
repliesEmptyIcon: icon{{ "chat/large_quickreply", msgServiceFg }};
|
repliesEmptyIcon: icon{{ "chat/large_quickreply", msgServiceFg }};
|
||||||
greetingEmptyIcon: icon{{ "chat/large_greeting", msgServiceFg }};
|
greetingEmptyIcon: icon{{ "chat/large_greeting", msgServiceFg }};
|
||||||
|
|
Loading…
Add table
Reference in a new issue