#include <Pt/Forms/StyleOptions.h>
Stores the global theme option values shared across styles. More...
Classes | |
| class | Iterator |
| Forward iterator over all StyleOption entries. More... | |
Public Member Functions | |
| std::size_t | generation () const |
| Returns the current change generation. | |
| Iterator | begin () const |
| Returns an iterator to the first option. | |
| Iterator | end () const |
| Returns an iterator past the last option. | |
| const StyleOption * | find (const char *name) const |
| Finds an option by name, or returns 0 if not found. | |
| void | set (const char *name, const Pt::Any &value) |
| Sets an option by name from an Any value; no-op if name is unknown. | |
Protected Member Functions | |
| void | registerOption (StyleOption *opt) |
| Registers a StyleOption into the polymorphic vector for iteration. | |
Application owns the live global StyleOptions object. Widgets use the generation counter during invalidation to decide whether cached theme data must be refreshed. Theme-specific geometry and look details that are not part of a cross-style contract stay in the concrete style implementation instead of the global StyleOptions object.
TODO: background foreground textColor placeholderTextColor
highlightColor hoverBackground highlightedTextBackground highlightedTextColor
accentColor selectedColor activeColor
textBackground viewBackground alternateTextBackground alternateViewBackground
tooltipBackground / popupBackground tooltipForeground / popupForeground tooltipTextColor / popupTextColor
common standard-widget candidates: selectionBackground selectionTextColor focusColor disabledBackground disabledTextColor separatorColor caretColor