mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:28:12 +00:00
SystemMonitor: Remove the toolbar above the process table
This was looking a bit too whimsical and didn't really fit with the overall look of the window anymore. The actions are available via the context menu still.
This commit is contained in:
parent
8b8a5fc6c6
commit
3a905aed06
1 changed files with 1 additions and 7 deletions
|
@ -157,6 +157,7 @@ int main(int argc, char** argv)
|
|||
auto& tabwidget = keeper.add<GUI::TabWidget>();
|
||||
|
||||
auto& process_container_splitter = tabwidget.add_tab<GUI::VerticalSplitter>("Processes");
|
||||
process_container_splitter.layout()->set_margins({ 4, 4, 4, 4 });
|
||||
|
||||
auto& process_table_container = process_container_splitter.add<GUI::Widget>();
|
||||
|
||||
|
@ -172,11 +173,8 @@ int main(int argc, char** argv)
|
|||
tabwidget.add_widget("Network", network_stats_widget);
|
||||
|
||||
process_table_container.set_layout<GUI::VerticalBoxLayout>();
|
||||
process_table_container.layout()->set_margins({ 4, 0, 4, 0 });
|
||||
process_table_container.layout()->set_spacing(0);
|
||||
|
||||
auto& toolbar = process_table_container.add<GUI::ToolBar>();
|
||||
toolbar.set_has_frame(false);
|
||||
auto& process_table_view = process_table_container.add<ProcessTableView>();
|
||||
|
||||
auto& refresh_timer = window->add<Core::Timer>(
|
||||
|
@ -204,10 +202,6 @@ int main(int argc, char** argv)
|
|||
kill(pid, SIGCONT);
|
||||
});
|
||||
|
||||
toolbar.add_action(kill_action);
|
||||
toolbar.add_action(stop_action);
|
||||
toolbar.add_action(continue_action);
|
||||
|
||||
auto menubar = GUI::MenuBar::construct();
|
||||
auto& app_menu = menubar->add_menu("System Monitor");
|
||||
app_menu.add_action(GUI::CommonActions::make_quit_action([](auto&) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue