5#ifndef MALENA_THEMEABLE_H
6#define MALENA_THEMEABLE_H
139 bool _themeLocked =
false;
140 bool _settingsLocked =
false;
static void subscribe(Themeable *component)
Subscribe a component to theme change notifications.
static void unsubscribe(Themeable *component)
Unsubscribe a component from theme change notifications.
bool isSettingsLocked() const
Return true if applySettings() is currently blocked.
void unlockSettings()
Allow applySettings() to take effect again.
bool isThemeLocked() const
Return true if this component ignores theme changes.
virtual void onThemeApplied(const Theme &theme)=0
Called by ThemeManager when the active theme changes.
void lockSettings()
Prevent applySettings() from taking effect.
void lockTheme()
Prevent automatic re-styling when the global theme changes.
void unlockTheme()
Resume reacting to global theme changes.
Empty marker base class for all Malena traits.
Universal design token set applied across all Themeable components.