1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 04:48:14 +00:00

Tweak the look of various UI surfaces and buttons.

This commit is contained in:
Andreas Kling 2019-03-27 20:48:23 +01:00
parent d71820a382
commit 670e376e27
10 changed files with 65 additions and 20 deletions

View file

@ -8,10 +8,10 @@ GToolBar::GToolBar(GWidget* parent)
: GWidget(parent)
{
set_size_policy(SizePolicy::Fill, SizePolicy::Fixed);
set_preferred_size({ 0, 30 });
set_preferred_size({ 0, 28 });
set_layout(make<GBoxLayout>(Orientation::Horizontal));
layout()->set_spacing(0);
layout()->set_margins({ 3, 3, 3, 3 });
layout()->set_margins({ 2, 2, 2, 2 });
}
GToolBar::~GToolBar()
@ -50,7 +50,7 @@ public:
{
set_size_policy(SizePolicy::Fixed, SizePolicy::Fixed);
set_background_color(Color::White);
set_preferred_size({ 8, 20 });
set_preferred_size({ 8, 22 });
}
virtual ~SeparatorWidget() override { }
@ -59,7 +59,7 @@ public:
Painter painter(*this);
painter.set_clip_rect(event.rect());
painter.translate(rect().center().x() - 1, 0);
painter.draw_line({ 0, 0 }, { 0, rect().bottom() }, Color::DarkGray);
painter.draw_line({ 0, 0 }, { 0, rect().bottom() }, Color::MidGray);
painter.draw_line({ 1, 0 }, { 1, rect().bottom() }, Color::White);
}