2015-08-19 07:16:36 +00:00
|
|
|
import QtQuick 2.3
|
|
|
|
import QtQuick.Controls 1.2
|
|
|
|
import QtQuick.Controls.Styles 1.2
|
|
|
|
import QtQuick.Window 2.2
|
|
|
|
import QtQuick.Dialogs 1.2
|
|
|
|
import QtQuick.Layouts 1.1
|
|
|
|
import QtQuick.Window 2.2
|
2015-11-29 16:27:20 +00:00
|
|
|
import org.kde.plasma.mobilecomponents 0.2 as MobileComponents
|
2015-08-19 07:16:36 +00:00
|
|
|
import org.subsurfacedivelog.mobile 1.0
|
|
|
|
|
|
|
|
Rectangle {
|
2015-11-07 02:08:05 +00:00
|
|
|
id: topPart
|
|
|
|
|
2015-11-29 18:21:27 +00:00
|
|
|
color: subsurfaceTheme.accentColor
|
2016-02-14 07:44:59 +00:00
|
|
|
Layout.minimumHeight: Math.round(MobileComponents.Units.gridUnit * 1.5)
|
2015-08-19 07:16:36 +00:00
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.margins: 0
|
|
|
|
RowLayout {
|
2016-02-14 07:44:59 +00:00
|
|
|
anchors.verticalCenter: topPart.verticalCenter
|
2015-11-07 02:32:37 +00:00
|
|
|
Item {
|
|
|
|
Layout.preferredHeight: subsurfaceLogo.height
|
2016-02-14 07:44:59 +00:00
|
|
|
Layout.leftMargin: MobileComponents.Units.gridUnit / 4
|
2015-11-07 02:32:37 +00:00
|
|
|
Image {
|
|
|
|
id: subsurfaceLogo
|
|
|
|
source: "qrc:/qml/subsurface-mobile-icon.png"
|
|
|
|
anchors {
|
2016-02-14 07:44:59 +00:00
|
|
|
verticalCenter: parent.Center
|
2015-11-07 02:32:37 +00:00
|
|
|
left: parent.left
|
|
|
|
}
|
2016-02-14 07:44:59 +00:00
|
|
|
width: Math.round(MobileComponents.Units.gridUnit)
|
2015-11-07 02:32:37 +00:00
|
|
|
height: width
|
|
|
|
}
|
2015-11-30 00:04:09 +00:00
|
|
|
MobileComponents.Label {
|
2016-01-01 17:34:32 +00:00
|
|
|
text: qsTr("Subsurface-mobile")
|
2016-02-14 07:44:59 +00:00
|
|
|
font.pointSize: Math.round(MobileComponents.Theme.defaultFont.pointSize)
|
|
|
|
height: subsurfaceLogo.height
|
2015-11-07 02:32:37 +00:00
|
|
|
anchors {
|
|
|
|
left: subsurfaceLogo.right
|
2016-01-26 16:55:23 +00:00
|
|
|
leftMargin: Math.round(MobileComponents.Units.gridUnit / 2)
|
2015-11-07 02:32:37 +00:00
|
|
|
}
|
2015-11-30 00:04:09 +00:00
|
|
|
font.weight: Font.Light
|
2016-02-14 07:44:59 +00:00
|
|
|
verticalAlignment: Text.AlignVCenter
|
2015-11-07 02:32:37 +00:00
|
|
|
Layout.fillWidth: false
|
2015-11-29 18:21:27 +00:00
|
|
|
color: subsurfaceTheme.accentTextColor
|
2015-11-07 02:32:37 +00:00
|
|
|
}
|
2015-11-07 02:08:05 +00:00
|
|
|
}
|
|
|
|
Item {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
}
|
2015-08-19 07:16:36 +00:00
|
|
|
}
|
2016-03-31 01:39:25 +00:00
|
|
|
MouseArea {
|
|
|
|
anchors.fill: topPart
|
|
|
|
onClicked: {
|
|
|
|
if (stackView.depth == 1 && showingDiveList) {
|
|
|
|
scrollToTop()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-08-19 07:16:36 +00:00
|
|
|
}
|