@ -29,6 +29,11 @@ import org.kde.plasma.extras 2.0 as PlasmaExtras
import "components"
/ / T O D O : O n c e S D D M 0 . 1 9 i s r e l e a s e d a n d w e a r e s e t t i n g t h e f o n t s i z e u s i n g t h e
/ / S D D M K C M ' s s y n c i n g f e a t u r e , r e m o v e t h e ` c o n f i g . f o n t S i z e ` o v e r r i d e s h e r e a n d
/ / t h e f o n t S i z e p r o p e r t i e s i n v a r i o u s c o m p o n e n t s , b e c a u s e t h e t h e m e ' s d e f a u l t
/ / f o n t s i z e w i l l b e c o r r e c t l y p r o p a g a t e d t o t h e l o g i n s c r e e n
PlasmaCore . ColorScope {
id: root
@ -203,6 +208,7 @@ PlasmaCore.ColorScope {
ActionButton {
iconSource: "system-suspend"
text: i18ndc ( "plasma_lookandfeel_org.kde.lookandfeel" , "Suspend to RAM" , "Sleep" )
fontSize: parseInt ( config . fontSize ) + 1
onClicked: sddm . suspend ( )
enabled: sddm . canSuspend
visible: ! inputPanel . keyboardActive
@ -210,6 +216,7 @@ PlasmaCore.ColorScope {
ActionButton {
iconSource: "system-reboot"
text: i18nd ( "plasma_lookandfeel_org.kde.lookandfeel" , "Restart" )
fontSize: parseInt ( config . fontSize ) + 1
onClicked: sddm . reboot ( )
enabled: sddm . canReboot
visible: ! inputPanel . keyboardActive
@ -217,6 +224,7 @@ PlasmaCore.ColorScope {
ActionButton {
iconSource: "system-shutdown"
text: i18nd ( "plasma_lookandfeel_org.kde.lookandfeel" , "Shut Down" )
fontSize: parseInt ( config . fontSize ) + 1
onClicked: sddm . powerOff ( )
enabled: sddm . canPowerOff
visible: ! inputPanel . keyboardActive
@ -224,6 +232,7 @@ PlasmaCore.ColorScope {
ActionButton {
iconSource: "system-user-prompt"
text: i18ndc ( "plasma_lookandfeel_org.kde.lookandfeel" , "For switching to a username and password prompt" , "Other..." )
fontSize: parseInt ( config . fontSize ) + 1
onClicked: mainStack . push ( userPromptComponent )
enabled: true
visible: ! userListComponent . showUsernamePrompt && ! inputPanel . keyboardActive
@ -361,6 +370,7 @@ PlasmaCore.ColorScope {
showUsernamePrompt: true
notificationMessage: root . notificationMessage
loginScreenUiVisible: loginScreenRoot . uiVisible
fontSize: parseInt ( config . fontSize ) + 2
/ / u s i n g a m o d e l r a t h e r t h a n a Q O b j e c t l i s t t o a v o i d Q T B U G - 7 5 9 0 0
userListModel: ListModel {
@ -383,6 +393,7 @@ PlasmaCore.ColorScope {
ActionButton {
iconSource: "system-suspend"
text: i18ndc ( "plasma_lookandfeel_org.kde.lookandfeel" , "Suspend to RAM" , "Sleep" )
fontSize: parseInt ( config . fontSize ) + 1
onClicked: sddm . suspend ( )
enabled: sddm . canSuspend
visible: ! inputPanel . keyboardActive
@ -390,6 +401,7 @@ PlasmaCore.ColorScope {
ActionButton {
iconSource: "system-reboot"
text: i18nd ( "plasma_lookandfeel_org.kde.lookandfeel" , "Restart" )
fontSize: parseInt ( config . fontSize ) + 1
onClicked: sddm . reboot ( )
enabled: sddm . canReboot
visible: ! inputPanel . keyboardActive
@ -397,6 +409,7 @@ PlasmaCore.ColorScope {
ActionButton {
iconSource: "system-shutdown"
text: i18nd ( "plasma_lookandfeel_org.kde.lookandfeel" , "Shut Down" )
fontSize: parseInt ( config . fontSize ) + 1
onClicked: sddm . powerOff ( )
enabled: sddm . canPowerOff
visible: ! inputPanel . keyboardActive
@ -404,6 +417,7 @@ PlasmaCore.ColorScope {
ActionButton {
iconSource: "system-user-list"
text: i18nd ( "plasma_lookandfeel_org.kde.lookandfeel" , "List Users" )
fontSize: parseInt ( config . fontSize ) + 1
onClicked: mainStack . pop ( )
visible: ! inputPanel . keyboardActive
}
@ -460,7 +474,7 @@ PlasmaCore.ColorScope {
bottom: parent . bottom
left: parent . left
right: parent . right
margins: u nits. smallSpacing
margins: PlasmaCore . U nits. smallSpacing
}
Behavior on opacity {
@ -478,17 +492,21 @@ PlasmaCore.ColorScope {
}
KeyboardButton {
font.pointSize: config . fontSize
}
SessionButton {
id: sessionButton
font.pointSize: config . fontSize
}
Item {
Layout.fillWidth: true
}
Battery { }
Battery {
fontSize: config . fontSize
}
}
}