Changeset View
Changeset View
Standalone View
Standalone View
sddm-theme/SessionButton.qml
Show All 28 Lines | 27 | PlasmaComponents.ToolButton { | |||
---|---|---|---|---|---|
29 | property int currentIndex: -1 | 29 | property int currentIndex: -1 | ||
30 | 30 | | |||
31 | implicitWidth: minimumWidth | 31 | implicitWidth: minimumWidth | ||
32 | 32 | | |||
33 | visible: menu.items.length > 1 | 33 | visible: menu.items.length > 1 | ||
34 | 34 | | |||
35 | text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Desktop Session: %1", instantiator.objectAt(currentIndex).text || "") | 35 | text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Desktop Session: %1", instantiator.objectAt(currentIndex).text || "") | ||
36 | 36 | | |||
37 | font.pointSize: config.fontSize | ||||
38 | | ||||
37 | Component.onCompleted: { | 39 | Component.onCompleted: { | ||
38 | currentIndex = sessionModel.lastIndex | 40 | currentIndex = sessionModel.lastIndex | ||
39 | } | 41 | } | ||
40 | 42 | | |||
41 | menu: QQC.Menu { | 43 | menu: QQC.Menu { | ||
42 | id: menu | 44 | id: menu | ||
43 | Instantiator { | 45 | Instantiator { | ||
44 | id: instantiator | 46 | id: instantiator | ||
Show All 12 Lines |