mirror of
https://github.com/sddm/sddm.git
synced 2024-11-23 10:04:17 +08:00
Themes: hide LayoutBox when keyboard model is empty or disabled
This commit is contained in:
parent
71b2171f02
commit
8d32f3261e
@ -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
|
||||
|
@ -201,6 +201,8 @@ Rectangle {
|
||||
spacing : 4
|
||||
anchors.bottom: parent.bottom
|
||||
|
||||
visible: keyboard.enabled && keyboard.layouts.length > 0
|
||||
|
||||
Text {
|
||||
id: lblLayout
|
||||
width: parent.width
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user