added a way to position the interface
This commit is contained in:
8
Main.qml
8
Main.qml
@@ -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
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
[General]
|
||||
background_day=playlist_day.m3u
|
||||
background_night=playlist_night.m3u
|
||||
displayFont="Misc Fixed"
|
||||
showLoginButton=false
|
||||
passwordLeftMargin=15
|
||||
usernameLeftMargin=15
|
||||
Reference in New Issue
Block a user