Changeset View
Changeset View
Standalone View
Standalone View
sidebar/package/contents/ui/introPage.qml
- This file was copied to sidebar/package/contents/ui/IntroIcon.qml.
Show All 15 Lines | 1 | /* | |||
---|---|---|---|---|---|
16 | Boston, MA 02110-1301, USA. | 16 | Boston, MA 02110-1301, USA. | ||
17 | */ | 17 | */ | ||
18 | 18 | | |||
19 | import QtQuick 2.1 | 19 | import QtQuick 2.1 | ||
20 | import QtQuick.Layouts 1.1 | 20 | import QtQuick.Layouts 1.1 | ||
21 | import org.kde.kirigami 2.1 as Kirigami | 21 | import org.kde.kirigami 2.1 as Kirigami | ||
22 | 22 | | |||
23 | Rectangle { | 23 | Rectangle { | ||
24 | id: root | ||||
24 | color: Kirigami.Theme.backgroundColor | 25 | color: Kirigami.Theme.backgroundColor | ||
25 | ColumnLayout { | 26 | ColumnLayout { | ||
26 | anchors { | 27 | anchors { | ||
27 | top: parent.top | 28 | bottom: separator.top | ||
28 | bottom: parent.bottom | 29 | bottomMargin: Kirigami.Units.largeSpacing | ||
29 | horizontalCenter: parent.horizontalCenter | 30 | horizontalCenter: parent.horizontalCenter | ||
30 | } | 31 | } | ||
31 | Item { | | |||
32 | Layout.fillHeight: true | | |||
33 | } | | |||
34 | Kirigami.Icon { | 32 | Kirigami.Icon { | ||
35 | Layout.alignment: Qt.AlignHCenter | 33 | Layout.alignment: Qt.AlignHCenter | ||
36 | source: "systemsettings" | 34 | source: "systemsettings" | ||
37 | width: Kirigami.Units.iconSizes.enormous | 35 | width: Kirigami.Units.iconSizes.enormous | ||
38 | height: width | 36 | height: width | ||
39 | opacity: 0.3 | 37 | opacity: 0.3 | ||
40 | } | 38 | } | ||
41 | Kirigami.Label { | 39 | Kirigami.Label { | ||
42 | Layout.alignment: Qt.AlignHCenter | 40 | Layout.alignment: Qt.AlignHCenter | ||
43 | text: i18n("Select an item from the list to see the available options") | 41 | text: i18n("System settings") | ||
42 | } | ||||
43 | } | ||||
44 | Kirigami.Separator { | ||||
45 | id: separator | ||||
46 | anchors.centerIn: parent | ||||
47 | width: parent.width * 0.8 | ||||
48 | } | ||||
49 | ColumnLayout { | ||||
50 | anchors { | ||||
51 | top: separator.bottom | ||||
52 | topMargin: Kirigami.Units.largeSpacing | ||||
53 | horizontalCenter: parent.horizontalCenter | ||||
54 | } | ||||
55 | width: parent.width * 0.8 | ||||
davidedmundson: Math.round() | |||||
56 | Kirigami.Heading { | ||||
57 | Layout.alignment: Qt.AlignHCenter | ||||
58 | level: 3 | ||||
59 | text: i18n("Frequently used:") | ||||
60 | } | ||||
61 | RowLayout { | ||||
62 | Layout.fillWidth: true | ||||
63 | Layout.alignment: Qt.AlignHCenter | ||||
64 | spacing: Kirigami.Units.largeSpacing | ||||
65 | | ||||
66 | Repeater { | ||||
67 | model: systemsettings.mostUsedModel | ||||
davidedmundson: keyboard nav? | |||||
68 | delegate: IntroIcon { | ||||
69 | icon: model.decoration | ||||
70 | text: model.display | ||||
71 | } | ||||
44 | } | 72 | } | ||
45 | Item { | | |||
46 | Layout.fillHeight: true | | |||
47 | } | 73 | } | ||
48 | } | 74 | } | ||
49 | } | 75 | } |
Math.round()