diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-05-05 20:53:04 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-05-05 20:53:04 +0200 |
commit | 3bdb95e128b387e706a37738d244d04c76370a9a (patch) | |
tree | 28168e61a049dc309adbb689e8de5f79f4ef7d8d /Applications/ProcessManager | |
parent | 9e5ad2518897a454602595f28178eedb57b66c93 (diff) | |
download | serenity-3bdb95e128b387e706a37738d244d04c76370a9a.zip |
ProcessManager+LibGUI: Tweak things to improve ProcessManager look.
Diffstat (limited to 'Applications/ProcessManager')
-rw-r--r-- | Applications/ProcessManager/MemoryStatsWidget.cpp | 7 | ||||
-rw-r--r-- | Applications/ProcessManager/MemoryStatsWidget.h | 1 | ||||
-rw-r--r-- | Applications/ProcessManager/main.cpp | 10 |
3 files changed, 8 insertions, 10 deletions
diff --git a/Applications/ProcessManager/MemoryStatsWidget.cpp b/Applications/ProcessManager/MemoryStatsWidget.cpp index d8a7c2de87..de67993e5f 100644 --- a/Applications/ProcessManager/MemoryStatsWidget.cpp +++ b/Applications/ProcessManager/MemoryStatsWidget.cpp @@ -102,10 +102,3 @@ void MemoryStatsWidget::timer_event(CTimerEvent&) { refresh(); } - -void MemoryStatsWidget::paint_event(GPaintEvent& event) -{ - GPainter painter(*this); - painter.add_clip_rect(event.rect()); - StylePainter::paint_surface(painter, rect()); -} diff --git a/Applications/ProcessManager/MemoryStatsWidget.h b/Applications/ProcessManager/MemoryStatsWidget.h index f6c8922f9f..b751b06a14 100644 --- a/Applications/ProcessManager/MemoryStatsWidget.h +++ b/Applications/ProcessManager/MemoryStatsWidget.h @@ -14,7 +14,6 @@ public: private: virtual void timer_event(CTimerEvent&) override; - virtual void paint_event(GPaintEvent&) override; GLabel* m_user_physical_pages_label { nullptr }; GLabel* m_supervisor_physical_pages_label { nullptr }; diff --git a/Applications/ProcessManager/main.cpp b/Applications/ProcessManager/main.cpp index f7159cf4d3..b22d3b8cc5 100644 --- a/Applications/ProcessManager/main.cpp +++ b/Applications/ProcessManager/main.cpp @@ -18,7 +18,13 @@ int main(int argc, char** argv) { GApplication app(argc, argv); - auto* tabwidget = new GTabWidget(nullptr); + auto* keeper = new GWidget; + keeper->set_layout(make<GBoxLayout>(Orientation::Vertical)); + keeper->set_fill_with_background_color(true); + keeper->set_background_color(Color::LightGray); + keeper->layout()->set_margins({ 2, 2, 2, 2 }); + + auto* tabwidget = new GTabWidget(keeper); auto* widget = new GWidget(nullptr); tabwidget->add_widget("Processes", widget); @@ -105,7 +111,7 @@ int main(int argc, char** argv) auto* window = new GWindow; window->set_title("ProcessManager"); window->set_rect(20, 200, 680, 400); - window->set_main_widget(tabwidget); + window->set_main_widget(keeper); window->set_should_exit_event_loop_on_close(true); window->show(); |