Widget property inheritance

The KDE theme style has the capabilty for one widget to inherit the properties of another. Inheritance may sound like a complicated, programmer oriented concept but it's not. All this means is you can define one widget then tell another widget to use all it's settings.

To do this manually you use the "CopyWidget" key in the widget's configuration group. For example, if I do the following:


[PushButton]
Background=150,150,150
Foreground=255,255,255
Gradient=Vertical
GradientHigh=175,175,175
GradientLow=125,125,125

[Splitter]
CopyWidget=PushButton

[KDE]
widgetStyle=basicstyle.la


The Splitter will inherit all the PushButton's properties (same colors, vertical gradient, etc...). Currently, if you use the CopyWidget feature you cannot specify other settings for the inherited widget. You have to use all the settings or none at all.

Inheritance is also used by default for many widget's active vs. inactive state. Many widgets have a normal and "down" state that can be defined differently. You can just specify the settings for the normal widget and it will also be applied to the down state unless if you specify otherwise.

The following is a list of all the current widget groups. Widget groups that by default inherit other groups are indented. For example: The PushButtonDown group, which defines a pressed PushButton inherits the PushButton group, which defines a normal PushButton.

<< Previous Page | Next Page >>

Mail Mosfet