Loading...
Searching...
No Matches
ml::PillToggle Class Reference

iOS-style oval pill switch with animated sliding thumb. More...

#include <Malena/Graphics/Controls/PillToggle.h>

Inheritance diagram for ml::PillToggle:
[legend]

Public Types

using Flag = PillToggleManifest::Flag
using State = PillToggleManifest::State

Public Member Functions

 PillToggle ()
void addItem (const std::string &label, const std::string &key)
PillThemeapplyFrom (const Theme &t) override
 Populate all fields from the global Theme token set.
template<typename S>
void applySettings (const S &s)
 Apply layout/behaviour settings. Theme layer is unaffected.
template<typename St>
void applyStyle (const St &s)
 Apply settings and theme in one call.
template<typename T>
void applyTheme (const T &t)
 Apply color/font theme. Settings layer is unaffected.
void clearItems ()
sf::Color getActiveColor () const
sf::Color getActiveTextColor () const
float getAnimSpeed () const
unsigned int getCharacterSize () const
 Alias for getFontSize() — matches SFML naming convention.
sf::Color getDisabledColor () const
sf::Color getDisabledTextColor () const
sf::Color getErrorColor () const
sf::Color getFillColor () const
sf::Color getFocusColor () const
const sf::FontgetFont () const
unsigned int getFontSize () const
unsigned int getFontSizeSmall () const
sf::FloatRect getGlobalBounds () const override
sf::Color getHoverColor () const
sf::Color getInactiveColor () const
const std::vector< std::pair< std::string, std::string > > & getItems () const
float getLabelOffset () const
std::string getLeftLabel () const
sf::Color getMutedColor () const
sf::Color getOutlineColor () const
float getOutlineThickness () const
float getPadding () const
sf::Color getPillLabelActiveColor () const
sf::Color getPillLabelInactiveColor () const
std::string getPillOffLabel () const
std::string getPillOnLabel () const
sf::Vector2f getPosition () const override
float getRadius () const
std::string getRightLabel () const
sf::Color getTextColor () const
sf::Color getThumbColor () const
sf::Color getThumbDisabledColor () const
float getThumbMargin () const
sf::Color getTrackOffColor () const
sf::Color getTrackOnColor () const
sf::Vector2f getTrackSize () const
bool isEnabled () const
bool isOn () const
bool isSettingsLocked () const
 Return true if applySettings() is currently blocked.
bool isThemeLocked () const
 Return true if this component ignores theme changes.
void lockSettings ()
 Prevent applySettings() from taking effect.
void lockTheme ()
 Prevent automatic re-styling when the global theme changes.
void onToggled (std::function< void(bool)> callback)
void setActiveColor (const sf::Color &c)
void setActiveTextColor (const sf::Color &c)
void setAnimSpeed (float s)
void setCharacterSize (unsigned int size)
 Alias for setFontSize() — matches SFML naming convention.
void setDisabledColor (const sf::Color &c)
void setDisabledTextColor (const sf::Color &c)
void setEnabled (bool enabled)
void setErrorColor (const sf::Color &c)
void setFillColor (const sf::Color &c)
void setFocusColor (const sf::Color &c)
void setFont (const sf::Font &&)=delete
void setFont (const sf::Font &f)
void setFontSize (unsigned int s)
void setFontSizeSmall (unsigned int s)
void setHoverColor (const sf::Color &c)
void setInactiveColor (const sf::Color &c)
void setItems (std::vector< std::pair< std::string, std::string > > i)
void setLabelOffset (float o)
void setLeftLabel (const std::string &s)
void setMutedColor (const sf::Color &c)
void setOn (bool on)
void setOutlineColor (const sf::Color &c)
void setOutlineThickness (float t)
void setPadding (float p)
void setPillLabelActiveColor (const sf::Color &c)
void setPillLabelInactiveColor (const sf::Color &c)
void setPillLabels (const std::string &off, const std::string &on)
void setPillOffLabel (const std::string &s)
void setPillOnLabel (const std::string &s)
void setPosition (const sf::Vector2f &position) override
void setRadius (float r)
void setRightLabel (const std::string &s)
void setTextColor (const sf::Color &c)
void setThumbColor (const sf::Color &c)
void setThumbDisabledColor (const sf::Color &c)
void setThumbMargin (float m)
void setTrackOffColor (const sf::Color &c)
void setTrackOnColor (const sf::Color &c)
void setTrackSize (const sf::Vector2f &s)
void toggle ()
void unlockSettings ()
 Allow applySettings() to take effect again.
