shore/style
Types
Used to set all children of Aligned
to the selected alignment.
pub type Align {
Left
Center
Right
}
Constructors
-
Left
-
Center
-
Right
ANSI terminal color. Used for setting the background/foreground of UI elements.
pub type Color {
Black
Red
Green
Yellow
Blue
Magenta
Cyan
White
}
Constructors
-
Black
-
Red
-
Green
-
Yellow
-
Blue
-
Magenta
-
Cyan
-
White
Configurable size options/units for ui elements
pub type Size {
Px(Int)
Pct(Int)
Fill
}
Constructors
-
Px(Int)
Absolute width/height
-
Pct(Int)
A percentage of the parent item width/height
-
Fill
Will fit the item to the parents width/height. When multiple exist within a single item, such as a layout, will automatically divide the space between items.