Changeset View
Changeset View
Standalone View
Standalone View
sddm-theme/Main.qml
Show First 20 Lines • Show All 72 Lines • ▼ Show 20 Line(s) | 71 | MouseArea { | |||
---|---|---|---|---|---|
73 | anchors.fill: parent | 73 | anchors.fill: parent | ||
74 | 74 | | |||
75 | property bool uiVisible: true | 75 | property bool uiVisible: true | ||
76 | property bool blockUI: mainStack.depth > 1 || userListComponent.mainPasswordBox.text.length > 0 || inputPanel.keyboardActive || config.type !== "image" | 76 | property bool blockUI: mainStack.depth > 1 || userListComponent.mainPasswordBox.text.length > 0 || inputPanel.keyboardActive || config.type !== "image" | ||
77 | 77 | | |||
78 | hoverEnabled: true | 78 | hoverEnabled: true | ||
79 | drag.filterChildren: true | 79 | drag.filterChildren: true | ||
80 | onPressed: uiVisible = true; | 80 | onPressed: uiVisible = true; | ||
81 | onPositionChanged: uiVisible = true; | 81 | function onPositionChanged() { uiVisible = true; } | ||
82 | onUiVisibleChanged: { | 82 | function onUiVisibleChanged() { | ||
83 | if (blockUI) { | 83 | if (blockUI) { | ||
84 | fadeoutTimer.running = false; | 84 | fadeoutTimer.running = false; | ||
85 | } else if (uiVisible) { | 85 | } else if (uiVisible) { | ||
86 | fadeoutTimer.restart(); | 86 | fadeoutTimer.restart(); | ||
87 | } | 87 | } | ||
88 | } | 88 | } | ||
89 | onBlockUIChanged: { | 89 | function onBlockUIChanged() { | ||
90 | if (blockUI) { | 90 | if (blockUI) { | ||
91 | fadeoutTimer.running = false; | 91 | fadeoutTimer.running = false; | ||
92 | uiVisible = true; | 92 | uiVisible = true; | ||
93 | } else { | 93 | } else { | ||
94 | fadeoutTimer.restart(); | 94 | fadeoutTimer.restart(); | ||
95 | } | 95 | } | ||
96 | } | 96 | } | ||
97 | 97 | | |||
▲ Show 20 Lines • Show All 143 Lines • ▼ Show 20 Line(s) | 238 | Behavior on opacity { | |||
241 | } | 241 | } | ||
242 | } | 242 | } | ||
243 | } | 243 | } | ||
244 | 244 | | |||
245 | Loader { | 245 | Loader { | ||
246 | id: inputPanel | 246 | id: inputPanel | ||
247 | state: "hidden" | 247 | state: "hidden" | ||
248 | property bool keyboardActive: item ? item.active : false | 248 | property bool keyboardActive: item ? item.active : false | ||
249 | onKeyboardActiveChanged: { | 249 | function onKeyboardActiveChanged() { | ||
250 | if (keyboardActive) { | 250 | if (keyboardActive) { | ||
251 | state = "visible" | 251 | state = "visible" | ||
252 | } else { | 252 | } else { | ||
253 | state = "hidden"; | 253 | state = "hidden"; | ||
254 | } | 254 | } | ||
255 | } | 255 | } | ||
256 | source: "components/VirtualKeyboard.qml" | 256 | source: "components/VirtualKeyboard.qml" | ||
257 | anchors { | 257 | anchors { | ||
▲ Show 20 Lines • Show All 246 Lines • ▼ Show 20 Line(s) | 503 | onLoginSucceeded: { | |||
504 | //note SDDM will kill the greeter at some random point after this | 504 | //note SDDM will kill the greeter at some random point after this | ||
505 | //there is no certainty any transition will finish, it depends on the time it | 505 | //there is no certainty any transition will finish, it depends on the time it | ||
506 | //takes to complete the init | 506 | //takes to complete the init | ||
507 | mainStack.opacity = 0 | 507 | mainStack.opacity = 0 | ||
508 | footer.opacity = 0 | 508 | footer.opacity = 0 | ||
509 | } | 509 | } | ||
510 | } | 510 | } | ||
511 | 511 | | |||
512 | onNotificationMessageChanged: { | 512 | function onNotificationMessageChanged() { | ||
513 | if (notificationMessage) { | 513 | if (notificationMessage) { | ||
514 | notificationResetTimer.start(); | 514 | notificationResetTimer.start(); | ||
515 | } | 515 | } | ||
516 | } | 516 | } | ||
517 | 517 | | |||
518 | Timer { | 518 | Timer { | ||
519 | id: notificationResetTimer | 519 | id: notificationResetTimer | ||
520 | interval: 3000 | 520 | interval: 3000 | ||
521 | onTriggered: notificationMessage = "" | 521 | onTriggered: notificationMessage = "" | ||
522 | } | 522 | } | ||
523 | } | 523 | } |