Files
asusctl/rog-control-center/ui/pages/fans.slint
2024-03-12 21:33:39 +13:00

49 lines
920 B
Plaintext

import { Palette } from "std-widgets.slint";
import { Graph } from "../widgets/graph.slint";
export struct Node { x: length, y: length}
export component PageFans inherits VerticalLayout {
in-out property <[Node]> nodes: [
{
x: 10px,
y: 10px,
},
{
x: 40px,
y: 30px,
},
{
x: 70px,
y: 50px,
},
{
x: 100px,
y: 70px,
},
{
x: 130px,
y: 90px,
},
{
x: 160px,
y: 110px,
},
{
x: 190px,
y: 130px,
},
{
x: 220px,
y: 150px,
},
];
HorizontalLayout {
Graph {
// width: root.preferred-width;
// height: root.preferred-height;
nodes <=> root.nodes;
}
}
}