Modifying an existing Theme
Let's say you like the
LightGreeen3 Theme, except you would like for the buttons to have black text instead of white. You can change this by modifying the theme at runtime.
Normal use of
theme calls is to retrieve a theme's setting such as the background color. The functions used to retrieve a theme setting can also be used to modify the setting by passing in the new setting as a parameter.
theme_background_color() returns the background color currently in use. Passing in the color
'blue' as the parameter,
theme_background_color('blue'), will change the background color for future windows you create to blue.
Produces these 2 windows