mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
PixelPaint: Extend Filter Gallery dialog to accommodate settings
For now, the space is empty, but it's there.
This commit is contained in:
parent
534b2be16f
commit
ea19f6dd4a
Notes:
sideshowbarker
2024-07-17 21:42:22 +09:00
Author: https://github.com/TobyAsE Commit: https://github.com/SerenityOS/serenity/commit/ea19f6dd4a1 Pull-request: https://github.com/SerenityOS/serenity/pull/11572 Reviewed-by: https://github.com/bgianfo ✅ Reviewed-by: https://github.com/sppmacd
@ -18,7 +18,7 @@ FilterGallery::FilterGallery(GUI::Window* parent_window, ImageEditor* editor)
|
||||
{
|
||||
set_title("Filter Gallery");
|
||||
set_icon(parent_window->icon());
|
||||
resize(200, 250);
|
||||
resize(400, 250);
|
||||
set_resizable(true);
|
||||
|
||||
auto& main_widget = set_main_widget<GUI::Widget>();
|
||||
@ -28,10 +28,12 @@ FilterGallery::FilterGallery(GUI::Window* parent_window, ImageEditor* editor)
|
||||
auto filter_tree = main_widget.find_descendant_of_type_named<GUI::TreeView>("tree_view");
|
||||
auto apply_button = main_widget.find_descendant_of_type_named<GUI::Button>("apply_button");
|
||||
auto cancel_button = main_widget.find_descendant_of_type_named<GUI::Button>("cancel_button");
|
||||
auto config_widget = main_widget.find_descendant_of_type_named<GUI::Widget>("config_widget");
|
||||
|
||||
VERIFY(filter_tree);
|
||||
VERIFY(apply_button);
|
||||
VERIFY(cancel_button);
|
||||
VERIFY(config_widget);
|
||||
|
||||
auto filter_model = FilterModel::create(editor);
|
||||
filter_tree->set_model(filter_model);
|
||||
|
@ -12,6 +12,15 @@
|
||||
|
||||
@GUI::TreeView {
|
||||
name: "tree_view"
|
||||
fixed_width: 200
|
||||
}
|
||||
|
||||
@GUI::Widget {
|
||||
name: "config_widget"
|
||||
|
||||
layout:@GUI::VerticalBoxLayout {
|
||||
margins: [4]
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user