void unlockTheme ()
 Resume reacting to global theme changes.

Public Attributes

sf::Color activeColor = sf::Color(100, 60, 200)
sf::Color activeTextColor = sf::Color::White
float animSpeed = 10.f
sf::Color disabledColor = sf::Color(60, 60, 60)
sf::Color disabledTextColor = sf::Color(120, 120, 120)
sf::Color errorColor = sf::Color(220, 70, 70)
sf::Color fillColor = sf::Color(40, 40, 40)
sf::Color focusColor = sf::Color(100, 60, 200)
const sf::Fontfont = &FontManager<>::getDefault()
unsigned int fontSize = 14
unsigned int fontSizeSmall = 11
sf::Color hoverColor = sf::Color(70, 130, 230)
sf::Color inactiveColor = sf::Color(40, 40, 40)
std::vector< std::pair< std::string, std::string > > items
float labelOffset = 8.f
std::string leftLabel
sf::Color mutedColor = sf::Color(120, 120, 120)
sf::Color outlineColor = sf::Color(100, 100, 100)
float outlineThickness = 1.5f
float padding = 8.f
sf::Color pillLabelActiveColor = sf::Color::White
sf::Color pillLabelInactiveColor = sf::Color(200, 200, 200, 180)
std::string pillOffLabel
std::string pillOnLabel
float radius = 8.f
std::string rightLabel
sf::Color textColor = sf::Color::White
sf::Color thumbColor = sf::Color::White
sf::Color thumbDisabledColor = sf::Color(220, 220, 220)
float thumbMargin = 2.f
sf::Color trackOffColor = sf::Color(120, 120, 120)
sf::Color trackOnColor = sf::Color(100, 60, 200)
sf::Vector2f trackSize = {44.f, 24.f}

Protected Member Functions

void draw (sf::RenderTarget &target, sf::RenderStates states) const override
void onThemeApplied (const Theme &theme) override
 Called by ThemeManager when the active theme changes.

Detailed Description

iOS-style oval pill switch with animated sliding thumb.

Inherits PillSettings (layout/behaviour) and PillTheme (colors) as first-class members. The active theme is applied automatically via Themeable — only the PillTheme layer is updated on theme change, leaving geometry and labels untouched.

Defaults — reads active theme automatically

t.setRightLabel("Dark mode");
t.setPosition({200.f, 100.f});
t.onToggled([](bool on){ });
addComponent(t);
iOS-style oval pill switch with animated sliding thumb.
Definition PillToggle.h:70
void setPosition(const sf::Vector2f &position) override
void onToggled(std::function< void(bool)> callback)
void setRightLabel(const std::string &s)

Apply settings only (geometry/labels)

t.applySettings(MyPillSettings{});
void applySettings(const S &s)
Apply layout/behaviour settings. Theme layer is unaffected.
Definition PillToggle.h:100

Apply theme only (colors/font)

t.applyTheme(MyPillTheme{});
void applyTheme(const T &t)
Apply color/font theme. Settings layer is unaffected.
Definition PillToggle.h:110

Apply both at once

t.applyStyle(MyPillStyle{});
void applyStyle(const St &s)
Apply settings and theme in one call.
Definition PillToggle.h:120
See also
PillSettings, PillTheme, PillStyle, Themeable, ToggleGroup

Definition at line 66 of file PillToggle.h.

Member Typedef Documentation

◆ Flag

Definition at line 72 of file PillToggle.h.

◆ State

Definition at line 73 of file PillToggle.h.

Constructor & Destructor Documentation

◆ PillToggle()

ml::PillToggle::PillToggle ( )
explicit

Member Function Documentation

◆ addItem()

void ml::ToggleSettings::addItem ( const std::string & label,
const std::string & key )
inlineinherited

Definition at line 57 of file ToggleSettings.h.

◆ applyFrom()

PillTheme & ml::PillTheme::applyFrom ( const Theme & t)
inlineoverridevirtualinherited

Populate all fields from the global Theme token set.

Subclasses call GraphicTheme::applyFrom(t) first, then apply their own token mappings.

