mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-16 22:14:30 +00:00
DataMode holds the one mapping of a data colour (DataMode::color) and maps every colour of a shape with it (DataMode::shape). ContentPainterCx gets data_shapes for shapes whose colours are data, and its data methods (picture, checker, checker_with, ramp) paint through the mode, sharing data_picture and data_checker with Draw::texture and Draw::checker. A States component's ramps, pictures and checkers in a content painter dim while it paints its Disabled state, as its Draw's data colours do. The histogram's bins and outlines and the notes editor's document text paint through data_shapes.