1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:57:44 +00:00

PixelPaint: Make use of DynamicWidgetContainer

This patch adds the new DynamicWidgetContainer for the right panel
elements. This allows the user to collapse, expand or even detach
widgets to a separate window. The collapsed or expanded state is
persisted so that they are restored after application startup.
With this change it is possible to shrink the size of widgets to a
minimum in order to give more space to other currently important
widgets.
This commit is contained in:
Torstennator 2023-09-15 12:07:52 +02:00 committed by Andrew Kaster
parent b65e711929
commit c85c61571c
3 changed files with 64 additions and 40 deletions

View file

@ -19,7 +19,7 @@ ToolPropertiesWidget::ToolPropertiesWidget()
{
set_layout<GUI::VerticalBoxLayout>();
m_group_box = add<GUI::GroupBox>("Tool properties"sv);
m_group_box = add<GUI::GroupBox>();
m_group_box->set_layout<GUI::VerticalBoxLayout>(8);
m_tool_widget_stack = m_group_box->add<GUI::StackWidget>();
m_error_label = m_tool_widget_stack->add<GUI::Label>();