Reimplemented from ml::ControlTheme.

Definition at line 58 of file PillTheme.h.

◆ applySettings()

template<typename S>
void ml::PillToggle::applySettings ( const S & s)
inline

Apply layout/behaviour settings. Theme layer is unaffected.

Definition at line 100 of file PillToggle.h.

◆ applyStyle()

template<typename St>
void ml::PillToggle::applyStyle ( const St & s)
inline

Apply settings and theme in one call.

Definition at line 120 of file PillToggle.h.

◆ applyTheme()

template<typename T>
void ml::PillToggle::applyTheme ( const T & t)
inline

Apply color/font theme. Settings layer is unaffected.

Definition at line 110 of file PillToggle.h.

◆ clearItems()

void ml::ToggleSettings::clearItems ( )
inlineinherited

Definition at line 60 of file ToggleSettings.h.

◆ draw()

void ml::PillToggle::draw ( sf::RenderTarget & target,
sf::RenderStates states ) const
overrideprotected

◆ getActiveColor()

sf::Color ml::ToggleTheme::getActiveColor ( ) const
inlinenodiscardinherited

Definition at line 63 of file ToggleTheme.h.

◆ getActiveTextColor()

sf::Color ml::ToggleTheme::getActiveTextColor ( ) const
inlinenodiscardinherited

Definition at line 65 of file ToggleTheme.h.

◆ getAnimSpeed()

float ml::ToggleSettings::getAnimSpeed ( ) const
inlinenodiscardinherited

Definition at line 48 of file ToggleSettings.h.

◆ getCharacterSize()

unsigned int ml::PillToggle::getCharacterSize ( ) const
inlinenodiscard

Alias for getFontSize() — matches SFML naming convention.

Definition at line 144 of file PillToggle.h.

◆ getDisabledColor()

sf::Color ml::ControlTheme::getDisabledColor ( ) const
inlinenodiscardinherited

Definition at line 75 of file ControlTheme.h.

◆ getDisabledTextColor()

sf::Color ml::ControlTheme::getDisabledTextColor ( ) const
inlinenodiscardinherited

Definition at line 76 of file ControlTheme.h.

◆ getErrorColor()

sf::Color ml::ControlTheme::getErrorColor ( ) const
inlinenodiscardinherited

Definition at line 74 of file ControlTheme.h.

◆ getFillColor()

sf::Color ml::GraphicTheme::getFillColor ( ) const
inlinenodiscardinherited

Definition at line 67 of file GraphicTheme.h.

◆ getFocusColor()

sf::Color ml::ControlTheme::getFocusColor ( ) const
inlinenodiscardinherited

Definition at line 73 of file ControlTheme.h.

◆ getFont()

const sf::Font * ml::ControlTheme::getFont ( ) const
inlinenodiscardinherited

Definition at line 80 of file ControlTheme.h.

◆ getFontSize()

unsigned int ml::ControlTheme::getFontSize ( ) const
inlinenodiscardinherited

Definition at line 81 of file ControlTheme.h.

◆ getFontSizeSmall()

unsigned int ml::ControlTheme::getFontSizeSmall ( ) const
inlinenodiscardinherited

Definition at line 82 of file ControlTheme.h.

◆ getGlobalBounds()

sf::FloatRect ml::PillToggle::getGlobalBounds ( ) const
override

◆ getHoverColor()

sf::Color ml::ControlTheme::getHoverColor ( ) const
inlinenodiscardinherited

Definition at line 72 of file ControlTheme.h.

◆ getInactiveColor()

sf::Color ml::ToggleTheme::getInactiveColor ( ) const
inlinenodiscardinherited

Definition at line 64 of file ToggleTheme.h.

◆ getItems()

const std::vector< std::pair< std::string, std::string > > & ml::ToggleSettings::getItems ( ) const
inlinenodiscardinherited

Definition at line 52 of file ToggleSettings.h.

◆ getLabelOffset()

float ml::PillSettings::getLabelOffset ( ) const
inlinenodiscardinherited

Definition at line 64 of file PillSettings.h.

◆ getLeftLabel()

std::string ml::PillSettings::getLeftLabel ( ) const
inlinenodiscardinherited

Definition at line 67 of file PillSettings.h.

◆ getMutedColor()

sf::Color ml::ControlTheme::getMutedColor ( ) const
inlinenodiscardinherited

