Skip to content

Commit e0750e5

Browse files
committed
[L&F] update LockScreen for Materia Dark/Light #149
1 parent d729aa7 commit e0750e5

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

plasma/look-and-feel/com.github.varlesh.materia-dark/contents/lockscreen/LockScreenUi.qml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,12 @@ PlasmaCore.ColorScope {
141141
if (blockUI) {
142142
fadeoutTimer.running = false;
143143
} else if (uiVisible) {
144+
mainBlock.mainPasswordBox.forceActiveFocus();
144145
fadeoutTimer.restart();
145146
}
147+
if (!uiVisible) {
148+
lockScreenRoot.forceActiveFocus();
149+
}
146150
if (!calledUnlock) {
147151
calledUnlock = true
148152
authenticator.tryUnlock();

plasma/look-and-feel/com.github.varlesh.materia-light/contents/lockscreen/LockScreenUi.qml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,11 @@ PlasmaCore.ColorScope {
141141
if (blockUI) {
142142
fadeoutTimer.running = false;
143143
} else if (uiVisible) {
144+
mainBlock.mainPasswordBox.forceActiveFocus();
144145
fadeoutTimer.restart();
146+
if (!uiVisible) {
147+
lockScreenRoot.forceActiveFocus();
148+
}
145149
}
146150
if (!calledUnlock) {
147151
calledUnlock = true

0 commit comments

Comments
 (0)