1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:27:46 +00:00

ProcessManager+LibGUI: Tweak things to improve ProcessManager look.

This commit is contained in:
Andreas Kling 2019-05-05 20:53:04 +02:00
parent 9e5ad25188
commit 3bdb95e128
7 changed files with 20 additions and 15 deletions

View file

@ -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());
}

View file

@ -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 };

View file

@ -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();