Style
#include <Style.hpp>Describes the visual appearance of a widget.
Includes colors, text decoration, borders, alignment, and padding. Widgets typically have a default Style and a focused Style.
Public Attributes
Section titled “Public Attributes”| Return | Name | Description |
|---|---|---|
Color | fg | Foreground (text) color. |
Color | bg | Background color. |
TextDecoration | text | Text decoration (bold, underline, etc.) |
Border | border | Border configuration. |
Align | innerAlignX | Horizontal alignment of content within widget. |
Align | innerAlignY | Vertical alignment of content within widget. |
PaddingSpec | padding | Padding inside the widget, between border and content. |
Color fg = {255, 255, 255}Foreground (text) color.
Color bg = {0, 0, 0}Background color.
TextDecoration textText decoration (bold, underline, etc.)
border
Section titled “border”Border borderBorder configuration.
innerAlignX
Section titled “innerAlignX”Align innerAlignX = Align::StartHorizontal alignment of content within widget.
innerAlignY
Section titled “innerAlignY”Align innerAlignY = Align::StartVertical alignment of content within widget.
padding
Section titled “padding”PaddingSpec paddingPadding inside the widget, between border and content.