allow better branding

This commit is contained in:
Michael Zanetti 2018-05-25 13:54:27 +02:00
parent 6064331f28
commit 4462324680
12 changed files with 31 additions and 25 deletions

View File

@ -18,11 +18,11 @@ wininstaller.commands += windeployqt --compiler-runtime --qmldir mea\ui packagin
BR=$$BRANDING
equals(BR, "") {
wininstaller.commands += copy packaging\windows\packages\io.guh.mea\logo-guh.ico packaging\windows\packages\io.guh.mea\data\logo.ico &&
wininstaller.commands += copy packaging\windows\packages\io.guh.mea\license-mea.txt packaging\windows\packages\io.guh.mea\meta\license.txt &&
wininstaller.commands += copy packaging\windows\packages\io.guh.mea\package-mea.xml packaging\windows\packages\io.guh.mea\meta\package.xml &&
wininstaller.commands += binarycreator -c packaging\windows\config\config.xml -p packaging\windows\packages\ mea-win-installer
} else {
wininstaller.commands += copy packaging\windows\packages\io.guh.mea\logo-$${BR}.ico packaging\windows\packages\io.guh.mea\data\logo.ico &&
wininstaller.commands += copy packaging\windows\packages\io.guh.mea\license-$${BR}.txt packaging\windows\packages\io.guh.mea\meta\license.txt &&
wininstaller.commands += copy packaging\windows\packages\io.guh.mea\package-$${BR}.xml packaging\windows\packages\io.guh.mea\meta\package.xml &&
wininstaller.commands += binarycreator -c packaging\windows\config\config.xml -p packaging\windows\packages\ mea-$${BR}-win-installer
}
QMAKE_EXTRA_TARGETS += wininstaller

View File

@ -6,6 +6,8 @@ ApplicationWindow {
property color guhAccent: "#ffcc00"
property string systemName: "maveo"
title: qsTr("Maveo Pro Box Dashboard")
Material.theme: Material.Light
Material.accent: guhAccent
Material.primary: Material.Grey

View File

@ -39,7 +39,7 @@ Page {
Page {
header: GuhHeader {
text: qsTr("Connect nymea")
text: qsTr("Connect %1").arg(app.systemName)
backButtonVisible: false
menuButtonVisible: true
onMenuPressed: connectionMenu.open()
@ -90,9 +90,9 @@ Page {
Label {
Layout.fillWidth: true
text: root.haveHosts ?
qsTr("There are %1 nymea boxes in your network! Which one would you like to use?").arg(discovery.discoveryModel.count)
: startupTimer.running ? qsTr("We haven't found any nymea boxes in your network yet.")
: qsTr("There doesn't seem to be a nymea box installed in your network. Please make sure your nymea box is correctly set up and connected.")
qsTr("There are %1 %2 boxes in your network! Which one would you like to use?").arg(discovery.discoveryModel.count).arg(app.systemName)
: startupTimer.running ? qsTr("We haven't found any %1 boxes in your network yet.").arg(app.systemName)
: qsTr("There doesn't seem to be a %1 box installed in your network. Please make sure your %1 box is correctly set up and connected.").arg(app.systemName)
wrapMode: Text.WordWrap
}
}
@ -136,7 +136,7 @@ Page {
visible: !root.haveHosts
Label {
text: qsTr("Searching for nymea boxes...")
text: qsTr("Searching for %1 boxes...").arg(app.systemName)
}
BusyIndicator {
@ -333,7 +333,7 @@ Page {
Label {
Layout.fillWidth: true
wrapMode: Text.WordWrap
text: qsTr("The authenticity of this nymea box cannot be verified.")
text: qsTr("The authenticity of this %1 box cannot be verified.").arg(app.systemName)
}
Label {

View File

@ -9,7 +9,7 @@ Page {
signal backPressed();
header: GuhHeader {
text: qsTr("Welcome to nymea!")
text: qsTr("Welcome to %1!").arg(app.systemName)
backButtonVisible: true
onBackPressed: root.backPressed()
}
@ -49,8 +49,8 @@ Page {
Label {
Layout.fillWidth: true
text: Engine.jsonRpcClient.initialSetupRequired ?
qsTr("In order to use your nymea system, please enter your email address and set a password for your nymea box.")
: qsTr("In order to use your nymea system, please log in.")
qsTr("In order to use your %1 system, please enter your email address and set a password for your nymea box.").arg(app.systemName)
: qsTr("In order to use your %1 system, please log in.").arg(app.systemName)
wrapMode: Text.WordWrap
}

View File

@ -150,7 +150,7 @@ Page {
spacing: app.margins
visible: Engine.deviceManager.devices.count === 0 && !Engine.deviceManager.fetchingData
Label {
text: qsTr("Welcome to nymea!")
text: qsTr("Welcome to %1!").arg(app.systemName)
font.pixelSize: app.largeFont
Layout.fillWidth: true
wrapMode: Text.WordWrap

View File

@ -9,7 +9,7 @@ Page {
signal backPressed();
header: GuhHeader {
text: qsTr("Welcome to nymea!")
text: qsTr("Welcome to %1!").arg(app.systemName)
backButtonVisible: true
onBackPressed: {
root.backPressed();
@ -58,7 +58,7 @@ Page {
Label {
Layout.fillWidth: true
text: qsTr("Please press the button on your nymea box to authenticate this device.")
text: qsTr("Please press the button on your %1 box to authenticate this device.").arg(app.systemName)
wrapMode: Text.WordWrap
}

View File

@ -12,14 +12,6 @@ ApplicationWindow {
height: 580
visibility: settings.viewMode
font: Qt.application.font
title: {
switch (appBranding) {
case "maveo":
return qsTr("Maveo Pro Box Dashboard")
default:
return "Mea";
}
}
property int margins: 14
property int bigMargins: 20
@ -250,7 +242,7 @@ ApplicationWindow {
font.pixelSize: app.largeFont
}
Label {
text: qsTr("Sorry, the version of the nymea box you are trying to connect to is too old. This app requires at least version %1 but the nymea box only supports %2").arg(popup.minimumVersion).arg(popup.actualVersion)
text: qsTr("Sorry, the version of the %1 box you are trying to connect to is too old. This app requires at least version %2 but the %1 box only supports %3").arg(app.systemName).arg(popup.minimumVersion).arg(popup.actualVersion)
wrapMode: Text.WordWrap
Layout.fillWidth: true
}

View File

@ -134,7 +134,7 @@ Page {
Label {
width: listView.column2Width
text: model.source === LogEntry.LoggingSourceSystem ? qsTr("Nymea Server") : delegate.device.name
text: model.source === LogEntry.LoggingSourceSystem ? qsTr("%1 Server").arg(app.systemName) : delegate.device.name
elide: Text.ElideRight
}
Label {

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<Package>
<DisplayName>Maveo Pro Box Dashboard</DisplayName>
<Description>Install the Maveo Pro Box Dashboard application.</Description>
<Version>0.1.0-1</Version>
<ReleaseDate>2018-05-16</ReleaseDate>
<Licenses>
<License name="Marantec License Agreement" file="license-maveo.txt" />
</Licenses>
<Default>true</Default>
<Script>installscript.qs</Script>
</Package>

View File

@ -5,7 +5,7 @@
<Version>0.1.0-1</Version>
<ReleaseDate>2018-05-16</ReleaseDate>
<Licenses>
<License name="Beer Public License Agreement" file="license.txt" />
<License name="GNU General Public License Agreement v2" file="license-mea.txt" />
</Licenses>
<Default>true</Default>
<Script>installscript.qs</Script>