149 lines
3.9 KiB
Plaintext
149 lines
3.9 KiB
Plaintext
import { Metrics, DarkPalette } from "theme.slint";
|
|
import { Panel } from "widgets/panel.slint";
|
|
import { HorizontalBox, VerticalBox } from "widgets/layout.slint";
|
|
|
|
|
|
export component ObjectToolPanel inherits VerticalBox {
|
|
width: 280px;
|
|
j-rounding: Metrics.radius-md;
|
|
j-alignment: stretch;
|
|
|
|
Text {
|
|
height: Metrics.size-md;
|
|
color: DarkPalette.text[4];
|
|
font-size: Metrics.font-lg;
|
|
text: @tr("Object Tool");
|
|
vertical-alignment: center;
|
|
}
|
|
|
|
Panel {
|
|
title: @tr("Favourites");
|
|
j-elevation: 2;
|
|
|
|
Panel {
|
|
title: "Group Name";
|
|
title-alignment: center;
|
|
j-spacing: 0px;
|
|
|
|
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";
|
|
vertical-alignment: center;
|
|
}
|
|
|
|
Text {
|
|
height: Metrics.size-md;
|
|
color: DarkPalette.text[4];
|
|
font-size: Metrics.font-md;
|
|
text: "Object Name";
|
|
vertical-alignment: center;
|
|
}
|
|
}
|
|
|
|
Panel {
|
|
title: "Group Name";
|
|
title-alignment: center;
|
|
j-spacing: 0px;
|
|
|
|
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";
|
|
vertical-alignment: center;
|
|
}
|
|
|
|
Text {
|
|
height: Metrics.size-md;
|
|
color: DarkPalette.text[4];
|
|
font-size: Metrics.font-md;
|
|
text: "Object Name";
|
|
vertical-alignment: center;
|
|
}
|
|
}
|
|
}
|
|
|
|
Panel {
|
|
title: @tr("Hierarchy");
|
|
j-elevation: 2;
|
|
j-alignment: stretch;
|
|
vertical-stretch: 1;
|
|
|
|
HorizontalBox {
|
|
j-alignment: stretch;
|
|
j-elevation: 2;
|
|
j-padding: 0px;
|
|
j-spacing: Metrics.spacing-md;
|
|
height: Metrics.size-md;
|
|
|
|
Text {
|
|
color: DarkPalette.text[4];
|
|
font-size: Metrics.font-md;
|
|
vertical-alignment: center;
|
|
text: @tr("Name:");
|
|
}
|
|
|
|
HorizontalBox {
|
|
j-alignment: stretch;
|
|
j-rounding: Metrics.radius-md;
|
|
j-padding: 0px;
|
|
|
|
Text {
|
|
color: DarkPalette.text[4];
|
|
font-size: Metrics.font-md;
|
|
vertical-alignment: center;
|
|
horizontal-alignment: center;
|
|
text: "VicHutch (-514)";
|
|
}
|
|
}
|
|
|
|
HorizontalBox {
|
|
width: Metrics.size-md;
|
|
j-rounding: Metrics.radius-md;
|
|
j-elevation: 3;
|
|
|
|
Rectangle { }
|
|
}
|
|
|
|
HorizontalBox {
|
|
width: Metrics.size-md;
|
|
j-rounding: Metrics.radius-md;
|
|
j-elevation: 3;
|
|
|
|
Rectangle { }
|
|
}
|
|
}
|
|
|
|
VerticalBox {
|
|
j-alignment: stretch;
|
|
j-rounding: Metrics.radius-md;
|
|
|
|
Text {
|
|
color: DarkPalette.text[4];
|
|
font-size: Metrics.font-lg;
|
|
text: "INSERT TREE VIEW HERE";
|
|
vertical-alignment: center;
|
|
horizontal-alignment: center;
|
|
}
|
|
}
|
|
}
|
|
}
|