mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:57:35 +00:00
LibGUI: Show font weight names instead of numeric weights in FontPicker
Map font weights to their names from the OpenType specification.
This commit is contained in:
parent
28bad49ed4
commit
4f1db41a6c
2 changed files with 53 additions and 4 deletions
|
@ -33,7 +33,7 @@
|
|||
namespace GUI {
|
||||
|
||||
template<typename T>
|
||||
class ItemListModel final : public Model {
|
||||
class ItemListModel : public Model {
|
||||
public:
|
||||
static NonnullRefPtr<ItemListModel> create(const Vector<T>& data) { return adopt(*new ItemListModel<T>(data)); }
|
||||
|
||||
|
@ -69,7 +69,7 @@ public:
|
|||
did_update();
|
||||
}
|
||||
|
||||
private:
|
||||
protected:
|
||||
explicit ItemListModel(const Vector<T>& data)
|
||||
: m_data(data)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue