Changeset View
Changeset View
Standalone View
Standalone View
sddm-theme/Main.qml
Show All 14 Lines | |||||
15 | * License along with this program; if not, write to the | 15 | * License along with this program; if not, write to the | ||
16 | * Free Software Foundation, Inc., | 16 | * Free Software Foundation, Inc., | ||
17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | 17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | import QtQuick 2.8 | 20 | import QtQuick 2.8 | ||
21 | 21 | | |||
22 | import QtQuick.Layouts 1.1 | 22 | import QtQuick.Layouts 1.1 | ||
23 | import QtQuick.Controls 2.0 | 23 | import QtQuick.Controls 2.0 as QQC2 | ||
ngraham: `import QtQuick.Controls 2.5 as QQC2` | |||||
24 | import QtGraphicalEffects 1.0 | 24 | import QtGraphicalEffects 1.0 | ||
25 | 25 | | |||
26 | import org.kde.plasma.core 2.0 as PlasmaCore | 26 | import org.kde.plasma.core 2.0 as PlasmaCore | ||
27 | import org.kde.plasma.components 2.0 as PlasmaComponents | 27 | import org.kde.plasma.components 2.0 as PlasmaComponents | ||
28 | import org.kde.plasma.extras 2.0 as PlasmaExtras | 28 | import org.kde.plasma.extras 2.0 as PlasmaExtras | ||
29 | 29 | | |||
30 | import "components" | 30 | import "components" | ||
31 | 31 | | |||
▲ Show 20 Lines • Show All 111 Lines • ▼ Show 20 Line(s) | 71 | MouseArea { | |||
143 | Clock { | 143 | Clock { | ||
144 | id: clock | 144 | id: clock | ||
145 | visible: y > 0 | 145 | visible: y > 0 | ||
146 | property Item shadow: clockShadow | 146 | property Item shadow: clockShadow | ||
147 | y: (userListComponent.userList.y + mainStack.y)/2 - height/2 | 147 | y: (userListComponent.userList.y + mainStack.y)/2 - height/2 | ||
148 | anchors.horizontalCenter: parent.horizontalCenter | 148 | anchors.horizontalCenter: parent.horizontalCenter | ||
149 | } | 149 | } | ||
150 | 150 | | |||
151 | | ||||
152 | StackView { | 151 | StackView { | ||
153 | id: mainStack | 152 | id: mainStack | ||
154 | anchors { | 153 | anchors { | ||
155 | left: parent.left | 154 | left: parent.left | ||
156 | right: parent.right | 155 | right: parent.right | ||
157 | } | 156 | } | ||
158 | height: root.height + units.gridUnit * 3 | 157 | height: root.height + units.gridUnit * 3 | ||
159 | 158 | | |||
▲ Show 20 Lines • Show All 363 Lines • Show Last 20 Lines |
import QtQuick.Controls 2.5 as QQC2