mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
Implement basic support for variable-width fonts.
Also add a nice new font called Katica. It's not used anywhere yet but I'm definitely itching to start using it. :^)
This commit is contained in:
parent
0a86366c71
commit
7f6c81d90f
Notes:
sideshowbarker
2024-07-19 15:10:05 +09:00
Author: https://github.com/awesomekling
Commit: 7f6c81d90f
8 changed files with 95 additions and 22 deletions
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
#include "GWidget.h"
|
||||
#include <AK/AKString.h>
|
||||
#include <AK/Function.h>
|
||||
|
||||
class GCheckBox final : public GWidget {
|
||||
public:
|
||||
|
|
@ -14,6 +15,8 @@ public:
|
|||
bool is_checked() const { return m_checked; }
|
||||
void set_checked(bool);
|
||||
|
||||
Function<void(GCheckBox&, bool)> on_change;
|
||||
|
||||
private:
|
||||
virtual void paint_event(GPaintEvent&) override;
|
||||
virtual void mousedown_event(GMouseEvent&) override;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue