mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-17 01:44:25 +00:00
- StyleCx::state_layer is the one hover and press fill; PartBuilder::state_layer declares a part whose look it is, and the paint step fills such parts under the component's paint (Rating stars, Breadcrumb crumbs, the reset dot). Button's local overlay goes. - The paint step's surface shapes move into one function, which Draw::surface_look also paints for a part. - Check box, radio and switch draw their well on the sunken surface (the bevel in bevelled themes), take the press fill while pressed and the accent's pressed shade while on and pressed. - StyleCx::dropdown: the closed box of Select, TreePicker, PresetPicker and the stroke button takes the hover fill under the pointer and while open. - A focused invalid field keeps its focus edge and draws the failure colour as a line inside it (SurfaceLook::inner). - The selected segment keeps hover and press looks; the disclosure glyph lights under the pointer; the EdgePicker's hovered line widens in its own colour; the chip body wears an outline badge, so it takes the hover fill. - SurfaceLook::kind_on: the kind a look takes while on.