VistaStyleBuilder

Tips and Visual Styles => Tips and Tricks => Topic started by: geoken on November 09, 2008, 05:42:32 am



Title: careful with sizing margins on resources that will be shrunk
Post by: geoken on November 09, 2008, 05:42:32 am
Watch out for shrinkable resources (ie. the progress bars for the Hard Drive tiles) and there small margins. The default Aero style left only 1 pixel after the sizing margins (resource was 125px wide, sizing margins were 62,62). This is fine when the resources is being stretched, but when the resource is being shrunk it will cause unwanted anomalies.

For example, I made a bar with a 1 pix outline to replace that resource. When Vista shrank the resource it's algorithm cropped out the 1px black line. Pulling the sizing margins back to 15,15 gave Vista enough room to shrink the resource without touching the outline.