fmeditor-slint/ui/object_tool_panel.slint

137 lines
3.5 KiB
Plaintext
Raw Normal View History

2024-04-10 12:28:43 +00:00
import { Metrics, DarkPalette } from "theme.slint";
import { Box, HorizontalBox, VerticalBox, Panel } from "widgets/components.slint";
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 {
p-alignment: start;
p-title: @tr("Favourites");
p-elevation: 2;
2024-04-10 12:28:43 +00:00
Panel {
p-title: "Group Name";
p-title-alignment: center;
p-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 {
p-title: "Group Name";
p-title-alignment: center;
p-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 {
p-title: @tr("Hierarchy");
p-elevation: 2;
2024-04-10 12:28:43 +00:00
vertical-stretch: 1;
HorizontalBox {
p-elevation: 2;
p-padding: 0px;
p-spacing: Metrics.spacing-md;
2024-04-10 12:28:43 +00:00
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:43:50 +00:00
Box {
p-padding: 0px;
2024-04-10 12:28:43 +00:00
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:43:50 +00:00
Box {
2024-04-10 12:28:43 +00:00
width: Metrics.size-md;
p-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:43:50 +00:00
Box {
2024-04-10 12:28:43 +00:00
width: Metrics.size-md;
p-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:43:50 +00:00
Box {
2024-04-10 12:28:43 +00:00
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
}
}
}
}