Hi,

On 02.05.2012 22:03, Hong Shick Pak wrote:
> I am currently using awesome-git-20120214-1 and there are changes with
> the config that I can't find documented. I have tried to read the git
> commit logs and its a bit cryptic for me. I've run into 2 issues
> specifically. What happened to widget.layouts?

wibox.layout happened to it. Works quite different, is IMHO way more flexible
and everyone out there will hate me because it breaks their config.

If you got some more specific question, I'd be happy to help.

> set_gradient_colors also seem to be gone. Are there replacements?

Dunno, I never figured out how that was supposed to work.

So let's try the example from the set_gradient_colors docs:

   { "#ff0000", "#00ff00", "#0000ff", ["#0000ff"] = 10 }

I think this might now be:

   { type = "linear", from = { 0, 0 }, to = { 10, 0 },
     stops = { { 0, "#ff0000" }, { 1, "#00ff00" } } }

However, I'm not sure about that.

The above defines a linear gradient which goes from the point 0,0 to the point
10, 0. At 0,0, the gradient will be red and at 10, 0 it is green. You can add
more color stops, e.g. { 0.5, "#0000ff" } to get some blue in the middle.

Btw did I mention that this new color stuff is way more flexible? ;-)
You can now use such a color definition everywhere where a color is expected,
not only with the progressbar (or whichever widget it was). Also, there are more
types of gradients than just linear (solid, linear, radial, surface).

Uli
-- 
"Engineering - where the semi-skilled laborers execute the vision
 of those who think and dream. Hello Oompa-Loompas of science."

-- 
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.

Reply via email to