Expand description
Appearance options shared by every backend.
Structs§
- Image
Size - The size an image is shown at: a fixed
widthorheightin points, orImageSize::FITfor the image’s own. Fixing only one keeps the image’s shape.repr(C)because compiled apps store it as is. - Label
Style repr(C)because compiled apps store it as is.- Stack
Style repr(C)because compiled apps store it as is.
Enums§
- Align
- Placement of children across a stack’s axis.
- Axis
- Backdrop
- What a window is drawn on, in each platform’s own materials.
- Button
Style - Icon
- Symbols from the platform’s own icon set: SF Symbols on macOS, Segoe Fluent Icons on Windows. Nothing is bundled with the app.
- Justify
- Distribution of children along a stack’s axis.
- Surface
- What a stack is drawn on. Each surface is one native view behind the stack’s children, using the platform’s own materials and colors.
- Text
Align - Placement of text within its frame.
- Text
Color - Semantic text colors, so text follows the system appearance and accent color.
- Text
Style - The platform’s system text styles, so apps follow the system font and accessibility sizes.
- Toggle
Style - How a control that turns a
boolon and off looks.