mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 18:58:36 +00:00
Reorder sysinfo.60 once more
... to match the blog :-)
This commit is contained in:
parent
64ec25f8e3
commit
15f2b19a95
1 changed files with 14 additions and 14 deletions
|
@ -12,20 +12,6 @@ import { TabWidget, StandardButton, GridBox, VerticalBox, ListView } from "sixty
|
|||
|
||||
|
||||
SysInfo := Dialog {
|
||||
property os_name <=> os-name.text;
|
||||
property uptime <=> uptime.text;
|
||||
property cpu_count <=> cpu-count.text;
|
||||
property cpu_model <=> cpu-model.text;
|
||||
property cpu_vendor <=> cpu-vendor.text;
|
||||
property<int> mem_size_kb;
|
||||
property<int> buffer_mem_size_kb;
|
||||
property<int> swap_total_kb;
|
||||
property<int> swap_used_kb;
|
||||
property<int> swap_free_kb;
|
||||
property <[{dev: string, mnt: string, total: int, free: int}]> partitions;
|
||||
|
||||
StandardButton { kind: close; }
|
||||
|
||||
title: "System information";
|
||||
preferred-width: 600px;
|
||||
preferred-height: 400px;
|
||||
|
@ -177,6 +163,20 @@ SysInfo := Dialog {
|
|||
}
|
||||
}
|
||||
|
||||
StandardButton { kind: close; }
|
||||
|
||||
property os_name <=> os-name.text;
|
||||
property uptime <=> uptime.text;
|
||||
property cpu_count <=> cpu-count.text;
|
||||
property cpu_model <=> cpu-model.text;
|
||||
property cpu_vendor <=> cpu-vendor.text;
|
||||
property<int> mem_size_kb;
|
||||
property<int> buffer_mem_size_kb;
|
||||
property<int> swap_total_kb;
|
||||
property<int> swap_used_kb;
|
||||
property<int> swap_free_kb;
|
||||
property <[{dev: string, mnt: string, total: int, free: int}]> partitions;
|
||||
|
||||
callback human-unit(int) -> string;
|
||||
human-unit(unit) => {
|
||||
if (unit > 900 * 1000 * 1000) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue