Refactor and cleanup theming

This commit is contained in:
Luke D. Jones
2024-03-11 22:26:26 +13:00
parent c7b1624313
commit 9725062fb9
18 changed files with 570 additions and 333 deletions

View File

@@ -1,6 +1,4 @@
import { ValueBar } from "../widgets/common.slint";
import { Theme } from "../globals.slint";
import { AboutSlint } from "std-widgets.slint";
import { AboutSlint, VerticalBox, HorizontalBox } from "std-widgets.slint";
export component PageAbout inherits VerticalLayout {
padding: 10px;
@@ -12,6 +10,35 @@ export component PageAbout inherits VerticalLayout {
font-size: 22px;
}
HorizontalBox {
alignment: LayoutAlignment.center;
VerticalBox {
alignment: LayoutAlignment.center;
Text {
vertical-alignment: TextVerticalAlignment.center;
horizontal-alignment: TextHorizontalAlignment.center;
text: "Todo:";
font-size: 22px;
}
Text {
text: "- [x] Theme the widgets";
}
Text {
text: "- [x] Add a cpu/gpu temp/fan speed info bar";
}
Text {
text: "- [ ] Supergfx control";
}
Text {
text: "- [ ] Include fan speeds, temps in a bottom bar";
}
}
}
Text {
vertical-alignment: TextVerticalAlignment.center;
horizontal-alignment: TextHorizontalAlignment.center;