fmeditor-slint/ui/object_tool_panel.slint

161 lines
5.0 KiB
Plaintext
Raw Normal View History

import { Metrics } from "theme.slint";
2024-04-09 21:12:54 +00:00
import { Panel } from "widgets/panel.slint";
2024-04-09 20:56:02 +00:00
export component ObjectToolPanel inherits Rectangle {
width: 280px;
border-color: black;
border-width: 1px;
VerticalLayout {
padding: Metrics.padding-md;
spacing: Metrics.spacing-md;
2024-04-09 20:56:02 +00:00
HorizontalLayout {
height: Metrics.size-md;
2024-04-09 20:56:02 +00:00
Text {
font-size: Metrics.font-lg;
2024-04-09 20:56:02 +00:00
text: @tr("Object Tool");
vertical-alignment: center;
}
}
2024-04-09 21:12:54 +00:00
Panel {
title: @tr("Favourites");
2024-04-09 20:56:02 +00:00
2024-04-09 21:12:54 +00:00
Panel {
title: "Group Name";
title-alignment: center;
content-padding: 0px;
content-spacing: 0px;
HorizontalLayout {
height: Metrics.size-md;
padding-left: Metrics.padding-md;
padding-right: Metrics.padding-md;
2024-04-09 21:12:54 +00:00
Text {
font-size: Metrics.font-md;
2024-04-09 21:12:54 +00:00
text: "Object Name";
vertical-alignment: center;
2024-04-09 20:56:02 +00:00
}
}
2024-04-09 21:12:54 +00:00
HorizontalLayout {
height: Metrics.size-md;
padding-left: Metrics.padding-md;
padding-right: Metrics.padding-md;
2024-04-09 21:12:54 +00:00
Text {
font-size: Metrics.font-md;
2024-04-09 21:12:54 +00:00
text: "Object Name";
vertical-alignment: center;
2024-04-09 20:56:02 +00:00
}
}
2024-04-09 21:12:54 +00:00
HorizontalLayout {
height: Metrics.size-md;
padding-left: Metrics.padding-md;
padding-right: Metrics.padding-md;
2024-04-09 21:12:54 +00:00
Text {
font-size: Metrics.font-md;
2024-04-09 21:12:54 +00:00
text: "Object Name";
vertical-alignment: center;
2024-04-09 20:56:02 +00:00
}
}
}
2024-04-09 21:12:54 +00:00
Panel {
title: "Group Name";
title-alignment: center;
content-padding: 0px;
content-spacing: 0px;
HorizontalLayout {
height: Metrics.size-md;
padding-left: Metrics.padding-md;
padding-right: Metrics.padding-md;
2024-04-09 21:12:54 +00:00
Text {
font-size: Metrics.font-md;
2024-04-09 21:12:54 +00:00
text: "Object Name";
vertical-alignment: center;
}
}
2024-04-09 20:56:02 +00:00
2024-04-09 21:12:54 +00:00
HorizontalLayout {
height: Metrics.size-md;
padding-left: Metrics.padding-md;
padding-right: Metrics.padding-md;
2024-04-09 21:12:54 +00:00
Text {
font-size: Metrics.font-md;
2024-04-09 21:12:54 +00:00
text: "Object Name";
vertical-alignment: center;
}
}
2024-04-09 20:56:02 +00:00
2024-04-09 21:12:54 +00:00
HorizontalLayout {
height: Metrics.size-md;
padding-left: Metrics.padding-md;
padding-right: Metrics.padding-md;
2024-04-09 21:12:54 +00:00
Text {
font-size: Metrics.font-md;
2024-04-09 21:12:54 +00:00
text: "Object Name";
vertical-alignment: center;
}
}
}
}
Panel {
title: @tr("Hierarchy");
HorizontalLayout {
spacing: Metrics.spacing-md;
height: Metrics.size-md;
2024-04-09 21:12:54 +00:00
Text {
font-size: Metrics.font-md;
2024-04-09 21:12:54 +00:00
vertical-alignment: center;
text: @tr("Name:");
}
Rectangle {
2024-04-09 20:56:02 +00:00
border-color: black;
border-width: 1px;
border-radius: Metrics.radius-md;
2024-04-09 21:12:54 +00:00
Text {
font-size: Metrics.font-md;
2024-04-09 21:12:54 +00:00
vertical-alignment: center;
horizontal-alignment: left;
text: "VicHutch (-514)";
2024-04-09 20:56:02 +00:00
}
}
2024-04-09 21:12:54 +00:00
Rectangle {
border-color: black;
border-width: 1px;
border-radius: Metrics.radius-md;
2024-04-09 20:56:02 +00:00
width: Metrics.size-md;
2024-04-09 21:12:54 +00:00
}
Rectangle {
border-color: black;
border-width: 1px;
border-radius: Metrics.radius-md;
2024-04-09 21:12:54 +00:00
width: Metrics.size-md;
2024-04-09 21:12:54 +00:00
}
}
Rectangle {
border-color: black;
border-width: 1px;
border-radius: Metrics.radius-md;
2024-04-09 21:12:54 +00:00
clip: true;
Text {
font-size: Metrics.font-lg;
2024-04-09 21:12:54 +00:00
text: "INSERT TREE VIEW HERE";
vertical-alignment: center;
horizontal-alignment: center;
2024-04-09 20:56:02 +00:00
}
}
}
}
}