added a way to position the interface

This commit is contained in:
eximus
2017-08-01 20:48:02 +01:00
parent 2ec32b7c60
commit bd4f93b96a
4 changed files with 8 additions and 14 deletions

View File

@@ -86,10 +86,9 @@ Rectangle {
Clock {
id: clock
y: parent.height * 0.60
y: parent.height * config.relativePositionY - clock.height / 2
x: parent.width * config.relativePositionX - clock.width / 2
color: "white"
anchors.left: parent.left
anchors.leftMargin: parent.width * 0.1
timeFont.family: textFont.name
dateFont.family: textFont.name
}
@@ -102,8 +101,7 @@ Rectangle {
width: clock.width
height: parent.height * 0.08
color: "transparent"
anchors.left: parent.left
anchors.leftMargin: parent.width * 0.1
anchors.left: clock.left
Rectangle {
id: username_row