Create GUI for project tab

This commit is contained in:
Jaby 2025-03-13 19:58:51 +01:00
parent 58c105ac03
commit ab5c7efce8
1 changed files with 58 additions and 6 deletions

View File

@ -1,4 +1,4 @@
import { Button, TabWidget, LineEdit, GroupBox, ComboBox } from "std-widgets.slint"; import { Button, TabWidget, LineEdit, GroupBox, ComboBox, CheckBox } from "std-widgets.slint";
export enum State { export enum State {
Project, Project,
@ -6,11 +6,63 @@ export enum State {
} }
component ProjectWidget inherits Rectangle { component ProjectWidget inherits Rectangle {
Text { background: #D0D0D0;
text: "Projects not supported yet";
color: #FF0000; VerticalLayout {
font-size: 30pt; alignment: start;
font-weight: 800; padding: 4px;
GroupBox {
title: "Open Project";
VerticalLayout {
alignment: start;
Text {
text: "Select a project to open. Any existing changes will be dropped";
}
HorizontalLayout {
alignment: start;
LineEdit {
width: 300pt;
}
Button {
text: "Browse";
}
}
HorizontalLayout {
alignment: start;
Button {
text: "Load";
}
}
}
}
GroupBox {
title: "Save Project";
VerticalLayout {
alignment: start;
padding: 4px;
Text {
text: "Save the current project";
}
HorizontalLayout {
alignment: start;
LineEdit {
width: 300pt;
}
Button {
text: "Browse";
}
}
CheckBox {
text: "Use relative path for files";
}
HorizontalLayout {
alignment: start;
Button {
text: "Save";
}
}
}
}
} }
} }