mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-01 15:18:06 +00:00
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:
parent
a8bf2f8e4c
commit
2ad9c1fd6c
Notes:
sideshowbarker
2024-07-17 06:09:44 +09:00
Author: https://github.com/linusg
Commit: 2ad9c1fd6c
Pull-request: https://github.com/SerenityOS/serenity/pull/17444
Reviewed-by: https://github.com/nico ✅
3 changed files with 19 additions and 15 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue