Crate kas_theme

Source
Expand description

KAS theme support

This crate provides the Theme trait, MultiTheme adapter, color schemes, some supporting items, and the themes FlatTheme and ShadedTheme.

Custom themes may be built over this crate, optionally including custom draw routines (e.g. DrawShaded), provided that the shell implements support. Alternatively this crate may be skipped altogether, especially for a minimal shell with a custom fixed theme.

Structs§

Colors
Provides standard theme colours
Config
Event handling configuration
FlatTheme
A theme with flat (unshaded) rendering
InputState
Input and highlighting state of a widget
MultiTheme
Wrapper around mutliple themes, supporting run-time switching
MultiThemeBuilder
Builder for MultiTheme
RasterConfig
Font raster settings
ShadedTheme
A theme using simple shading to give apparent depth to elements
SimpleTheme
A simple theme

Enums§

MaybeBoxed
An optionally-owning (boxed) reference

Traits§

DrawShaded
Extension trait providing shaded drawing over DrawIface
Theme
A theme provides widget sizing and drawing implementations.
ThemeConfig
Requirements on theme config (with config feature)
ThemeDst
As Theme, but without associated types
Window
Per-window storage for the theme

Type Aliases§

ColorsLinear
Colors parameterised for graphics usage
ColorsSrgb
Colors parameterised for reading and writing using sRGB