diff --git a/Libraries/LibGUI/FontPicker.cpp b/Libraries/LibGUI/FontPicker.cpp index 9204b47419..ba5d5e3c8d 100644 --- a/Libraries/LibGUI/FontPicker.cpp +++ b/Libraries/LibGUI/FontPicker.cpp @@ -30,6 +30,7 @@ #include #include #include +#include #include #include @@ -40,7 +41,7 @@ FontPicker::FontPicker(Window* parent_window, const Gfx::Font* current_font, boo , m_fixed_width_only(fixed_width_only) { set_title("Font picker"); - resize(540, 300); + resize(430, 280); set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/app-font-editor.png")); auto& widget = set_main_widget(); @@ -50,6 +51,11 @@ FontPicker::FontPicker(Window* parent_window, const Gfx::Font* current_font, boo m_family_list_view = static_cast(*widget.find_descendant_by_name("family_list_view")); m_weight_list_view = static_cast(*widget.find_descendant_by_name("weight_list_view")); m_size_list_view = static_cast(*widget.find_descendant_by_name("size_list_view")); + + m_family_list_view->horizontal_scrollbar().set_visible(false); + m_weight_list_view->horizontal_scrollbar().set_visible(false); + m_size_list_view->horizontal_scrollbar().set_visible(false); + m_sample_text_label = static_cast(*widget.find_descendant_by_name("sample_text_label")); HashTable families; diff --git a/Libraries/LibGUI/FontPickerDialog.gml b/Libraries/LibGUI/FontPickerDialog.gml index fb30a3631a..8f45fb0627 100644 --- a/Libraries/LibGUI/FontPickerDialog.gml +++ b/Libraries/LibGUI/FontPickerDialog.gml @@ -25,6 +25,8 @@ } @GUI::Widget { + fixed_width: 100 + layout: @GUI::VerticalBoxLayout { } @@ -40,6 +42,8 @@ } @GUI::Widget { + fixed_width: 80 + layout: @GUI::VerticalBoxLayout { } @@ -60,7 +64,7 @@ } title: "Sample text" - fixed_height: 100 + fixed_height: 80 @GUI::Label { name: "sample_text_label"