chatgui/chatgui-android: уведомления со звуком, флаги и прочие улучшения UI
This commit is contained in:
1 parent
6c857ceab8
commit
0f308fdbd7
20 files changed
+292
-32
No files matched your search
@@ -67,3 +67,23 @@ void FlagPainter::drawShield(QPainter* p, int x, int y, int sz) {
|
||||
p->drawPath(path);
|
||||
p->restore();
|
||||
}
|
||||
|
||||
void FlagPainter::drawStorage(QPainter* p, int x, int y, int sz) {
|
||||
p->save();
|
||||
p->setRenderHint(QPainter::Antialiasing);
|
||||
qreal cx = x + sz / 2.0, t = y + 1.0, b = y + sz - 1.0;
|
||||
qreal w = sz * 0.36, gap = sz * 0.20;
|
||||
QPainterPath path;
|
||||
path.moveTo(cx - w, t);
|
||||
path.lineTo(cx + w, t);
|
||||
path.lineTo(cx + w, b);
|
||||
path.lineTo(cx - w, b);
|
||||
path.closeSubpath();
|
||||
p->setPen(QPen(QColor("#37474F"), 0.8));
|
||||
p->setBrush(QColor("#78909C"));
|
||||
p->drawPath(path);
|
||||
p->setBrush(QColor("#ECEFF1"));
|
||||
p->drawEllipse(QPointF(cx, t), w, gap);
|
||||
p->drawEllipse(QPointF(cx, b), w, gap);
|
||||
p->restore();
|
||||
}
|
||||
Reference in new issue
Block a user