mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-16 22:14:30 +00:00
Component::DISABLED picks how a disabled instance looks: the style's Disabled state (DisabledLook::States, the default for chrome controls) or its enabled look at Opacity::DISABLED (DisabledLook::Faded). Step 13 fades the surface, part layers, paint, faces and paint_over of a faded component; its children and step 14 paint outside the fade and show their own disabled look. egui fades a shape as it is added, so a settled region replays the faded paint. Tile, RowThumb, Swatch, PointPicker, Navigator, PreviewPane, ColorStrip, ColorArea, PaintChip, PagePicture, PagePictures, ReadingView and DrawPad declare Faded. The tile's disabled veil and the Disabled entries of the tile and swatch looks go. Opacity::DISABLED is 0.5, the old disabled fade and the old knob's disabled share.