Skip to content

Commit

Permalink
Merge pull request #137 from FlorianFieber/tray_icon_shadow
Browse files Browse the repository at this point in the history
Use a semitransparent black shadow for embiggened tray icons
  • Loading branch information
wadealer committed May 5, 2014
2 parents e342d03 + ac56660 commit f6be1bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/psitrayicon.cpp
Expand Up @@ -139,10 +139,10 @@ QPixmap PsiTrayIcon::makeIcon()
// draw a dropshadow
for(n2 = 0; n2 < in.height(); ++n2) {
for(n = 0; n < in.width(); ++n) {
if(int a = qAlpha(in.pixel(n,n2))) {
if(int a = qAlpha(in.pixel(n,n2)) / 2) {
int x = n + xo + 2;
int y = n2 + yo + 2;
real.setPixel(x, y, qRgba(0x80,0x80,0x80,a));
real.setPixel(x, y, qRgba(0,0,0,a));
}
}
}
Expand Down

0 comments on commit f6be1bb

Please sign in to comment.