mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Send from scheduled messages section.
This commit is contained in:
@@ -369,6 +369,7 @@ void SendButton::paintEvent(QPaintEvent *e) {
|
||||
case Type::Save: paintSave(p, over); break;
|
||||
case Type::Cancel: paintCancel(p, over); break;
|
||||
case Type::Send: paintSend(p, over); break;
|
||||
case Type::Schedule: paintSchedule(p, over); break;
|
||||
case Type::Slowmode: paintSlowmode(p); break;
|
||||
}
|
||||
}
|
||||
@@ -426,6 +427,23 @@ void SendButton::paintSend(Painter &p, bool over) {
|
||||
}
|
||||
}
|
||||
|
||||
void SendButton::paintSchedule(Painter &p, bool over) {
|
||||
{
|
||||
PainterHighQualityEnabler hq(p);
|
||||
p.setPen(Qt::NoPen);
|
||||
p.setBrush(over ? st::historySendIconFgOver : st::historySendIconFg);
|
||||
p.drawEllipse(
|
||||
st::historyScheduleIconPosition.x(),
|
||||
st::historyScheduleIconPosition.y(),
|
||||
st::historyScheduleIcon.width(),
|
||||
st::historyScheduleIcon.height());
|
||||
}
|
||||
st::historyScheduleIcon.paint(
|
||||
p,
|
||||
st::historyScheduleIconPosition,
|
||||
width());
|
||||
}
|
||||
|
||||
void SendButton::paintSlowmode(Painter &p) {
|
||||
p.setFont(st::normalFont);
|
||||
p.setPen(st::windowSubTextFg);
|
||||
|
Reference in New Issue
Block a user