Changeset View
Changeset View
Standalone View
Standalone View
sddm-theme/Main.qml
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Line(s) | 53 | Repeater { | |||
---|---|---|---|---|---|
61 | } | 61 | } | ||
62 | } | 62 | } | ||
63 | } | 63 | } | ||
64 | 64 | | |||
65 | MouseArea { | 65 | MouseArea { | ||
66 | id: loginScreenRoot | 66 | id: loginScreenRoot | ||
67 | anchors.fill: parent | 67 | anchors.fill: parent | ||
68 | 68 | | |||
69 | property bool uiVisible: true | 69 | property bool uiVisible: false | ||
70 | property bool blockUI: mainStack.depth > 1 || userListComponent.mainPasswordBox.text.length > 0 || inputPanel.keyboardActive || config.type != "image" | 70 | property bool blockUI: mainStack.depth > 1 || userListComponent.mainPasswordBox.text.length > 0 || inputPanel.keyboardActive || config.type != "image" | ||
71 | 71 | | |||
72 | hoverEnabled: true | 72 | hoverEnabled: true | ||
73 | drag.filterChildren: true | 73 | drag.filterChildren: true | ||
74 | onPressed: uiVisible = true; | 74 | onPressed: uiVisible = true; | ||
75 | onPositionChanged: uiVisible = true; | 75 | onPositionChanged: uiVisible = true; | ||
76 | onUiVisibleChanged: { | 76 | onUiVisibleChanged: { | ||
77 | if (blockUI) { | 77 | if (blockUI) { | ||
Show All 15 Lines | 92 | Keys.onPressed: { | |||
93 | uiVisible = true; | 93 | uiVisible = true; | ||
94 | event.accepted = false; | 94 | event.accepted = false; | ||
95 | } | 95 | } | ||
96 | 96 | | |||
97 | //takes one full minute for the ui to disappear | 97 | //takes one full minute for the ui to disappear | ||
98 | Timer { | 98 | Timer { | ||
99 | id: fadeoutTimer | 99 | id: fadeoutTimer | ||
100 | running: true | 100 | running: true | ||
101 | interval: 60000 | 101 | interval: 10000 | ||
102 | onTriggered: { | 102 | onTriggered: { | ||
103 | if (!loginScreenRoot.blockUI) { | 103 | if (!loginScreenRoot.blockUI) { | ||
104 | loginScreenRoot.uiVisible = false; | 104 | loginScreenRoot.uiVisible = false; | ||
105 | } | 105 | } | ||
106 | } | 106 | } | ||
107 | } | 107 | } | ||
108 | WallpaperFader { | 108 | WallpaperFader { | ||
109 | visible: config.type == "image" | 109 | visible: config.type == "image" | ||
▲ Show 20 Lines • Show All 312 Lines • Show Last 20 Lines |