Definition at line 78 of file ControlTheme.h.

◆ getOutlineColor()

sf::Color ml::GraphicTheme::getOutlineColor ( ) const
inlinenodiscardinherited

Definition at line 68 of file GraphicTheme.h.

◆ getOutlineThickness()

float ml::GraphicTheme::getOutlineThickness ( ) const
inlinenodiscardinherited

Definition at line 69 of file GraphicTheme.h.

◆ getPadding()

float ml::ControlTheme::getPadding ( ) const
inlinenodiscardinherited

Definition at line 79 of file ControlTheme.h.

◆ getPillLabelActiveColor()

sf::Color ml::PillTheme::getPillLabelActiveColor ( ) const
inlinenodiscardinherited

Definition at line 97 of file PillTheme.h.

◆ getPillLabelInactiveColor()

sf::Color ml::PillTheme::getPillLabelInactiveColor ( ) const
inlinenodiscardinherited

Definition at line 98 of file PillTheme.h.

◆ getPillOffLabel()

std::string ml::PillSettings::getPillOffLabel ( ) const
inlinenodiscardinherited

Definition at line 65 of file PillSettings.h.

◆ getPillOnLabel()

std::string ml::PillSettings::getPillOnLabel ( ) const
inlinenodiscardinherited

Definition at line 66 of file PillSettings.h.

◆ getPosition()

sf::Vector2f ml::PillToggle::getPosition ( ) const
override

◆ getRadius()

float ml::GraphicTheme::getRadius ( ) const
inlinenodiscardinherited

Definition at line 70 of file GraphicTheme.h.

◆ getRightLabel()

std::string ml::PillSettings::getRightLabel ( ) const
inlinenodiscardinherited

Definition at line 68 of file PillSettings.h.

◆ getTextColor()

sf::Color ml::ControlTheme::getTextColor ( ) const
inlinenodiscardinherited

Definition at line 77 of file ControlTheme.h.

◆ getThumbColor()

sf::Color ml::PillTheme::getThumbColor ( ) const
inlinenodiscardinherited

Definition at line 95 of file PillTheme.h.

◆ getThumbDisabledColor()

sf::Color ml::PillTheme::getThumbDisabledColor ( ) const
inlinenodiscardinherited

Definition at line 96 of file PillTheme.h.

◆ getThumbMargin()

float ml::PillSettings::getThumbMargin ( ) const
inlinenodiscardinherited

Definition at line 63 of file PillSettings.h.

◆ getTrackOffColor()

sf::Color ml::PillTheme::getTrackOffColor ( ) const
inlinenodiscardinherited

Definition at line 94 of file PillTheme.h.

◆ getTrackOnColor()

sf::Color ml::PillTheme::getTrackOnColor ( ) const
inlinenodiscardinherited

Definition at line 93 of file PillTheme.h.

◆ getTrackSize()

sf::Vector2f ml::PillSettings::getTrackSize ( ) const
inlinenodiscardinherited

Definition at line 62 of file PillSettings.h.

◆ isEnabled()

bool ml::PillToggle::isEnabled ( ) const
nodiscard

◆ isOn()

bool ml::PillToggle::isOn ( ) const
nodiscard

◆ isSettingsLocked()

bool ml::Themeable::isSettingsLocked ( ) const
inlinenodiscardinherited

Return true if applySettings() is currently blocked.

Definition at line 115 of file Themeable.h.

◆ isThemeLocked()

bool ml::Themeable::isThemeLocked ( ) const
inlinenodiscardinherited

Return true if this component ignores theme changes.

Definition at line 97 of file Themeable.h.

◆ lockSettings()

void ml::Themeable::lockSettings ( )
inlineinherited

Prevent applySettings() from taking effect.

Explicit individual setter calls still work normally. Only blocks the batch applySettings() path.

Definition at line 107 of file Themeable.h.

◆ lockTheme()

void ml::Themeable::lockTheme ( )
inlineinherited

Prevent automatic re-styling when the global theme changes.

The component keeps its current visual state. Explicit individual setter calls still work normally.

Definition at line 85 of file Themeable.h.

◆ onThemeApplied()

void ml::PillToggle::onThemeApplied ( const Theme & theme)
overrideprotectedvirtual

Called by ThemeManager when the active theme changes.

Override in your component to re-style from the new theme. Always check isThemeLocked() first:

void onThemeApplied(const Theme& theme) override
{
if (isThemeLocked()) return;
MySettings::applyTheme(theme);
syncFromSettings();
}
void onThemeApplied(const Theme &theme) override
Called by ThemeManager when the active theme changes.
bool isThemeLocked() const
Return true if this component ignores theme changes.
Definition Themeable.h:97
Universal design token set applied across all Themeable components.
Definition Theme.h:70
Parameters
themeThe newly active theme.

Implements ml::Themeable.

◆ onToggled()

void ml::PillToggle::onToggled ( std::function< void(bool)> callback)

◆ setActiveColor()

void ml::ToggleTheme::setActiveColor ( const sf::Color & c)
inlineinherited

Definition at line 67 of file ToggleTheme.h.

◆ setActiveTextColor()

void ml::ToggleTheme::setActiveTextColor ( const sf::Color & c)
inlineinherited

Definition at line 69 of file ToggleTheme.h.

◆ setAnimSpeed()

void ml::ToggleSettings::setAnimSpeed ( float s)
inlineinherited

Definition at line 49 of file ToggleSettings.h.

◆ setCharacterSize()

void ml::PillToggle::setCharacterSize ( unsigned int size)
inline

Alias for setFontSize() — matches SFML naming convention.

Definition at line 141 of file PillToggle.h.

◆ setDisabledColor()

void ml::ControlTheme::setDisabledColor ( const sf::Color & c)
inlineinherited

Definition at line 87 of file ControlTheme.h.

◆ setDisabledTextColor()

void ml::ControlTheme::setDisabledTextColor ( const sf::Color & c)
inlineinherited

Definition at line 88 of file ControlTheme.h.

◆ setEnabled()

void ml::PillToggle::setEnabled ( bool enabled)

◆ setErrorColor()

void ml::ControlTheme::setErrorColor ( const sf::Color & c)
inlineinherited

Definition at line 86 of file ControlTheme.h.

◆ setFillColor()

void ml::GraphicTheme::setFillColor ( const sf::Color & c)
inlineinherited

Definition at line 72 of file GraphicTheme.h.

◆ setFocusColor()

void ml::ControlTheme::setFocusColor ( const sf::Color & c)
inlineinherited

Definition at line 85 of file ControlTheme.h.

◆ setFont() [1/2]

void ml::ControlTheme::setFont ( const sf::Font && )
deleteinherited

◆ setFont() [2/2]

void ml::ControlTheme::setFont ( const sf::Font & f)
inlineinherited

Definition at line 92 of file ControlTheme.h.

◆ setFontSize()

void ml::ControlTheme::setFontSize ( unsigned int s)
inlineinherited

Definition at line 94 of file ControlTheme.h.

◆ setFontSizeSmall()

void ml::ControlTheme::setFontSizeSmall ( unsigned int s)
inlineinherited

Definition at line 95 of file ControlTheme.h.

◆ setHoverColor()

void ml::ControlTheme::setHoverColor ( const sf::Color & c)
inlineinherited

Definition at line 84 of file ControlTheme.h.

◆ setInactiveColor()

void ml::ToggleTheme::setInactiveColor ( const sf::Color & c)
inlineinherited

Definition at line 68 of file ToggleTheme.h.

◆ setItems()

void ml::ToggleSettings::setItems ( std::vector< std::pair< std::string, std::string > > i)
inlineinherited

Definition at line 54 of file ToggleSettings.h.

◆ setLabelOffset()

void ml::PillSettings::setLabelOffset ( float o)
inlineinherited

Definition at line 72 of file PillSettings.h.

◆ setLeftLabel()

void ml::PillSettings::setLeftLabel ( const std::string & s)
inlineinherited

Definition at line 77 of file PillSettings.h.

◆ setMutedColor()

void ml::ControlTheme::setMutedColor ( const sf::Color & c)
inlineinherited

Definition at line 90 of file ControlTheme.h.

◆ setOn()

void ml::PillToggle::setOn ( bool on)

◆ setOutlineColor()

void ml::GraphicTheme::setOutlineColor ( const sf::Color & c)
inlineinherited

Definition at line 73 of file GraphicTheme.h.

◆ setOutlineThickness()

void ml::GraphicTheme::setOutlineThickness ( float t)
inlineinherited

