feat: add config option to hide top bar

This commit is contained in:
David Cumps
2019-07-16 02:33:00 +02:00
parent 42650e2070
commit 7345df0367
4 changed files with 5 additions and 0 deletions

View File

@@ -376,6 +376,7 @@ Rectangle {
anchors.top: parent.top; anchors.top: parent.top;
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
color: "transparent" color: "transparent"
visible: config.showTopBar != "false"
Row { Row {
id: row_left id: row_left

View File

@@ -56,6 +56,7 @@ You can change a few settings in this file
- `showClearPasswordButton` - if set to false will hide the clear password button that appears when text is inputed - `showClearPasswordButton` - if set to false will hide the clear password button that appears when text is inputed
- `passwordLeftMargin` and `usernameLeftMargin` - set margin between input boxes and labels, some fonts are messy and allows fixing of overlap - `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 - `relativePositionX` and `relativePositionY` - position the login text box and clock
- `showTopBar` - if set to false will hide the wm/keyboard top bar
Example config (not the same as the screenshots): Example config (not the same as the screenshots):
@@ -67,6 +68,7 @@ displayFont="Misc Fixed"
showLoginButton=false showLoginButton=false
passwordLeftMargin=15 passwordLeftMargin=15
usernameLeftMargin=15 usernameLeftMargin=15
showTopBar=true
``` ```
## Preview ## Preview

View File

@@ -8,3 +8,4 @@ passwordLeftMargin=15
usernameLeftMargin=15 usernameLeftMargin=15
relativePositionX=0.3 relativePositionX=0.3
relativePositionY=0.7 relativePositionY=0.7
showTopBar=true

View File

@@ -8,3 +8,4 @@ relativePositionY=0.75
showLoginButton=false showLoginButton=false
type=color type=color
usernameLeftMargin=15 usernameLeftMargin=15
showTopBar=true