mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:37:35 +00:00
LibGUI: Allow GUI::FilePicker to show only fixed-width fonts
This is useful when you really only want something monospaced. :^)
This commit is contained in:
parent
ddaa526769
commit
7e40c7cf99
2 changed files with 11 additions and 2 deletions
|
@ -41,10 +41,12 @@ public:
|
|||
void set_font(const Gfx::Font*);
|
||||
|
||||
private:
|
||||
FontPicker(Window* parent_window = nullptr, const Gfx::Font* current_font = nullptr);
|
||||
FontPicker(Window* parent_window = nullptr, const Gfx::Font* current_font = nullptr, bool fixed_width_only = false);
|
||||
|
||||
void update_sample_label();
|
||||
|
||||
const bool m_fixed_width_only;
|
||||
|
||||
RefPtr<Gfx::Font> m_font;
|
||||
|
||||
RefPtr<ListView> m_family_list_view;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue