scheletro porting nativo Sailfish OS di Henflow: packaging, settings, pagine, icone, i18n
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
import QtQuick 2.2
|
||||
import Sailfish.Silica 1.0
|
||||
|
||||
CoverBackground {
|
||||
Label {
|
||||
id: title
|
||||
anchors {
|
||||
top: parent.top
|
||||
topMargin: Theme.paddingLarge
|
||||
horizontalCenter: parent.horizontalCenter
|
||||
}
|
||||
text: qsTr("Henflow")
|
||||
color: Theme.primaryColor
|
||||
}
|
||||
|
||||
Label {
|
||||
anchors.centerIn: parent
|
||||
width: parent.width - 2 * Theme.paddingLarge
|
||||
text: qsTr("Eggs, hens and orders")
|
||||
font.pixelSize: Theme.fontSizeSmall
|
||||
color: Theme.secondaryColor
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
wrapMode: Text.WordWrap
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
import QtQuick 2.2
|
||||
import Sailfish.Silica 1.0
|
||||
import "pages"
|
||||
import "cover"
|
||||
|
||||
ApplicationWindow
|
||||
{
|
||||
id: app
|
||||
|
||||
initialPage: Component { MainPage { } }
|
||||
cover: Component { CoverPage { } }
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
import QtQuick 2.2
|
||||
import Sailfish.Silica 1.0
|
||||
|
||||
Page {
|
||||
id: page
|
||||
allowedOrientations: Orientation.All
|
||||
|
||||
SilicaListView {
|
||||
id: listView
|
||||
anchors.fill: parent
|
||||
|
||||
header: PageHeader {
|
||||
title: qsTr("Henflow")
|
||||
}
|
||||
|
||||
model: ListModel {
|
||||
id: sections
|
||||
// Moduli previsti dall'app Android, da mappare sulle schermate
|
||||
// Flutter quando i sorgenti arrivano sul server.
|
||||
Component.onCompleted: {
|
||||
append({ "name": qsTr("Hens"), "note": qsTr("name, breed, hatch date, estimated production") })
|
||||
append({ "name": qsTr("Available eggs"), "note": qsTr("eggs ready today") })
|
||||
append({ "name": qsTr("Orders"), "note": qsTr("customer, quantity, automatic delivery date") })
|
||||
append({ "name": qsTr("Calendar"), "note": qsTr("orders and pickups") })
|
||||
append({ "name": qsTr("Customers"), "note": qsTr("regular buyers") })
|
||||
append({ "name": qsTr("Dashboard"), "note": qsTr("summary of the day") })
|
||||
}
|
||||
}
|
||||
|
||||
delegate: ListItem {
|
||||
id: item
|
||||
contentHeight: Theme.itemSizeMedium
|
||||
|
||||
Column {
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
x: Theme.horizontalPageMargin
|
||||
width: parent.width - 2 * Theme.horizontalPageMargin
|
||||
|
||||
Label {
|
||||
text: model.name
|
||||
color: item.highlighted ? Theme.highlightColor : Theme.primaryColor
|
||||
truncationMode: TruncationMode.Fade
|
||||
width: parent.width
|
||||
}
|
||||
|
||||
Label {
|
||||
text: model.note
|
||||
font.pixelSize: Theme.fontSizeExtraSmall
|
||||
color: Theme.secondaryColor
|
||||
truncationMode: TruncationMode.Fade
|
||||
width: parent.width
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
footer: Label {
|
||||
x: Theme.horizontalPageMargin
|
||||
width: parent.width - 2 * Theme.horizontalPageMargin
|
||||
text: qsTr("Native port in progress")
|
||||
font.pixelSize: Theme.fontSizeExtraSmall
|
||||
color: Theme.secondaryHighlightColor
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
wrapMode: Text.WordWrap
|
||||
}
|
||||
|
||||
VerticalScrollDecorator {}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user