Serenity Operating System
1@GUI::Widget {
2 fill_with_background_color: true
3 layout: @GUI::VerticalBoxLayout {}
4
5 // Add a tasteful separating line between the menu and the main UI.
6 @GUI::HorizontalSeparator {
7 fixed_height: 2
8 }
9
10 @GUI::Widget {
11 layout: @GUI::VerticalBoxLayout {
12 margins: [0, 4, 4]
13 }
14
15 @GUI::TabWidget {
16 name: "main_tabs"
17
18 @GUI::Widget {
19 title: "Processes"
20 name: "processes"
21 layout: @GUI::VerticalBoxLayout {
22 margins: [4]
23 spacing: 0
24 }
25
26 @GUI::TreeView {
27 name: "process_table"
28 column_headers_visible: true
29 should_fill_selected_rows: true
30 selection_behavior: "SelectRows"
31 }
32 }
33
34 @GUI::Widget {
35 title: "Performance"
36 name: "performance"
37 background_role: "Button"
38 fill_with_background_color: true
39 layout: @GUI::VerticalBoxLayout {
40 margins: [4]
41 }
42
43 @GUI::GroupBox {
44 title: "CPU usage"
45 name: "cpu_graph"
46 layout: @GUI::VerticalBoxLayout {}
47 }
48
49 @GUI::GroupBox {
50 title: "Memory usage"
51 fixed_height: 120
52 layout: @GUI::VerticalBoxLayout {
53 margins: [6]
54 }
55
56 @SystemMonitor::GraphWidget {
57 stack_values: true
58 name: "memory_graph"
59 }
60 }
61
62 @SystemMonitor::MemoryStatsWidget {
63 name: "memory_stats"
64 memory_graph: "memory_graph"
65 }
66 }
67
68 @SystemMonitor::StorageTabWidget {
69 title: "Storage"
70 name: "storage"
71 layout: @GUI::VerticalBoxLayout {
72 margins: [4]
73 }
74
75 @GUI::TableView {
76 name: "storage_table"
77 }
78 }
79
80 @SystemMonitor::NetworkStatisticsWidget {
81 title: "Network"
82 name: "network"
83 }
84 }
85 }
86
87 @GUI::Statusbar {
88 segment_count: 3
89 name: "statusbar"
90 }
91}