summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleix Pol <[email protected]>2015-11-04 02:48:00 +0100
committerAleix Pol <[email protected]>2015-11-04 02:48:00 +0100
commit961912649bb8f07b7c6ef0f385efefe62c3c0935 (patch)
treee64c967515496caf4992ce8aa0150c4743571039
parent4bafcef529c5801a7e0a0244b2652e7ac2a71551 (diff)
Get a more Material-like look in the NavigationDrawer
-rw-r--r--mobile/plugins/widgets/material/KAlgebraMobile.qml23
1 files changed, 23 insertions, 0 deletions
diff --git a/mobile/plugins/widgets/material/KAlgebraMobile.qml b/mobile/plugins/widgets/material/KAlgebraMobile.qml
index 7560f74..6970b58 100644
--- a/mobile/plugins/widgets/material/KAlgebraMobile.qml
+++ b/mobile/plugins/widgets/material/KAlgebraMobile.qml
@@ -1,4 +1,5 @@
import QtQuick 2.2
+import QtQuick.Layouts 1.2
import Material 0.1
import Material.ListItems 0.1 as ListItem
import org.kde.analitza 1.0
@@ -28,6 +29,7 @@ ApplicationWindow
}
backAction: navDrawer.action
+
NavigationDrawer {
id: navDrawer
@@ -36,6 +38,27 @@ ApplicationWindow
ListView {
spacing: 10
anchors.fill: parent
+ header: ColumnLayout {
+ width: parent.width
+ Rectangle {
+ Layout.fillWidth: true
+ height: Units.dp(100)
+ color: "#4A66A0"
+ Image {
+ anchors {
+ fill: parent
+ bottomMargin: 10
+ }
+ fillMode: Image.PreserveAspectFit
+
+ source: "qrc:/kde-edu-logo.png"
+ }
+ }
+ ListItem.Subheader {
+ Layout.fillWidth: true
+ text: "Sections"
+ }
+ }
delegate: ListItem.Standard {
text: title
selected: mainUi.source == model.path