mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
Combine the CPU and Mem tab into a General one
This commit is contained in:
parent
9b5e05e41b
commit
f0fc877f4e
1 changed files with 6 additions and 11 deletions
|
@ -35,11 +35,11 @@ SysInfo := Dialog {
|
|||
preferred-width: 300px;
|
||||
TabWidget {
|
||||
Tab {
|
||||
title: "CPU";
|
||||
title: "General";
|
||||
GridBox {
|
||||
Row {
|
||||
Text {
|
||||
text: "Product:";
|
||||
text: "CPU Model:";
|
||||
max-width: min-width;
|
||||
}
|
||||
cpu-model := Text {
|
||||
|
@ -47,7 +47,7 @@ SysInfo := Dialog {
|
|||
}
|
||||
Row {
|
||||
Text {
|
||||
text: "Vendor:";
|
||||
text: "CPU Vendor:";
|
||||
max-width: min-width;
|
||||
}
|
||||
cpu-vendor := Text {
|
||||
|
@ -61,21 +61,16 @@ SysInfo := Dialog {
|
|||
cpu-count := Text {
|
||||
}
|
||||
}
|
||||
Rectangle {}
|
||||
}
|
||||
}
|
||||
Tab {
|
||||
title: "Memory";
|
||||
GridBox {
|
||||
Row {
|
||||
Text {
|
||||
text: "Size:";
|
||||
text: "Memory Size:";
|
||||
max-width: min-width;
|
||||
}
|
||||
Text {
|
||||
text: "\{floor(mem_size_kb / (1000*1000))} GB";
|
||||
}
|
||||
}
|
||||
}
|
||||
Rectangle {}
|
||||
}
|
||||
}
|
||||
Tab {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue