Open main menu

Difference between revisions of "GUI Themes/Specs"

255 bytes added ,  23:54, 3 February 2007
(→‎'pixmaps' section: make listings more consistent with the rest of the documentation)
Line 344: Line 344:
  gradient_dialog_main=1
  gradient_dialog_main=1


Which is for the background of the launcher dialog.
Which is for the background of the launcher dialog. Check the modern.ini file for all definable gradients.


To see what this value does here's how the calculate the color of a row in a widget/dialog:
To see what this value does here's how the calculate the color of a row in a widget/dialog:
Line 357: Line 357:
       return firstLineColor + (lastLineColor - firstLineColor) * currentLine / maxLineNumber
       return firstLineColor + (lastLineColor - firstLineColor) * currentLine / maxLineNumber


Of course that's somewhat simplified. Now we come to some examples:
As you can see we're using a linear interpolation here. Since it's pseudocode it's a bit simplified though, but it should be enough to get the basic idea.
 
===== Examples =====
 
To have some examples showing in how far a different factor value changes the colors here are coming two.


The color values we use in our examples:
The color values we use in our examples:
Line 367: Line 371:
|}
|}


If we would draw a rect with 10 lines and a factor of 1 the colors would look like:
If we would draw a rect with 10 lines and a factor of 1 it would look like:


{|
{|
Line 391: Line 395:
|}
|}


If we would draw a the same rect with a factor of 2 the colors would look like:
If we would draw a the same rect with a factor of 2 it would look like:


{|
{|
561

edits