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

Taskbar: More bringup work. We now see a basic window list.

This commit is contained in:
Andreas Kling 2019-04-04 01:44:35 +02:00
parent ea801a99dc
commit 96104b5524
20 changed files with 339 additions and 12 deletions

View file

@ -5,13 +5,14 @@
#include <LibGUI/GPainter.h>
#include <stdio.h>
TaskbarWidget::TaskbarWidget(GWidget* parent)
TaskbarWidget::TaskbarWidget(WindowList& window_list, GWidget* parent)
: GFrame(parent)
, m_window_list(window_list)
{
set_fill_with_background_color(true);
set_layout(make<GBoxLayout>(Orientation::Horizontal));
layout()->set_margins({ 0, 8, 0, 8 });
layout()->set_spacing(8);
layout()->set_margins({ 0, 3, 0, 3 });
layout()->set_spacing(3);
set_frame_thickness(1);
set_frame_shape(GFrame::Shape::Panel);