Skip to content
Snippets Groups Projects
Commit 3ee85451 authored by Mitch Curtis's avatar Mitch Curtis
Browse files

Add remaining static, non-interactive items and use inline components

parent 46cde16e
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,16 @@ Window {
maximumHeight: minimumHeight
visible: true
FontLoader {
id: russoFontLoader
source: "fonts/RussoOne-Regular.ttf"
}
FontLoader {
id: prismaFontLoader
source: "fonts/Prisma.ttf"
}
// Steel texture.
Image {
source: "assets/Guitar-Pedal-Background.png"
......@@ -21,32 +31,100 @@ Window {
anchors.topMargin: 17
anchors.bottomMargin: 17
// Top-left screw.
Image {
component ScrewImage: Image {
source: "assets/Screw.png"
}
// Top-left screw.
ScrewImage {
anchors.left: parent.left
anchors.top: parent.top
}
// Top-right screw.
Image {
source: "assets/Screw.png"
ScrewImage {
anchors.right: parent.right
anchors.top: parent.top
}
// Bottom-left screw.
Image {
source: "assets/Screw.png"
ScrewImage {
anchors.left: parent.left
anchors.bottom: parent.bottom
}
// Bottom-right screw.
Image {
source: "assets/Screw.png"
ScrewImage {
anchors.right: parent.right
anchors.bottom: parent.bottom
}
// Customized text for static labels.
component DeviceText: Text {
color: "#191919"
font.family: russoFontLoader.font.family
font.weight: russoFontLoader.font.weight
font.pixelSize: 9
}
component InfoText: Column {
id: infoLabel
spacing: 5
property alias text: label.text
property alias font: label.font
property int lineWidth: 200
property int lineHeight: 2
property color lineColor: "#191919"
Rectangle {
width: infoLabel.lineWidth
height: infoLabel.lineHeight
color: infoLabel.lineColor
}
DeviceText {
id: label
anchors.horizontalCenter: infoLabel.horizontalCenter
}
Rectangle {
width: infoLabel.lineWidth
height: infoLabel.lineHeight
color: infoLabel.lineColor
}
}
// Brand Label
InfoText {
id: brand
text: qsTr("TIME BLENDER")
anchors.top: parent.verticalCenter
anchors.topMargin: 16
anchors.horizontalCenter: parent.horizontalCenter
spacing: 10
font.family: prismaFontLoader.font.family
font.pixelSize: 18
}
// Input Label
InfoText {
text: qsTr("IN")
anchors.top: parent.top
anchors.topMargin: 60
anchors.right: parent.right
lineWidth: 30
lineHeight: 2
}
// Output label
InfoText {
anchors.top: parent.top
anchors.topMargin: 60
anchors.left: parent.left
text: qsTr("OUT")
lineWidth: 30
lineHeight: 2
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment