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

View File

@@ -36,9 +36,9 @@ You can change a few settings in this file
- `displayFont` - font
- `showLoginButton` - if set to false will hide the login button
- `passwordLeftMargin` and `usernameLeftMargin` - set margin between input boxes and labels, some fonts are messy and allows fixing of overlap
- `relativePositionX` and `relativePositionY` - position the login text box and clock
Example my config (not the same as the screenshots):
Example config (not the same as the screenshots):
```
[General]

View File

@@ -4,3 +4,6 @@ background_day=playlist_day.m3u
background_night=playlist_night.m3u
displayFont="Droid Sans Mono for Powerline"
showLoginButton=true
relativePositionX=0.3
relativePositionY=0.7

View File

@@ -1,7 +0,0 @@
[General]
background_day=playlist_day.m3u
background_night=playlist_night.m3u
displayFont="Misc Fixed"
showLoginButton=false
passwordLeftMargin=15
usernameLeftMargin=15