Theme tokens for the ButtonToggle (rectangular toggle button).
More...
#include <Malena/Traits/Theme/ButtonTheme.h>
|
| sf::Color | activeColor = sf::Color(100, 60, 200) |
| sf::Color | activeTextColor = sf::Color::White |
| 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::Font * | font = &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) |
| sf::Color | mutedColor = sf::Color(120, 120, 120) |
| sf::Color | offColor = sf::Color(40, 40, 40) |
| sf::Color | offTextColor = sf::Color(180, 180, 180) |
| sf::Color | onColor = sf::Color(100, 60, 200) |
| 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::Color | textColor = sf::Color::White |
Theme tokens for the ButtonToggle (rectangular toggle button).
Extends ToggleTheme with color tokens for the button style — the on/off background colors, their corresponding text colors, and the border color.
- See also
- ToggleTheme, ButtonSettings, ButtonStyle, ButtonToggle
Definition at line 27 of file ButtonTheme.h.
◆ applyFrom()
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 39 of file ButtonTheme.h.
◆ getActiveColor()
| sf::Color ml::ToggleTheme::getActiveColor |
( |
| ) |
const |
|
inlinenodiscardinherited |
◆ getActiveTextColor()
| sf::Color ml::ToggleTheme::getActiveTextColor |
( |
| ) |
const |
|
inlinenodiscardinherited |
◆ getBorderColor()
| sf::Color ml::ButtonTheme::getBorderColor |
( |
| ) |
const |
|
inlinenodiscard |
◆ getBorderThickness()
| float ml::ButtonTheme::getBorderThickness |
( |
| ) |
const |
|
inlinenodiscard |
◆ getButtonRadius()
| float ml::ButtonTheme::getButtonRadius |
( |
| ) |
const |
|
inlinenodiscard |
◆ getDisabledColor()
| sf::Color ml::ControlTheme::getDisabledColor |
( |
| ) |
const |
|
inlinenodiscardinherited |
◆ getDisabledTextColor()
| sf::Color ml::ControlTheme::getDisabledTextColor |
( |
| ) |
const |
|
inlinenodiscardinherited |
◆ getErrorColor()
| sf::Color ml::ControlTheme::getErrorColor |
( |
| ) |
const |
|
inlinenodiscardinherited |
◆ getFillColor()
| sf::Color ml::GraphicTheme::getFillColor |
( |
| ) |
const |
|
inlinenodiscardinherited |
◆ getFocusColor()
| sf::Color ml::ControlTheme::getFocusColor |
( |
| ) |
const |
|
inlinenodiscardinherited |
◆ getFont()
| const sf::Font * ml::ControlTheme::getFont |
( |
| ) |
const |
|
inlinenodiscardinherited |
◆ getFontSize()
| unsigned int ml::ControlTheme::getFontSize |
( |
| ) |
const |
|
inlinenodiscardinherited |
◆ getFontSizeSmall()
| unsigned int ml::ControlTheme::getFontSizeSmall |
( |
| ) |
const |
|
inlinenodiscardinherited |
◆ getHoverColor()
| sf::Color ml::ControlTheme::getHoverColor |
( |
| ) |
const |
|
inlinenodiscardinherited |
◆ getInactiveColor()
| sf::Color ml::ToggleTheme::getInactiveColor |
( |
| ) |
const |
|
inlinenodiscardinherited |
◆ getMutedColor()
| sf::Color ml::ControlTheme::getMutedColor |
( |
| ) |
const |
|
inlinenodiscardinherited |
◆ getOffColor()
| sf::Color ml::ButtonTheme::getOffColor |
( |
| ) |
const |
|
inlinenodiscard |
◆ getOffTextColor()
| sf::Color ml::ButtonTheme::getOffTextColor |
( |
| ) |
const |
|
inlinenodiscard |
◆ getOnColor()
| sf::Color ml::ButtonTheme::getOnColor |
( |
| ) |
const |
|
inlinenodiscard |
◆ getOnTextColor()
| sf::Color ml::ButtonTheme::getOnTextColor |
( |
| ) |
const |
|
inlinenodiscard |
◆ getOutlineColor()
| sf::Color ml::GraphicTheme::getOutlineColor |
( |
| ) |
const |
|
inlinenodiscardinherited |
◆ getOutlineThickness()
| float ml::GraphicTheme::getOutlineThickness |
( |
| ) |
const |
|
inlinenodiscardinherited |
◆ getPadding()
| float ml::ControlTheme::getPadding |
( |
| ) |
const |
|
inlinenodiscardinherited |
◆ getRadius()
| float ml::GraphicTheme::getRadius |
( |
| ) |
const |
|
inlinenodiscardinherited |
◆ getTextColor()
| sf::Color ml::ControlTheme::getTextColor |
( |
| ) |
const |
|
inlinenodiscardinherited |
◆ operator=() [1/3]
◆ operator=() [2/3]
◆ operator=() [3/3]
◆ setActiveColor()
| void ml::ToggleTheme::setActiveColor |
( |
const sf::Color & | c | ) |
|
|
inlineinherited |
◆ setActiveTextColor()
| void ml::ToggleTheme::setActiveTextColor |
( |
const sf::Color & | c | ) |
|
|
inlineinherited |
◆ setBorderColor()
| void ml::ButtonTheme::setBorderColor |
( |
const sf::Color & | c | ) |
|
|
inline |
◆ setBorderThickness()
| void ml::ButtonTheme::setBorderThickness |
( |
float | t | ) |
|
|
inline |
◆ setButtonRadius()
| void ml::ButtonTheme::setButtonRadius |
( |
float | r | ) |
|
|
inline |
◆ setDisabledColor()
| void ml::ControlTheme::setDisabledColor |
( |
const sf::Color & | c | ) |
|
|
inlineinherited |
◆ setDisabledTextColor()
| void ml::ControlTheme::setDisabledTextColor |
( |
const sf::Color & | c | ) |
|
|
inlineinherited |
◆ setErrorColor()
| void ml::ControlTheme::setErrorColor |
( |
const sf::Color & | c | ) |
|
|
inlineinherited |
◆ setFillColor()
| void ml::GraphicTheme::setFillColor |
( |
const sf::Color & | c | ) |
|
|
inlineinherited |
◆ setFocusColor()
| void ml::ControlTheme::setFocusColor |
( |
const sf::Color & | c | ) |
|
|
inlineinherited |
◆ setFont() [1/2]
| void ml::ControlTheme::setFont |
( |
const sf::Font && | | ) |
|
|
deleteinherited |
◆ setFont() [2/2]
| void ml::ControlTheme::setFont |
( |
const sf::Font & | f | ) |
|
|
inlineinherited |
◆ setFontSize()
| void ml::ControlTheme::setFontSize |
( |
unsigned int | s | ) |
|
|
inlineinherited |
◆ setFontSizeSmall()
| void ml::ControlTheme::setFontSizeSmall |
( |
unsigned int | s | ) |
|
|
inlineinherited |
◆ setHoverColor()
| void ml::ControlTheme::setHoverColor |
( |
const sf::Color & | c | ) |
|
|
inlineinherited |
◆ setInactiveColor()
| void ml::ToggleTheme::setInactiveColor |
( |
const sf::Color & | c | ) |
|
|
inlineinherited |
◆ setMutedColor()
| void ml::ControlTheme::setMutedColor |
( |
const sf::Color & | c | ) |
|
|
inlineinherited |
◆ setOffColor()
| void ml::ButtonTheme::setOffColor |
( |
const sf::Color & | c | ) |
|
|
inline |
◆ setOffTextColor()
| void ml::ButtonTheme::setOffTextColor |
( |
const sf::Color & | c | ) |
|
|
inline |
◆ setOnColor()
| void ml::ButtonTheme::setOnColor |
( |
const sf::Color & | c | ) |
|
|
inline |
◆ setOnTextColor()
| void ml::ButtonTheme::setOnTextColor |
( |
const sf::Color & | c | ) |
|
|
inline |
◆ setOutlineColor()
| void ml::GraphicTheme::setOutlineColor |
( |
const sf::Color & | c | ) |
|
|
inlineinherited |
◆ setOutlineThickness()
| void ml::GraphicTheme::setOutlineThickness |
( |
float | t | ) |
|
|
inlineinherited |
◆ setPadding()
| void ml::ControlTheme::setPadding |
( |
float | p | ) |
|
|
inlineinherited |
◆ setRadius()
| void ml::GraphicTheme::setRadius |
( |
float | r | ) |
|
|
inlineinherited |
◆ setTextColor()
| void ml::ControlTheme::setTextColor |
( |
const sf::Color & | c | ) |
|
|
inlineinherited |
◆ activeColor
◆ activeTextColor
◆ borderColor
◆ borderThickness
| float ml::ButtonTheme::borderThickness = 1.5f |
◆ buttonRadius
| float ml::ButtonTheme::buttonRadius = 8.f |
◆ disabledColor
◆ disabledTextColor
◆ errorColor
◆ fillColor
◆ focusColor
◆ font
◆ fontSize
| unsigned int ml::ControlTheme::fontSize = 14 |
|
inherited |
◆ fontSizeSmall
| unsigned int ml::ControlTheme::fontSizeSmall = 11 |
|
inherited |
◆ hoverColor
◆ inactiveColor
◆ mutedColor
◆ offColor
◆ offTextColor
◆ onColor
◆ onTextColor
◆ outlineColor
◆ outlineThickness
| float ml::GraphicTheme::outlineThickness = 1.5f |
|
inherited |
◆ padding
| float ml::ControlTheme::padding = 8.f |
|
inherited |
◆ radius
| float ml::GraphicTheme::radius = 8.f |
|
inherited |
◆ textColor
The documentation for this struct was generated from the following file: