Audacity 3.2.0
|
#include <ThemedWrappers.h>
Public Member Functions | |
template<typename... Args> | |
ThemedWindowWrapper (Args &&... args) | |
void | SetBackgroundColorIndex (int index) |
void | SetForegroundColorIndex (int index) |
void | SetTranslatableLabel (TranslatableString label) |
void | UpdatePrefs () override |
Protected Member Functions | |
void | OnThemeChange (ThemeChangeMessage message) |
Private Types | |
using | PrefsListenerBase = std::conditional_t< std::is_base_of_v< PrefsListener, WindowBase >, WindowBase, PrefsListener > |
Private Attributes | |
Observer::Subscription | mThemeChangeSubscription |
std::optional< TranslatableString > | mTranslatableLabel |
int | mForegroundColorIndex { -1 } |
int | mBackgroundColorIndex { -1 } |
Definition at line 31 of file ThemedWrappers.h.
|
private |
Definition at line 40 of file ThemedWrappers.h.
|
inline |
Definition at line 44 of file ThemedWrappers.h.
References ThemedWindowWrapper< WindowBase >::mThemeChangeSubscription, ThemedWindowWrapper< WindowBase >::OnThemeChange(), Observer::Publisher< Message, NotifyAll >::Subscribe(), and theTheme.
|
inlineprotected |
Definition at line 78 of file ThemedWrappers.h.
References ThemeChangeMessage::appearance, ThemeBase::Colour(), ThemedWindowWrapper< WindowBase >::mBackgroundColorIndex, ThemedWindowWrapper< WindowBase >::mForegroundColorIndex, and theTheme.
Referenced by ThemedWindowWrapper< WindowBase >::ThemedWindowWrapper().
|
inline |
Definition at line 50 of file ThemedWrappers.h.
References ThemeBase::Colour(), ThemedWindowWrapper< WindowBase >::mBackgroundColorIndex, and theTheme.
|
inline |
Definition at line 57 of file ThemedWrappers.h.
References ThemeBase::Colour(), ThemedWindowWrapper< WindowBase >::mForegroundColorIndex, and theTheme.
|
inline |
Definition at line 64 of file ThemedWrappers.h.
References label, and ThemedWindowWrapper< WindowBase >::mTranslatableLabel.
|
inlineoverride |
Definition at line 70 of file ThemedWrappers.h.
References ThemedWindowWrapper< WindowBase >::mTranslatableLabel.
|
private |
Definition at line 38 of file ThemedWrappers.h.
Referenced by ThemedWindowWrapper< WindowBase >::OnThemeChange(), and ThemedWindowWrapper< WindowBase >::SetBackgroundColorIndex().
|
private |
Definition at line 37 of file ThemedWrappers.h.
Referenced by ThemedWindowWrapper< WindowBase >::OnThemeChange(), and ThemedWindowWrapper< WindowBase >::SetForegroundColorIndex().
|
private |
Definition at line 35 of file ThemedWrappers.h.
Referenced by ThemedWindowWrapper< WindowBase >::ThemedWindowWrapper().
|
private |
Definition at line 36 of file ThemedWrappers.h.
Referenced by ThemedWindowWrapper< WindowBase >::SetTranslatableLabel(), and ThemedWindowWrapper< WindowBase >::UpdatePrefs().