Topics

Note Selector

Directly Using Theme Attributes

Wednesday, July 19, 2023

Is it possible for widget attributes to directly use the theme attributes?

Attributes could store pointers to their associated theme attributes, similar to how they store pointers to the attributes they link to. This theme-attribute value would be the first in line when requesting the attribute's value.

Linking

Linking could be handled internally within themes if this gets implemented. Theme attributes would link to other theme attributes. This would make the process of searching for link attributes easier since the theme should also contain them or the links would be invalidated.

Control Themeable Widgets

Control themeable widgets may no longer be needed. The widgets could just share the attributes in the theme. The theme editor would have to be changed to work with a theme instead of the themeable hierarchy (NOTE: If you do that, you need to consider how new themeable's attributes would get added to the theme).