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

LibGUI: Add a ToolBarContainer widget and put most ToolBars in one

This mimics the Explorer toolbar container from Windows 2000 and looks
pretty neat! :^)
This commit is contained in:
Andreas Kling 2020-04-23 17:44:49 +02:00
parent 5b6c2f3bd6
commit ab336e895f
12 changed files with 179 additions and 18 deletions

View file

@ -39,7 +39,7 @@ StatusBar::StatusBar(int label_count)
set_size_policy(SizePolicy::Fill, SizePolicy::Fixed);
set_preferred_size(0, 20);
set_layout<HorizontalBoxLayout>();
layout()->set_margins({ 0, 3, 0, 0 });
layout()->set_margins({ 0, 0, 0, 0 });
layout()->set_spacing(2);
if (label_count < 1)