LibWeb: Re-implement checkbox painting using the UA stylesheet

The checkbox provided by ClassicStylePainter is not scaling-aware and
generally unflexible, instead use the UA default stylesheet with a
handful of properties, the same way we already style buttons and text
inputs.

Thanks to Xexxa for the nice checkmark image!

Co-Authored-By: Xexxa <93391300+Xexxa@users.noreply.github.com>
This commit is contained in:
Linus Groh 2023-02-11 21:45:53 +00:00
commit 2ad9c1fd6c
Notes: sideshowbarker 2024-07-17 06:09:44 +09:00
3 changed files with 19 additions and 15 deletions

View file

@ -17,8 +17,6 @@ class CheckBoxPaintable final : public LabelablePaintable {
public:
static JS::NonnullGCPtr<CheckBoxPaintable> create(Layout::CheckBox const&);
virtual void paint(PaintContext&, PaintPhase) const override;
Layout::CheckBox const& layout_box() const;
Layout::CheckBox& layout_box();