Show keyboard instructions if no mouse / warning on custom repo

This commit is contained in:
Floris Bos 2021-11-23 12:09:03 +01:00
parent f5390c821a
commit b34d2a54af
4 changed files with 32 additions and 2 deletions

View file

@ -83,7 +83,7 @@ ApplicationWindow {
anchors.rightMargin: 50
anchors.leftMargin: 50
rows: 4
rows: 6
columns: 3
columnSpacing: 25
@ -269,6 +269,24 @@ ApplicationWindow {
}
}
Text {
Layout.columnSpan: 3
color: "#ffffff"
font.pixelSize: 18
font.family: roboto.name
visible: imageWriter.isEmbeddedMode() && imageWriter.customRepo()
text: qsTr("Using custom repository: %1").arg(imageWriter.constantOsListUrl())
}
Text {
Layout.columnSpan: 3
color: "#ffffff"
font.pixelSize: 18
font.family: roboto.name
visible: !imageWriter.hasMouse()
text: qsTr("Keyboard navigation: <tab> navigate to next button <space> press button/select item <arrow up/down> go up/down in lists")
}
RowLayout {
id: langbar
Layout.columnSpan: 3