Skip to content
Snippets Groups Projects
Commit 9772f528 authored by Konstantinos Sideris's avatar Konstantinos Sideris
Browse files

Increase tray icon's bubble size

parent 0e04e4d0
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@ public:
int msgCount = 0;
private:
const int BubbleDiameter = 15;
const int BubbleDiameter = 17;
QIcon icon_;
};
......
......@@ -28,6 +28,10 @@ MsgCountComposedIcon::MsgCountComposedIcon(const QString &filename)
void MsgCountComposedIcon::paint(QPainter *painter, const QRect &rect, QIcon::Mode mode, QIcon::State state)
{
painter->setRenderHint(QPainter::TextAntialiasing);
painter->setRenderHint(QPainter::SmoothPixmapTransform);
painter->setRenderHint(QPainter::Antialiasing);
icon_.paint(painter, rect, Qt::AlignCenter, mode, state);
if (msgCount <= 0)
......@@ -42,7 +46,7 @@ void MsgCountComposedIcon::paint(QPainter *painter, const QRect &rect, QIcon::Mo
painter->setBrush(brush);
painter->setPen(Qt::NoPen);
painter->setFont(QFont("Open Sans", 7, QFont::Black));
painter->setFont(QFont("Open Sans", 8, QFont::Black));
QRectF bubble(rect.width() - BubbleDiameter,
rect.height() - BubbleDiameter,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment