Loading...
Searching...
No Matches
ml::ButtonStyle Struct Reference

Complete style descriptor for ButtonToggle. More...

#include <Malena/Traits/Style/ButtonStyle.h>

Inheritance diagram for ml::ButtonStyle:
[legend]

Public Types

enum class  IconAlign { ICON_ONLY , ICON_LEFT , ICON_RIGHT , ICON_ABOVE }

Public Member Functions

void addItem (const std::string &label, const std::string &key)
ButtonStyleapplyFrom (const Theme &t)
 Populate all fields from the global Theme token set.
void clearItems ()
sf::Color getActiveColor () const
sf::Color getActiveTextColor () const
float getAnimSpeed () const
sf::Color getBorderColor () const
float getBorderThickness () const
float getButtonRadius () const
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::Color getHoverColor () const
IconAlign getIconAlign () const
const sf::TexturegetIconOff () const
sf::IntRect getIconOffRect () const
const sf::TexturegetIconOn () const
sf::IntRect getIconOnRect () const
float getIconPadding () const
sf::Vector2f getIconSize () const
sf::Color getInactiveColor () const
const std::vector< std::pair< std::string, std::string > > & getItems () const
sf::Color getMutedColor () const
sf::Color getOffColor () const
std::string getOffLabel () const
sf::Color getOffTextColor () const
sf::Color getOnColor () const
std::string getOnLabel () const
sf::Color getOnTextColor () const
sf::Color getOutlineColor () const
float getOutlineThickness () const
float getPadding () const
float getRadius () const
sf::Vector2f getSize () const
sf::Color getTextColor () const
ButtonStyleoperator= (const ButtonSettings &s)
ButtonStyleoperator= (const ButtonTheme &t)
ButtonStyleoperator= (const ControlSettings &c)
ButtonStyleoperator= (const ControlTheme &c)
ButtonStyleoperator= (const GraphicTheme &g)
ButtonStyleoperator= (const ToggleSettings &t)
ButtonStyleoperator= (const ToggleTheme &t)
void setActiveColor (const sf::Color &c)
void setActiveTextColor (const sf::Color &c)
void setAnimSpeed (float s)
void setBorderColor (const sf::Color &c)
void setBorderThickness (float t)
void setButtonRadius (float r)
void setDisabledColor (const sf::Color &c)
void setDisabledTextColor (const sf::Color &c)
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 setIconAlign (IconAlign a)
void setIconOff (const sf::Texture *t)
void setIconOffRect (const sf::IntRect &r)
void setIconOn (const sf::Texture *t)
void setIconOnRect (const sf::IntRect &r)
void setIconPadding (float p)
void setIcons (const sf::Texture *on, const sf::Texture *off=nullptr)
void setIconSize (const sf::Vector2f &s)
void setInactiveColor (const sf::Color &c)
void setItems (std::vector< std::pair< std::string, std::string > > i)
void setLabels (const std::string &on, const std::string &off)
void setMutedColor (const sf::Color &c)
void setOffColor (const sf::Color &c)
void setOffLabel (const std::string &s)
void setOffTextColor (const sf::Color &c)
void setOnColor (const sf::Color &c)
void setOnLabel (const std::string &s)
void setOnTextColor (const sf::Color &c)
void setOutlineColor (const sf::Color &c)
void setOutlineThickness (float t)
void setPadding (float p)
void setRadius (float r)
void setSize (const sf::Vector2f &s)
void setTextColor (const sf::Color &c)

Public Attributes

sf::Color activeColor = sf::Color(100, 60, 200)
sf::Color activeTextColor = sf::Color::White
float animSpeed = 10.f
sf::Color borderColor = sf::Color(100, 100, 100)
float borderThickness = 1.5f
float buttonRadius = 8.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)
IconAlign iconAlign = IconAlign::ICON_ONLY
const sf::TextureiconOff = nullptr
sf::IntRect iconOffRect
const sf::TextureiconOn = nullptr
sf::IntRect iconOnRect
float iconPadding = 6.f
sf::Vector2f iconSize = {0.f, 0.f}
 {0,0} = native size
