blob: f896064949f6df81ca0b7727ec23a27c67324221 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.12
Page {
id: page
title: qsTr("Today")
property alias menuButton: menuButton
property alias profileButton: profileButton
property alias contentView: contentView
header: ToolBar {
background: Rectangle {
color: "transparent"
}
RowLayout {
anchors.fill: parent
spacing: 0
ToolButton {
id: menuButton
icon.name: "menu-button"
icon.source: "../icons/menu-24px.svg"
highlighted: true
}
ToolButton {
id: profileButton
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
icon.name: "profile-button"
icon.source: "../icons/profile-24px.svg"
highlighted: true
}
}
}
StackView {
id: contentView
anchors.fill: parent
Text {
id: pageTitle
text: contentView.currentItem.title
anchors.left: parent.left
anchors.top: parent.top
font.pixelSize: 20
anchors.leftMargin: 16
anchors.topMargin: 16
font.weight: Font.Medium
font.family: "Roboto Mono"
}
}
}
/*##^##
Designer {
D{i:0;autoSize:true;height:480;width:640}D{i:7}
}
##^##*/
|