mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-24 02:42:50 +00:00
plasma: tweak the mixer applet icon
less static, looks more lively (deffinetly more lively than the old mixer applet) Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
cbe7baa196
commit
2f9c3988db
1 changed files with 2 additions and 2 deletions
|
@ -289,9 +289,9 @@ void MixerPlotter::paint(QPainter *painter, const QStyleOptionGraphicsItem *opti
|
|||
}
|
||||
const double lastplotvalue = lastValue(0);
|
||||
const QPointF pixmappoint = QPointF((plottersize.width() / 2) - (iconsize / 2), 10);
|
||||
if (lastplotvalue == 0.0) {
|
||||
if (lastplotvalue <= 0.05 && lastplotvalue >= -0.05) {
|
||||
painter->drawPixmap(pixmappoint, m_plainicon.pixmap(iconsize, iconsize));
|
||||
} else if (lastplotvalue > -0.30 && lastplotvalue < 0.30) {
|
||||
} else if (lastplotvalue >= -0.30 && lastplotvalue <= 0.30) {
|
||||
painter->drawPixmap(pixmappoint, m_uncertainicon.pixmap(iconsize, iconsize));
|
||||
} else if (lastplotvalue > 0.0) {
|
||||
painter->drawPixmap(pixmappoint, m_smileicon.pixmap(iconsize, iconsize));
|
||||
|
|
Loading…
Add table
Reference in a new issue