sf::Color inactiveColor = sf::Color(40, 40, 40)
std::vector< std::pair< std::string, std::string > > items
sf::Color mutedColor = sf::Color(120, 120, 120)
sf::Color offColor = sf::Color(40, 40, 40)
std::string offLabel = "OFF"
sf::Color offTextColor = sf::Color(180, 180, 180)
sf::Color onColor = sf::Color(100, 60, 200)
std::string onLabel = "ON"
sf::Color onTextColor = sf::Color::White
sf::Color outlineColor = sf::Color(100, 100, 100)
float outlineThickness = 1.5f
float padding = 8.f
float radius = 8.f
sf::Vector2f size = {100.f, 36.f}
sf::Color textColor = sf::Color::White

Detailed Description

Complete style descriptor for ButtonToggle.

Combines ButtonSettings and ButtonTheme.

See also
ButtonSettings, ButtonTheme, ButtonToggle

Definition at line 24 of file ButtonStyle.h.

Member Enumeration Documentation

◆ IconAlign

enum class ml::ButtonSettings::IconAlign
stronginherited
Enumerator
ICON_ONLY 
ICON_LEFT 
ICON_RIGHT 
ICON_ABOVE 

Definition at line 43 of file ButtonSettings.h.

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()

ButtonStyle & ml::ButtonStyle::applyFrom ( const Theme & t)
inlinevirtual

Populate all fields from the global Theme token set.

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

Reimplemented from ml::GraphicTheme.

Definition at line 47 of file ButtonStyle.h.

◆ clearItems()

void ml::ToggleSettings::clearItems ( )
inlineinherited

Definition at line 60 of file ToggleSettings.h.

◆ 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.

◆ getBorderColor()

sf::Color ml::ButtonTheme::getBorderColor ( ) const
inlinenodiscardinherited

Definition at line 78 of file ButtonTheme.h.

◆ getBorderThickness()

float ml::ButtonTheme::getBorderThickness ( ) const
inlinenodiscardinherited

Definition at line 79 of file ButtonTheme.h.

◆ getButtonRadius()

float ml::ButtonTheme::getButtonRadius ( ) const
inlinenodiscardinherited

Definition at line 80 of file ButtonTheme.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.

◆ getHoverColor()

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

Definition at line 72 of file ControlTheme.h.

◆ getIconAlign()

IconAlign ml::ButtonSettings::getIconAlign ( ) const
inlinenodiscardinherited

Definition at line 77 of file ButtonSettings.h.

◆ getIconOff()

const sf::Texture * ml::ButtonSettings::getIconOff ( ) const
inlinenodiscardinherited

Definition at line 73 of file ButtonSettings.h.

◆ getIconOffRect()

sf::IntRect ml::ButtonSettings::getIconOffRect ( ) const
inlinenodiscardinherited

Definition at line 76 of file ButtonSettings.h.

◆ getIconOn()

const sf::Texture * ml::ButtonSettings::getIconOn ( ) const
inlinenodiscardinherited

Definition at line 72 of file ButtonSettings.h.

◆ getIconOnRect()

sf::IntRect ml::ButtonSettings::getIconOnRect ( ) const
inlinenodiscardinherited

Definition at line 75 of file ButtonSettings.h.

◆ getIconPadding()

float ml::ButtonSettings::getIconPadding ( ) const
inlinenodiscardinherited

Definition at line 78 of file ButtonSettings.h.

◆ getIconSize()

sf::Vector2f ml::ButtonSettings::getIconSize ( ) const
inlinenodiscardinherited

Definition at line 74 of file ButtonSettings.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.

◆ getMutedColor()

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

Definition at line 78 of file ControlTheme.h.

◆ getOffColor()

sf::Color ml::ButtonTheme::getOffColor ( ) const
inlinenodiscardinherited

Definition at line 75 of file ButtonTheme.h.

◆ getOffLabel()

std::string ml::ButtonSettings::getOffLabel ( ) const
inlinenodiscardinherited

Definition at line 71 of file ButtonSettings.h.

◆ getOffTextColor()

sf::Color ml::ButtonTheme::getOffTextColor ( ) const
inlinenodiscardinherited

Definition at line 77 of file ButtonTheme.h.

◆ getOnColor()

sf::Color ml::ButtonTheme::getOnColor ( ) const
inlinenodiscardinherited

Definition at line 74 of file ButtonTheme.h.

◆ getOnLabel()

