Theme is slow Thread last updated on 2006-05-29 07:58:38

Posted by member 321598 on 2006-05-29 05:34:20

I posted this in the theme section, but hopefully more people can answer this question:

Basically I made a theme without any images, but it seems to start-up slower (there's like a 5 second hang.) Anyone might know which part of the theme might be the main problem? I suspect it's the amount of gradients in the theme (especially in the xpopup module). But it seems eliminating the normal gradients produced little change, but eliminating the Overlay gradients dramatically speeds it up. Is this because the overlay is drawn differently? Or could it due to the fact that the Entry items are painted onto the overlay? And is there a way to speed this up without eliminating the gradients? (Like making the gradients coarser? I dont' want to actually eliminated the gradients).

Another slightly off topic question - does anyone know which windows XP files stores the standard 16x16 icons (like the ones in shell32.dll?) I want to use Xlabel's icon extraction, but the actual shrinking of the icons looks pretty ugly without antialiasing.

Posted by member 1885 on 2006-05-29 06:15:52 link

As for your first question -- I have no idea. I've noticed that using the xModules' solid colors is slightly slower than using images, but it's not that much of a difference on my machine at least.

As for your second question: the 16x16 icons you're looking for are contained in the same files as the larger sizes. What you need to do is set (labelname)ExtractIconSize 16, which tells xLabel to extract and use the 16x16 icon instead of scaling down the default 32x32 icon.

Posted by member 321598 on 2006-05-29 07:58:38 link

Hmmm, you are right about the icons. But somehow they still look pretty ugly even without stretching. Additionally, I can't seem to get to any icon above 50? I know shell32.dll has a lot more icons than that, is thi s a bug in xlabel? (I'm pretty sure shell32.dll also has the icons in 16x16 size too). or maybe something's wrong with my syntax? I also notice that the extraction doesn't follow the same numbering of icon as xpopup (Not sure why, the first 50 seems to, but after that, it seems like random scattering, like i found an icon at 170, but no 169 or 171).

*MkeyButtonOverlayLabel 0 8 16 16 GhostMkeyButton #
GhostMkeyButtonExtractIconSize 16
GhostMkeyButtonImage "shell32.dll,171"
GhostMkeyButtonImageMode "tile"