mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Even nicer empty chat.
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 2.2 KiB |
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;
|
||||
|
||||
int EmptyChatLockedBox::width() {
|
||||
return st::premiumRequiredWidth;
|
||||
return (_type == Type::PremiumRequired)
|
||||
? st::premiumRequiredWidth
|
||||
: st::starsPerMessageWidth;
|
||||
}
|
||||
|
||||
int EmptyChatLockedBox::top() {
|
||||
@@ -460,7 +462,9 @@ void EmptyChatLockedBox::draw(
|
||||
p.setBrush(context.st->msgServiceBg()); // ?
|
||||
p.setPen(Qt::NoPen);
|
||||
p.drawEllipse(geometry);
|
||||
st::premiumRequiredIcon.paintInCenter(p, geometry);
|
||||
(_type == Type::PremiumRequired
|
||||
? st::premiumRequiredIcon
|
||||
: st::directMessagesIcon).paintInCenter(p, geometry);
|
||||
}
|
||||
|
||||
void EmptyChatLockedBox::stickerClearLoopPlayed() {
|
||||
|
||||
@@ -1055,6 +1055,8 @@ chatSimilarSkip: 12px;
|
||||
premiumRequiredWidth: 186px;
|
||||
premiumRequiredIcon: icon{{ "chat/large_lockedchat", msgServiceFg }};
|
||||
premiumRequiredCircle: 60px;
|
||||
directMessagesIcon: icon{{ "chat/large_messages", msgServiceFg }};
|
||||
starsPerMessageWidth: 226px;
|
||||
|
||||
repliesEmptyIcon: icon{{ "chat/large_quickreply", msgServiceFg }};
|
||||
greetingEmptyIcon: icon{{ "chat/large_greeting", msgServiceFg }};
|
||||
|
||||
Reference in New Issue
Block a user