std::string ml::ButtonSettings::getOnLabel ( ) const
inlinenodiscardinherited

Definition at line 70 of file ButtonSettings.h.

◆ getOnTextColor()

sf::Color ml::ButtonTheme::getOnTextColor ( ) const
inlinenodiscardinherited

Definition at line 76 of file ButtonTheme.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.

◆ getRadius()

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

Definition at line 70 of file GraphicTheme.h.

◆ getSize()

sf::Vector2f ml::ButtonSettings::getSize ( ) const
inlinenodiscardinherited

Definition at line 69 of file ButtonSettings.h.

◆ getTextColor()

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

Definition at line 77 of file ControlTheme.h.

◆ operator=() [1/7]

ButtonStyle & ml::ButtonStyle::operator= ( const ButtonSettings & s)
inline

Definition at line 26 of file ButtonStyle.h.

◆ operator=() [2/7]

ButtonStyle & ml::ButtonStyle::operator= ( const ButtonTheme & t)
inline

Definition at line 29 of file ButtonStyle.h.

◆ operator=() [3/7]

ButtonStyle & ml::ButtonStyle::operator= ( const ControlSettings & c)
inline

Definition at line 44 of file ButtonStyle.h.

◆ operator=() [4/7]

ButtonStyle & ml::ButtonStyle::operator= ( const ControlTheme & c)
inline

Definition at line 35 of file ButtonStyle.h.

◆ operator=() [5/7]

ButtonStyle & ml::ButtonStyle::operator= ( const GraphicTheme & g)
inline

Definition at line 38 of file ButtonStyle.h.

◆ operator=() [6/7]

ButtonStyle & ml::ButtonStyle::operator= ( const ToggleSettings & t)
inline

Definition at line 41 of file ButtonStyle.h.

◆ operator=() [7/7]

ButtonStyle & ml::ButtonStyle::operator= ( const ToggleTheme & t)
inline

Definition at line 32 of file ButtonStyle.h.

◆ 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.

◆ setBorderColor()

void ml::ButtonTheme::setBorderColor ( const sf::Color & c)
inlineinherited

Definition at line 86 of file ButtonTheme.h.

◆ setBorderThickness()

void ml::ButtonTheme::setBorderThickness ( float t)
inlineinherited

Definition at line 87 of file ButtonTheme.h.

◆ setButtonRadius()

void ml::ButtonTheme::setButtonRadius ( float r)
inlineinherited

Definition at line 88 of file ButtonTheme.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.

◆ 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.

◆ setIconAlign()

void ml::ButtonSettings::setIconAlign ( IconAlign a)
inlineinherited

Definition at line 93 of file ButtonSettings.h.

◆ setIconOff()

void ml::ButtonSettings::setIconOff ( const sf::Texture * t)
inlineinherited

Definition at line 89 of file ButtonSettings.h.

◆ setIconOffRect()

void ml::ButtonSettings::setIconOffRect ( const sf::IntRect & r)
inlineinherited

Definition at line 92 of file ButtonSettings.h.

◆ setIconOn()

void ml::ButtonSettings::setIconOn ( const sf::Texture * t)
inlineinherited

Definition at line 88 of file ButtonSettings.h.

◆ setIconOnRect()

void ml::ButtonSettings::setIconOnRect ( const sf::IntRect & r)
inlineinherited

Definition at line 91 of file ButtonSettings.h.

◆ setIconPadding()

void ml::ButtonSettings::setIconPadding ( float p)
inlineinherited

Definition at line 94 of file ButtonSettings.h.

◆ setIcons()

void ml::ButtonSettings::setIcons ( const sf::Texture * on,
const sf::Texture * off = nullptr )
inlineinherited

Definition at line 85 of file ButtonSettings.h.

◆ setIconSize()

void ml::ButtonSettings::setIconSize ( const sf::Vector2f & s)
inlineinherited

Definition at line 90 of file ButtonSettings.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.

◆ setLabels()

void ml::ButtonSettings::setLabels ( const std::string & on,
const std::string & off )
inlineinherited

Definition at line 83 of file ButtonSettings.h.

◆ setMutedColor()

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

Definition at line 90 of file ControlTheme.h.

◆ setOffColor()

void ml::ButtonTheme::setOffColor ( const sf::Color & c)
inlineinherited

