Difference between revisions of "GUI Themes/Specs"

Jump to navigation Jump to search
(fixed disappearing dialog borders -> remove todo entry)
(→‎Inactive dialog effects (new theme only): deleted information about 'custom' shading (no longer supported))
Line 224: Line 224:
=== Inactive dialog effects (new theme only) ===
=== Inactive dialog effects (new theme only) ===
For using an effect change the "inactive_dialog_shading" option in the "[extra]" section of default-theme.ini.
For using an effect change the "inactive_dialog_shading" option in the "[extra]" section of default-theme.ini.
Possible values are: "luminance", "dim" and "custom".
Possible values are: "luminance" and "dim".


* "luminance" will change all inactive screen areas to black and white.
* "luminance" will change all inactive screen areas to black and white.
Line 239: Line 239:
   inactive_dialog_shading=dim
   inactive_dialog_shading=dim
   shading_dim_percent=30
   shading_dim_percent=30
* "custom" will let you decide how the color is calculated.
** "shading_custom_r" is used to evaluate the R component [0 to 255]
** "shading_custom_g" is used to evaluate the G component [0 to 255]
** "shading_custom_b" is used to evaluate the B component [0 to 255]
** the vars 'r', 'g', 'b' are the input color components, you can use them in every of the shading_custom_* expressions
** Example (inverts all color values)
  [extra]
  inactive_dialog_shading=custom
  shading_custom_r=255-r
  shading_custom_g=255-g
  shading_custom_b=255-b


== Evaluation precedence ==
== Evaluation precedence ==