|
|
| Theme (Theme const &) noexcept=delete |
| |
|
| Theme (Theme &&) noexcept=delete |
| |
|
Theme & | operator= (Theme const &) noexcept=delete |
| |
|
Theme & | operator= (Theme &&) noexcept=delete |
| |
| | Theme (URL const &url) |
| | Open and parse a theme file.
|
| |
| vec | fillColor (ssize_t nestingLevel) const noexcept |
| | Get fill color of elements of widgets and child widgets.
|
| |
| vec | borderColor (ssize_t nestingLevel) const noexcept |
| | Get border color of elements of widgets and child widgets.
|
| |
| vec | gray (ssize_t level) const noexcept |
| | Get grey scale color This color is reversed between light and dark themes.
|
| |
|
|
static constexpr OperatingSystem | operatingSystem = OperatingSystem::Windows |
| |
| static float | toolbarHeight |
| |
| static float | toolbarDecorationButtonWidth |
| | The width of a close, minimize, maximize, system menu button.
|
| |
| static constexpr float | margin = 6.0f |
| | Distance between widgets and between widgets and the border of the container.
|
| |
|
static const vec | margin2D = vec{margin, margin} |
| |
| static constexpr float | borderWidth = 1.0f |
| | The line-width of a border.
|
| |
| static constexpr float | roundingRadius = 5.0f |
| | The rounding radius of boxes with rounded corners.
|
| |
| static constexpr float | smallHeight = 15.0f |
| | The height of smaller widget like labels, toggles, checkboxes and radio buttons.
|
| |
| static constexpr float | smallWidth = smallHeight * 2.0f |
| | The width of smaller widget like labels, toggles, checkboxes and radio buttons.
|
| |
| static constexpr float | height = 22.0f |
| | The height of the larger widgets like buttons, text-input and drop-down-lists.
|
| |
| static constexpr float | width = 50.0f |
| | The width of the larger widgets and smaller widgets with included labels.
|
| |
| static constexpr float | maxLabelWidth = 300.0f |
| | Max width of labels in widgets.
|
| |
| static constexpr float | iconSize = 10.0 |
| | Size of icons in buttons, based on the original 1EM.
|
| |
◆ Theme()
| tt::Theme::Theme |
( |
URL const & | url | ) |
|
Open and parse a theme file.
◆ borderColor()
| vec tt::Theme::borderColor |
( |
ssize_t | nestingLevel | ) |
const |
|
inlinenoexcept |
Get border color of elements of widgets and child widgets.
- Parameters
-
| nestingLevel | The nesting level. |
◆ fillColor()
| vec tt::Theme::fillColor |
( |
ssize_t | nestingLevel | ) |
const |
|
inlinenoexcept |
Get fill color of elements of widgets and child widgets.
- Parameters
-
| nestingLevel | The nesting level. |
◆ gray()
Get grey scale color This color is reversed between light and dark themes.
- Parameters
-
| level | Gray level: 0 is background, positive values increase in foregroundness. -1 is foreground, more negative values go toward background. |
◆ borderWidth
| constexpr float tt::Theme::borderWidth = 1.0f |
|
staticconstexpr |
The line-width of a border.
◆ height
| constexpr float tt::Theme::height = 22.0f |
|
staticconstexpr |
The height of the larger widgets like buttons, text-input and drop-down-lists.
◆ iconSize
| constexpr float tt::Theme::iconSize = 10.0 |
|
staticconstexpr |
Size of icons in buttons, based on the original 1EM.
◆ margin
| constexpr float tt::Theme::margin = 6.0f |
|
staticconstexpr |
Distance between widgets and between widgets and the border of the container.
◆ maxLabelWidth
| constexpr float tt::Theme::maxLabelWidth = 300.0f |
|
staticconstexpr |
Max width of labels in widgets.
◆ roundingRadius
| constexpr float tt::Theme::roundingRadius = 5.0f |
|
staticconstexpr |
The rounding radius of boxes with rounded corners.
◆ smallHeight
| constexpr float tt::Theme::smallHeight = 15.0f |
|
staticconstexpr |
The height of smaller widget like labels, toggles, checkboxes and radio buttons.
◆ smallWidth
| constexpr float tt::Theme::smallWidth = smallHeight * 2.0f |
|
staticconstexpr |
The width of smaller widget like labels, toggles, checkboxes and radio buttons.
Small widgets which include labels should be right aligned to the smallWidth with a margin between the widget and the included label.
◆ toolbarDecorationButtonWidth
| float tt::Theme::toolbarDecorationButtonWidth |
|
inlinestatic |
Initial value:=
(operatingSystem == OperatingSystem::Windows) ? 30.0f : 20.0f
The width of a close, minimize, maximize, system menu button.
◆ toolbarHeight
| float tt::Theme::toolbarHeight |
|
inlinestatic |
Initial value:=
(operatingSystem == OperatingSystem::Windows) ? 30.0f : 20.0f
◆ width
| constexpr float tt::Theme::width = 50.0f |
|
staticconstexpr |
The width of the larger widgets and smaller widgets with included labels.
The documentation for this class was generated from the following file: