diff options
author | Ken Moore <moorekou@gmail.com> | 2015-11-10 12:52:40 -0500 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2015-11-10 12:52:40 -0500 |
commit | 5b6c0da75d5bf5707bf36b0e621fecddbf4e91ff (patch) | |
tree | 1472dd5804a7d8976158767c01fb9e5c6012d66c | |
parent | Re-work how Lumina finds/loads icons from the current theme. This bypasses th... (diff) | |
download | lumina-5b6c0da75d5bf5707bf36b0e621fecddbf4e91ff.tar.gz lumina-5b6c0da75d5bf5707bf36b0e621fecddbf4e91ff.tar.bz2 lumina-5b6c0da75d5bf5707bf36b0e621fecddbf4e91ff.zip |
Tweak the font outlines a bit more for the desktop icons:
1) Make the outline more transparent (50/255)
2) Make the outline a bit thicker so it appears more "blurry" instead of an echo of the text.
-rw-r--r-- | lumina-desktop/desktop-plugins/applauncher/OutlineToolButton.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lumina-desktop/desktop-plugins/applauncher/OutlineToolButton.h b/lumina-desktop/desktop-plugins/applauncher/OutlineToolButton.h index 4d7206ee..eaf9e23e 100644 --- a/lumina-desktop/desktop-plugins/applauncher/OutlineToolButton.h +++ b/lumina-desktop/desktop-plugins/applauncher/OutlineToolButton.h @@ -72,10 +72,10 @@ protected: QColor outC = textC; //qDebug() << "Font Color Values:" << textC << textC.lightness() << textC.lightnessF(); if(textC.lightnessF() > 0.5){ outC.setHsl(textC.hue(), textC.hslSaturation(), 0, 90); } - else{outC.setHsl(textC.hue(), textC.hslSaturation(), 255, 90); } + else{outC.setHsl(textC.hue(), textC.hslSaturation(), 255, 50); } //qDebug() << "Outline Color Values:" << outC; //Now get the size of the outline border (need to scale for high-res monitors) - qreal OWidth = opt.fontMetrics.width("o")/3.5; + qreal OWidth = opt.fontMetrics.width("o")/2.0; //qDebug() << "Outline Width:" << OWidth; //Now generate a QPainterPath for the text QPainterPath path; @@ -85,7 +85,7 @@ protected: } path.setFillRule(Qt::WindingFill); //Now paint the text - QRadialGradient RG(box.center(), box.width()/1.1); //width is always going to be greater than height + QRadialGradient RG(box.center(), box.width()*1.5); //width is always going to be greater than height RG.setColorAt(0, outC); RG.setColorAt(1, Qt::transparent); p.setRenderHints(QPainter::Antialiasing | QPainter::TextAntialiasing); //need antialiasing for this to work well (sub-pixel painting) |