Definition at line 74 of file GraphicTheme.h.

◆ setPadding()

void ml::ControlTheme::setPadding ( float p)
inlineinherited

Definition at line 91 of file ControlTheme.h.

◆ setPillLabelActiveColor()

void ml::PillTheme::setPillLabelActiveColor ( const sf::Color & c)
inlineinherited

Definition at line 104 of file PillTheme.h.

◆ setPillLabelInactiveColor()

void ml::PillTheme::setPillLabelInactiveColor ( const sf::Color & c)
inlineinherited

Definition at line 105 of file PillTheme.h.

◆ setPillLabels()

void ml::PillSettings::setPillLabels ( const std::string & off,
const std::string & on )
inlineinherited

Definition at line 75 of file PillSettings.h.

◆ setPillOffLabel()

void ml::PillSettings::setPillOffLabel ( const std::string & s)
inlineinherited

Definition at line 73 of file PillSettings.h.

◆ setPillOnLabel()

void ml::PillSettings::setPillOnLabel ( const std::string & s)
inlineinherited

Definition at line 74 of file PillSettings.h.

◆ setPosition()

void ml::PillToggle::setPosition ( const sf::Vector2f & position)
override

◆ setRadius()

void ml::GraphicTheme::setRadius ( float r)
inlineinherited

Definition at line 75 of file GraphicTheme.h.

◆ setRightLabel()

void ml::PillSettings::setRightLabel ( const std::string & s)
inlineinherited

Definition at line 78 of file PillSettings.h.

◆ setTextColor()

void ml::ControlTheme::setTextColor ( const sf::Color & c)
inlineinherited

Definition at line 89 of file ControlTheme.h.

◆ setThumbColor()

void ml::PillTheme::setThumbColor ( const sf::Color & c)
inlineinherited

Definition at line 102 of file PillTheme.h.

◆ setThumbDisabledColor()

void ml::PillTheme::setThumbDisabledColor ( const sf::Color & c)
inlineinherited

Definition at line 103 of file PillTheme.h.

◆ setThumbMargin()

void ml::PillSettings::setThumbMargin ( float m)
inlineinherited

Definition at line 71 of file PillSettings.h.

◆ setTrackOffColor()

void ml::PillTheme::setTrackOffColor ( const sf::Color & c)
inlineinherited

Definition at line 101 of file PillTheme.h.

◆ setTrackOnColor()

void ml::PillTheme::setTrackOnColor ( const sf::Color & c)
inlineinherited

Definition at line 100 of file PillTheme.h.

◆ setTrackSize()

void ml::PillSettings::setTrackSize ( const sf::Vector2f & s)
inlineinherited

Definition at line 70 of file PillSettings.h.

◆ toggle()

void ml::PillToggle::toggle ( )

◆ unlockSettings()

void ml::Themeable::unlockSettings ( )
inlineinherited

Allow applySettings() to take effect again.

Definition at line 112 of file Themeable.h.

◆ unlockTheme()

void ml::Themeable::unlockTheme ( )
inlineinherited

Resume reacting to global theme changes.

Does NOT immediately re-apply the current theme — call ThemeManager::get() and pass it to onThemeApplied() manually if you want to re-sync immediately after unlocking.

Definition at line 94 of file Themeable.h.

Member Data Documentation

◆ activeColor

sf::Color ml::ToggleTheme::activeColor = sf::Color(100, 60, 200)
inherited

Definition at line 32 of file ToggleTheme.h.

◆ activeTextColor

sf::Color ml::ToggleTheme::activeTextColor = sf::Color::White
inherited

Definition at line 34 of file ToggleTheme.h.

◆ animSpeed

float ml::ToggleSettings::animSpeed = 10.f
inherited

Definition at line 29 of file ToggleSettings.h.

◆ disabledColor

sf::Color ml::ControlTheme::disabledColor = sf::Color(60, 60, 60)
inherited

Definition at line 33 of file ControlTheme.h.

◆ disabledTextColor

sf::Color ml::ControlTheme::disabledTextColor = sf::Color(120, 120, 120)
inherited

Definition at line 34 of file ControlTheme.h.

◆ errorColor

sf::Color ml::ControlTheme::errorColor = sf::Color(220, 70, 70)
inherited

Definition at line 32 of file ControlTheme.h.

