Themes: hide LayoutBox when keyboard model is empty or disabled

This commit is contained in:
Aleksei Bavshin 2024-01-30 21:10:15 -08:00 committed by Fabian Vogt
parent 71b2171f02
commit 8d32f3261e
4 changed files with 14 additions and 0 deletions

View File

@ -270,6 +270,8 @@ Rectangle {
height: parent.height
anchors.verticalCenter: parent.verticalCenter
visible: layoutBox.visible
text: textConstants.layout
font.pixelSize: 14
verticalAlignment: Text.AlignVCenter
@ -281,6 +283,8 @@ Rectangle {
anchors.verticalCenter: parent.verticalCenter
font.pixelSize: 14
visible: keyboard.enabled && keyboard.layouts.length > 0
arrowIcon: "angle-down.png"
KeyNavigation.backtab: session; KeyNavigation.tab: user_entry

View File

@ -201,6 +201,8 @@ Rectangle {
spacing : 4
anchors.bottom: parent.bottom
visible: keyboard.enabled && keyboard.layouts.length > 0
Text {
id: lblLayout
width: parent.width

View File

@ -239,6 +239,8 @@ Rectangle {
width : spUnit * 2
height : parent.height
visible : keyboard.enabled && keyboard.layouts.length > 0
color : primaryHue1
borderColor : primaryHue3
focusColor : accentLight
@ -261,6 +263,8 @@ Rectangle {
text : textConstants.layout
visible : maya_layout.visible
color : normalText
font.family : opensans_cond_light.name

View File

@ -236,6 +236,8 @@ Rectangle {
height: parent.height
anchors.verticalCenter: parent.verticalCenter
visible: layoutBox.visible
text: textConstants.layout
font.pixelSize: 16
verticalAlignment: Text.AlignVCenter
@ -247,6 +249,8 @@ Rectangle {
anchors.verticalCenter: parent.verticalCenter
font.pixelSize: 14
visible: keyboard.enabled && keyboard.layouts.length > 0
arrowIcon: "angle-down.png"
KeyNavigation.backtab: session; KeyNavigation.tab: btnShutdown