Switch from Qt6 to Slint

This commit is contained in:
Vyn 2024-08-16 21:35:12 +02:00
parent f8be14bcf8
commit 63bf267a22
107 changed files with 27532 additions and 2896 deletions

View file

@ -0,0 +1,22 @@
import { Palette } from "Palette.slint";
import { VText } from "Text.slint";
export component VLabeledComponent {
in property<string> label <=> labelComponent.text;
in property<bool> enabled: true;
VerticalLayout {
labelComponent := VText {
}
Rectangle {
background: enabled ? Palette.control-background : Palette.control-background.darker(0.2);
border-radius: 4px;
VerticalLayout {
padding: 4px;
@children
}
}
}
}