Exemple #1
0
 int texture(Texture *t, float scale, int rotate, int xoff, int yoff, Texture *glowtex, const vec &glowcolor, Texture *layertex)
 {
     autotab();
     if(scale==0) scale = 1;
     int size = (int)(scale*2*FONTH)-SHADOW;
     if(t!=notexture && visible()) icon_(t, true, true, curx, cury, size, ishit(size+SHADOW, size+SHADOW), rotate, xoff, yoff, glowtex, glowcolor, layertex);
     return layout(size+SHADOW, size+SHADOW);
 }
Exemple #2
0
 int image(Texture *t, float scale, bool overlaid)
 {
     autotab();
     if(scale==0) scale = 1;
     int size = (int)(scale*2*FONTH)-SHADOW;
     if(visible()) icon_(t, overlaid, curx, cury, size, ishit(size+SHADOW, size+SHADOW));
     return layout(size+SHADOW, size+SHADOW);
 }
Exemple #3
0
void TrayIcon::setTrayIcon(const QString &icon)
{
	if (legacyTrayIcon_) {
		legacyTrayIcon_->setIcon(QIcon(icon));
		if (!legacyTrayIcon_->isVisible())
			legacyTrayIcon_->show();
	}
#ifdef HAVE_KDE
	else {
		QIcon icon_(icon);
		//newTrayIcon_->setIconByName(icon);
		newTrayIcon_->setIconByPixmap(icon_);
		currentIcon_ = icon;
	}
#endif

}