fmeditor-slint/ui/object_tool_panel.slint

139 lines
3.6 KiB
Plaintext
Raw Normal View History

2024-04-10 12:28:43 +00:00
import { Metrics, DarkPalette } from "theme.slint";
2024-04-09 21:12:54 +00:00
import { Panel } from "widgets/panel.slint";
2024-04-10 12:28:43 +00:00
import { HorizontalBox, VerticalBox } from "widgets/layout.slint";
2024-04-09 20:56:02 +00:00
2024-04-10 12:28:43 +00:00
export component ObjectToolPanel inherits VerticalBox {
2024-04-09 20:56:02 +00:00
width: 280px;
2024-04-10 12:28:43 +00:00
Text {
height: Metrics.size-md;
color: DarkPalette.text[4];
font-size: Metrics.font-lg;
text: @tr("Object Tool");
vertical-alignment: center;
}
2024-04-09 20:56:02 +00:00
2024-04-10 12:28:43 +00:00
Panel {
2024-04-10 12:40:35 +00:00
j-alignment: start;
2024-04-10 12:28:43 +00:00
title: @tr("Favourites");
j-elevation: 2;
Panel {
title: "Group Name";
title-alignment: center;
j-spacing: 0px;
2024-04-09 20:56:02 +00:00
Text {
2024-04-10 12:28:43 +00:00
height: Metrics.size-md;
color: DarkPalette.text[4];
font-size: Metrics.font-md;
text: "Object Name";
vertical-alignment: center;
}
Text {
height: Metrics.size-md;
color: DarkPalette.text[4];
font-size: Metrics.font-md;
text: "Object Name";
vertical-alignment: center;
}
Text {
height: Metrics.size-md;
color: DarkPalette.text[4];
font-size: Metrics.font-md;
text: "Object Name";
2024-04-09 20:56:02 +00:00
vertical-alignment: center;
}
}
2024-04-09 21:12:54 +00:00
Panel {
2024-04-10 12:28:43 +00:00
title: "Group Name";
title-alignment: center;
j-spacing: 0px;
2024-04-09 20:56:02 +00:00
2024-04-10 12:28:43 +00:00
Text {
height: Metrics.size-md;
color: DarkPalette.text[4];
font-size: Metrics.font-md;
text: "Object Name";
vertical-alignment: center;
}
2024-04-09 20:56:02 +00:00
2024-04-10 12:28:43 +00:00
Text {
height: Metrics.size-md;
color: DarkPalette.text[4];
font-size: Metrics.font-md;
text: "Object Name";
vertical-alignment: center;
2024-04-09 20:56:02 +00:00
}
2024-04-10 12:28:43 +00:00
Text {
height: Metrics.size-md;
color: DarkPalette.text[4];
font-size: Metrics.font-md;
text: "Object Name";
vertical-alignment: center;
}
}
}
2024-04-09 20:56:02 +00:00
2024-04-10 12:28:43 +00:00
Panel {
title: @tr("Hierarchy");
j-elevation: 2;
vertical-stretch: 1;
HorizontalBox {
j-elevation: 2;
j-padding: 0px;
j-spacing: Metrics.spacing-md;
height: Metrics.size-md;
2024-04-09 20:56:02 +00:00
2024-04-10 12:28:43 +00:00
Text {
color: DarkPalette.text[4];
font-size: Metrics.font-md;
vertical-alignment: center;
text: @tr("Name:");
2024-04-09 21:12:54 +00:00
}
2024-04-10 12:28:43 +00:00
HorizontalBox {
j-padding: 0px;
2024-04-09 21:12:54 +00:00
Text {
2024-04-10 12:28:43 +00:00
color: DarkPalette.text[4];
font-size: Metrics.font-md;
2024-04-09 21:12:54 +00:00
vertical-alignment: center;
2024-04-10 12:28:43 +00:00
horizontal-alignment: center;
text: "VicHutch (-514)";
2024-04-09 20:56:02 +00:00
}
2024-04-10 12:28:43 +00:00
}
2024-04-09 20:56:02 +00:00
2024-04-10 12:28:43 +00:00
HorizontalBox {
width: Metrics.size-md;
j-elevation: 3;
2024-04-09 20:56:02 +00:00
2024-04-10 12:28:43 +00:00
Rectangle { }
}
2024-04-09 21:12:54 +00:00
2024-04-10 12:28:43 +00:00
HorizontalBox {
width: Metrics.size-md;
j-elevation: 3;
2024-04-09 21:12:54 +00:00
2024-04-10 12:28:43 +00:00
Rectangle { }
2024-04-09 21:12:54 +00:00
}
2024-04-10 12:28:43 +00:00
}
2024-04-09 21:12:54 +00:00
2024-04-10 12:28:43 +00:00
VerticalBox {
Text {
color: DarkPalette.text[4];
font-size: Metrics.font-lg;
text: "INSERT TREE VIEW HERE";
vertical-alignment: center;
horizontal-alignment: center;
2024-04-09 20:56:02 +00:00
}
}
}
}