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
|
|
|
|
|
|
|
|
property bool goBack: (stackView.depth > 1)
|
|
|
|
|
2015-11-29 18:21:27 +00:00
|
|
|
color: subsurfaceTheme.accentColor
|
2015-11-30 00:04:09 +00:00
|
|
|
Layout.minimumHeight: MobileComponents.Units.gridUnit * 2
|
2015-08-19 07:16:36 +00:00
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.margins: 0
|
|
|
|
RowLayout {
|
2015-11-07 02:08:05 +00:00
|
|
|
anchors.bottom: topPart.bottom
|
2015-11-30 00:04:09 +00:00
|
|
|
anchors.bottomMargin: MobileComponents.Units.smallSpacing
|
2015-11-07 02:08:05 +00:00
|
|
|
anchors.left: topPart.left
|
2015-11-30 00:13:51 +00:00
|
|
|
anchors.leftMargin: MobileComponents.Units.smallSpacing
|
2015-11-07 02:08:05 +00:00
|
|
|
anchors.right: topPart.right
|
2015-11-30 00:13:51 +00:00
|
|
|
anchors.rightMargin: MobileComponents.Units.smallSpacing
|
2015-11-07 02:32:37 +00:00
|
|
|
Item {
|
|
|
|
Layout.preferredHeight: subsurfaceLogo.height
|
2015-11-30 00:04:09 +00:00
|
|
|
Rectangle { color: "green"; anchors.fill: parent; }
|
2015-11-07 02:32:37 +00:00
|
|
|
Image {
|
|
|
|
id: subsurfaceLogo
|
|
|
|
source: "qrc:/qml/subsurface-mobile-icon.png"
|
|
|
|
anchors {
|
|
|
|
top: parent.top
|
2015-11-30 00:04:09 +00:00
|
|
|
topMargin: MobileComponents.Units.smallSpacing * -1
|
2015-11-07 02:32:37 +00:00
|
|
|
left: parent.left
|
|
|
|
}
|
2015-11-30 00:04:09 +00:00
|
|
|
width: MobileComponents.Units.gridUnit
|
2015-11-07 02:32:37 +00:00
|
|
|
height: width
|
|
|
|
}
|
2015-11-30 00:04:09 +00:00
|
|
|
MobileComponents.Label {
|
2015-12-26 21:47:23 +00:00
|
|
|
text: qsTr("Subsurface mobile")
|
2015-11-07 02:32:37 +00:00
|
|
|
height: subsurfaceLogo.height
|
|
|
|
anchors {
|
|
|
|
left: subsurfaceLogo.right
|
|
|
|
bottom: subsurfaceLogo.bottom
|
2015-11-29 16:27:20 +00:00
|
|
|
leftMargin: MobileComponents.Units.gridUnit / 2
|
2015-11-07 02:32:37 +00:00
|
|
|
}
|
2015-11-30 00:04:09 +00:00
|
|
|
font.weight: Font.Light
|
2015-11-07 02:32:37 +00:00
|
|
|
verticalAlignment: Text.AlignBottom
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|