JFLib

Stock painters of the data and shell parts#

Source: lib/ui/stock.rs

stock -- the default painters of the data views and the app shell parts: drawn from the
theme tokens only, so every style shows grids, trees, badges, meters, charts, navigation
panes, command bars, splitters, breadcrumbs, segmented controls, wizard steps, toasts,
spinners, calendars, dock areas, the windows of a window area and taskbars (desk.rs; high
contrast: no shadows, 2 px frames, the active window in the accent).  A style that wants
its own look returns its StyleData / StyleShell from Style::data / Style::shell and
overrides the methods it likes; the others keep these painters (call them from the
override to extend them).

  kind_colors(ui, BADGE_*) -> (text, fill, solid)   the colours of a status kind
  Stock                                             the stock StyleData + StyleShell
  • struct Stock the stock data-view and shell painters (Style::data / Style::shell default)

  • fn card_opaque(ui: &Ui) -> u32 the card colour as it shows on the window: a translucent card token (some styles layer their cards) composited over the window background

  • fn kind_colors(ui: &Ui, kind: u32) -> (u32, u32, u32) the (text, fill, solid) colours of a BADGE_* kind in the current theme

Source: docs/API.md in the JFLib repository.