Definition at line 83 of file ButtonTheme.h.

◆ setOffLabel()

void ml::ButtonSettings::setOffLabel ( const std::string & s)
inlineinherited

Definition at line 82 of file ButtonSettings.h.

◆ setOffTextColor()

void ml::ButtonTheme::setOffTextColor ( const sf::Color & c)
inlineinherited

Definition at line 85 of file ButtonTheme.h.

◆ setOnColor()

void ml::ButtonTheme::setOnColor ( const sf::Color & c)
inlineinherited

Definition at line 82 of file ButtonTheme.h.

◆ setOnLabel()

void ml::ButtonSettings::setOnLabel ( const std::string & s)
inlineinherited

Definition at line 81 of file ButtonSettings.h.

◆ setOnTextColor()

void ml::ButtonTheme::setOnTextColor ( const sf::Color & c)
inlineinherited

Definition at line 84 of file ButtonTheme.h.

◆ 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.

◆ setRadius()

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

Definition at line 75 of file GraphicTheme.h.

◆ setSize()

void ml::ButtonSettings::setSize ( const sf::Vector2f & s)
inlineinherited

Definition at line 80 of file ButtonSettings.h.

◆ setTextColor()

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

Definition at line 89 of file ControlTheme.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.

◆ borderColor

sf::Color ml::ButtonTheme::borderColor = sf::Color(100, 100, 100)
inherited

Definition at line 33 of file ButtonTheme.h.

◆ borderThickness

float ml::ButtonTheme::borderThickness = 1.5f
inherited

Definition at line 34 of file ButtonTheme.h.

◆ buttonRadius

float ml::ButtonTheme::buttonRadius = 8.f
inherited

Definition at line 35 of file ButtonTheme.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.

◆ iconAlign

IconAlign ml::ButtonSettings::iconAlign = IconAlign::ICON_ONLY
inherited

Definition at line 44 of file ButtonSettings.h.

◆ iconOff

const sf::Texture* ml::ButtonSettings::iconOff = nullptr
inherited

Definition at line 38 of file ButtonSettings.h.

◆ iconOffRect

sf::IntRect ml::ButtonSettings::iconOffRect
inherited

Definition at line 41 of file ButtonSettings.h.

◆ iconOn

const sf::Texture* ml::ButtonSettings::iconOn = nullptr
inherited

Definition at line 37 of file ButtonSettings.h.

◆ iconOnRect

sf::IntRect ml::ButtonSettings::iconOnRect
inherited

Definition at line 40 of file ButtonSettings.h.

◆ iconPadding

float ml::ButtonSettings::iconPadding = 6.f
inherited

Definition at line 45 of file ButtonSettings.h.

◆ iconSize

sf::Vector2f ml::ButtonSettings::iconSize = {0.f, 0.f}
inherited

{0,0} = native size

Definition at line 39 of file ButtonSettings.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.

◆ mutedColor

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

Definition at line 36 of file ControlTheme.h.

◆ offColor

sf::Color ml::ButtonTheme::offColor = sf::Color(40, 40, 40)
inherited

Definition at line 30 of file ButtonTheme.h.

◆ offLabel

std::string ml::ButtonSettings::offLabel = "OFF"
inherited

Definition at line 34 of file ButtonSettings.h.

◆ offTextColor

sf::Color ml::ButtonTheme::offTextColor = sf::Color(180, 180, 180)
inherited

Definition at line 32 of file ButtonTheme.h.

◆ onColor

sf::Color ml::ButtonTheme::onColor = sf::Color(100, 60, 200)
inherited

Definition at line 29 of file ButtonTheme.h.

◆ onLabel

std::string ml::ButtonSettings::onLabel = "ON"
inherited

Definition at line 33 of file ButtonSettings.h.

◆ onTextColor

sf::Color ml::ButtonTheme::onTextColor = sf::Color::White
inherited

Definition at line 31 of file ButtonTheme.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.

◆ radius

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

Definition at line 46 of file GraphicTheme.h.

◆ size

sf::Vector2f ml::ButtonSettings::size = {100.f, 36.f}
inherited

Definition at line 30 of file ButtonSettings.h.

◆ textColor

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

Definition at line 35 of file ControlTheme.h.


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