summaryrefslogtreecommitdiff
path: root/Applications/Taskbar/TaskbarWindow.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-04-08 17:17:16 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-04-08 17:17:16 +0200
commit93a4a4c5975d8fe0d8ed1191509664ef22342b5d (patch)
tree12bd1a77b39ff49aa422c687e9fe470272d4f39f /Applications/Taskbar/TaskbarWindow.cpp
parent6d5a54690e11e3912fdc5af61cbb8ce0abdf19c2 (diff)
downloadserenity-93a4a4c5975d8fe0d8ed1191509664ef22342b5d.zip
Taskbar: Replace TaskbarWidget with a simple GFrame.
There's no need for a custom widget here, at least not now.
Diffstat (limited to 'Applications/Taskbar/TaskbarWindow.cpp')
-rw-r--r--Applications/Taskbar/TaskbarWindow.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/Applications/Taskbar/TaskbarWindow.cpp b/Applications/Taskbar/TaskbarWindow.cpp
index 1f1a8b1d4b..866fdb230f 100644
--- a/Applications/Taskbar/TaskbarWindow.cpp
+++ b/Applications/Taskbar/TaskbarWindow.cpp
@@ -1,9 +1,10 @@
#include "TaskbarWindow.h"
-#include "TaskbarWidget.h"
#include <LibGUI/GWindow.h>
#include <LibGUI/GDesktop.h>
#include <LibGUI/GEventLoop.h>
+#include <LibGUI/GBoxLayout.h>
#include <LibGUI/GButton.h>
+#include <LibGUI/GFrame.h>
#include <WindowServer/WSAPITypes.h>
#include <stdio.h>
@@ -17,7 +18,14 @@ TaskbarWindow::TaskbarWindow()
GDesktop::the().on_rect_change = [this] (const Rect& rect) { on_screen_rect_change(rect); };
- auto* widget = new TaskbarWidget(m_window_list);
+ auto* widget = new GFrame;
+ widget->set_fill_with_background_color(true);
+ widget->set_layout(make<GBoxLayout>(Orientation::Horizontal));
+ widget->layout()->set_margins({ 3, 2, 3, 2 });
+ widget->layout()->set_spacing(3);
+ widget->set_frame_thickness(1);
+ widget->set_frame_shape(GFrame::Shape::Panel);
+ widget->set_frame_shadow(GFrame::Shadow::Raised);
set_main_widget(widget);
m_window_list.aid_create_button = [this] {