Archive for April, 2006

Customize Colors for Simple Styles

Friday, April 21st, 2006

Every control in the new version of simple styles takes a depedency on a file called Shared.xaml. This file contains a set of resources (mostly brushes…. err, actually, all brushes) that define all of colors that I use. I was pretty strict about everything in that file and not hardcoding anything. The result of this is that it’s pretty easy to make a new color scheme for simple styles.

To test this out, I took a stab at creating “glassy” version of simple styles. Here’s the updated shared.xaml. It mostly worked. Here you can see some of the original simple styles (on top) and the glassy version (below).

Glassy Simple Styles Preview

There are a couple of places that I ran into some problems, though. I made the “WindowBackground” color semi-transparent because I wanted TextBox and ListBox to get the glassy feel. The problem is that I use this same color as the background for the popup in Menu and ComboBox. A semi-transparent Menu is pretty tough to use. I also discovered that I had hardcoded some colors in ScrollBar. This will need to fixed in a future version.

To actually use this, you’ll probably have to make a handful of tweaks in the SimpleStyles themselves. I’ll leave that up to you. Overall, though, you could be up and running with this in 10-15 min. The whole thing took me about 45 minutes… not bad for creating a whole new look for Simple Styles.

Simple Styles Now Simpler

Monday, April 17th, 2006

I just posted a major update of Simple Styles that work with February CTP bits. This was a major rewrite and now includes almost all of the major controls that ship in the box. They’re also a little simpler now.  TabControl, for example, went from hundreds to dozens of lines.  I’ve also taken it upon myself to give SimpleStyles their own tag line, so here it is: SimpleStyles: Simple Looking, Simple Tweaking.  Let me know if you want to write a jingle.  Play around and let me know what you think.