Everything the chromium_refresh skin paints, in local coordinates, in paint order: lighten (disabled only), background, border (absent for a checked or indeterminate checkbox), accent_fill (checked or indeterminate checkbox), then the mark: the check stroke, the dash or the radio dot.
More...
#include <widgets.hpp>
Everything the chromium_refresh skin paints, in local coordinates, in paint order: lighten (disabled only), background, border (absent for a checked or indeterminate checkbox), accent_fill (checked or indeterminate checkbox), then the mark: the check stroke, the dash or the radio dot.
◆ accent_fill
| std::optional<canvas::Color> pulp::view::Checkbox::ChromiumRefreshParts::accent_fill |
◆ background
| canvas::Color pulp::view::Checkbox::ChromiumRefreshParts::background {} |
◆ background_rect
| Rect pulp::view::Checkbox::ChromiumRefreshParts::background_rect |
◆ border
| std::optional<canvas::Color> pulp::view::Checkbox::ChromiumRefreshParts::border |
stroked 1px on box inset 0.5px
◆ border_rect
| Rect pulp::view::Checkbox::ChromiumRefreshParts::border_rect |
◆ box
| Rect pulp::view::Checkbox::ChromiumRefreshParts::box |
the largest centred square in the bounds
◆ check
| std::array<Point, 3> pulp::view::Checkbox::ChromiumRefreshParts::check {} |
◆ check_width
| float pulp::view::Checkbox::ChromiumRefreshParts::check_width = 0 |
◆ dash
| std::optional<Rect> pulp::view::Checkbox::ChromiumRefreshParts::dash |
indeterminate dash, rounded by radius
◆ dot
| std::optional<Rect> pulp::view::Checkbox::ChromiumRefreshParts::dot |
checked radio dot (box inset 20%)
◆ has_check
| bool pulp::view::Checkbox::ChromiumRefreshParts::has_check = false |
◆ lighten
| std::optional<canvas::Color> pulp::view::Checkbox::ChromiumRefreshParts::lighten |
◆ mark
| canvas::Color pulp::view::Checkbox::ChromiumRefreshParts::mark {} |
check / dash colour, or the radio dot colour
◆ radius
| float pulp::view::Checkbox::ChromiumRefreshParts::radius = 0 |
2px for a checkbox, half the side for a radio
◆ scheme
| ColorScheme pulp::view::Checkbox::ChromiumRefreshParts::scheme = ColorScheme::light |
palette used, after the accent flip
The documentation for this struct was generated from the following file:
- /home/runner/work/pulp/pulp/core/view/include/pulp/view/widgets.hpp