◆ fillColor

sf::Color ml::GraphicTheme::fillColor = sf::Color(40, 40, 40)
inherited

Definition at line 43 of file GraphicTheme.h.

◆ focusColor

sf::Color ml::ControlTheme::focusColor = sf::Color(100, 60, 200)
inherited

Definition at line 31 of file ControlTheme.h.

◆ font

const sf::Font* ml::ControlTheme::font = &FontManager<>::getDefault()
inherited

Definition at line 39 of file ControlTheme.h.

◆ fontSize

unsigned int ml::ControlTheme::fontSize = 14
inherited

Definition at line 40 of file ControlTheme.h.

◆ fontSizeSmall

unsigned int ml::ControlTheme::fontSizeSmall = 11
inherited

Definition at line 41 of file ControlTheme.h.

◆ hoverColor

sf::Color ml::ControlTheme::hoverColor = sf::Color(70, 130, 230)
inherited

Definition at line 30 of file ControlTheme.h.

◆ inactiveColor

sf::Color ml::ToggleTheme::inactiveColor = sf::Color(40, 40, 40)
inherited

Definition at line 33 of file ToggleTheme.h.

◆ items

std::vector<std::pair<std::string, std::string> > ml::ToggleSettings::items
inherited

Definition at line 30 of file ToggleSettings.h.

◆ labelOffset

float ml::PillSettings::labelOffset = 8.f
inherited

Definition at line 32 of file PillSettings.h.

◆ leftLabel

std::string ml::PillSettings::leftLabel
inherited

Definition at line 37 of file PillSettings.h.

◆ mutedColor

sf::Color ml::ControlTheme::mutedColor = sf::Color(120, 120, 120)
inherited

Definition at line 36 of file ControlTheme.h.

◆ outlineColor

sf::Color ml::GraphicTheme::outlineColor = sf::Color(100, 100, 100)
inherited

Definition at line 44 of file GraphicTheme.h.

◆ outlineThickness

float ml::GraphicTheme::outlineThickness = 1.5f
inherited

Definition at line 45 of file GraphicTheme.h.

◆ padding

float ml::ControlTheme::padding = 8.f
inherited

Definition at line 37 of file ControlTheme.h.

◆ pillLabelActiveColor

sf::Color ml::PillTheme::pillLabelActiveColor = sf::Color::White
inherited

Definition at line 53 of file PillTheme.h.

◆ pillLabelInactiveColor

sf::Color ml::PillTheme::pillLabelInactiveColor = sf::Color(200, 200, 200, 180)
inherited

Definition at line 54 of file PillTheme.h.

◆ pillOffLabel

std::string ml::PillSettings::pillOffLabel
inherited

Definition at line 35 of file PillSettings.h.

◆ pillOnLabel

std::string ml::PillSettings::pillOnLabel
inherited

Definition at line 36 of file PillSettings.h.

◆ radius

float ml::GraphicTheme::radius = 8.f
inherited

Definition at line 46 of file GraphicTheme.h.

◆ rightLabel

std::string ml::PillSettings::rightLabel
inherited

Definition at line 38 of file PillSettings.h.

◆ textColor

sf::Color ml::ControlTheme::textColor = sf::Color::White
inherited

Definition at line 35 of file ControlTheme.h.

◆ thumbColor

sf::Color ml::PillTheme::thumbColor = sf::Color::White
inherited

Definition at line 51 of file PillTheme.h.

◆ thumbDisabledColor

sf::Color ml::PillTheme::thumbDisabledColor = sf::Color(220, 220, 220)
inherited

Definition at line 52 of file PillTheme.h.

◆ thumbMargin

float ml::PillSettings::thumbMargin = 2.f
inherited

Definition at line 31 of file PillSettings.h.

◆ trackOffColor

sf::Color ml::PillTheme::trackOffColor = sf::Color(120, 120, 120)
inherited

Definition at line 50 of file PillTheme.h.

◆ trackOnColor

sf::Color ml::PillTheme::trackOnColor = sf::Color(100, 60, 200)
inherited

Definition at line 49 of file PillTheme.h.

◆ trackSize

sf::Vector2f ml::PillSettings::trackSize = {44.f, 24.f}
inherited

Definition at line 30 of file PillSettings.h.


The documentation for this class was generated from the following file: