« how to bring a powerbook g4 to its knees | Main | Semi-Transparent Text in Open Laszlo »

roundrectbutton, and the purpose of styles

I've been sort of disliking OpenLaszlo styles since I started using CSS. The <style> tag says "Be greenish!" which is a cool effect, but not much use when I'm trying to match a particular customer's brand, or artist comps. CSS lets me specify exact colors; the <style> tag lets me suggest approximate colors.

But something changed my mind. Yesterday, Oliver Steele contributed a roundrect class to OpenLaszlo. Until then, without a designer and art assets, we had to prototype with plain old rectangular views. The roundrect class inspired a button based on it, roundrectbutton, which I've just checked in to the dev branch, in the incubator. I was trying to make it a well-behavd basecomponent subclass, so I made it handle _applyStyle, so now it's tintable. This makes me happy in a silly sunday morning wannabe designer kind of way.

In the example below, the roundrect buttons are mine; the other widgets are built-in OpenLaszlo components.

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>