1
Fork 0
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:
Andreas Kling 2020-12-30 17:47:27 +01:00
parent ddaa526769
commit 7e40c7cf99
2 changed files with 11 additions and 2 deletions

View file

@ -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;