allow better branding
This commit is contained in:
parent
6064331f28
commit
4462324680
4
mea.pro
4
mea.pro
@ -18,11 +18,11 @@ wininstaller.commands += windeployqt --compiler-runtime --qmldir mea\ui packagin
|
|||||||
BR=$$BRANDING
|
BR=$$BRANDING
|
||||||
equals(BR, "") {
|
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\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
|
wininstaller.commands += binarycreator -c packaging\windows\config\config.xml -p packaging\windows\packages\ mea-win-installer
|
||||||
} else {
|
} 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\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
|
wininstaller.commands += binarycreator -c packaging\windows\config\config.xml -p packaging\windows\packages\ mea-$${BR}-win-installer
|
||||||
}
|
}
|
||||||
QMAKE_EXTRA_TARGETS += wininstaller
|
QMAKE_EXTRA_TARGETS += wininstaller
|
||||||
|
|||||||
@ -6,6 +6,8 @@ ApplicationWindow {
|
|||||||
property color guhAccent: "#ffcc00"
|
property color guhAccent: "#ffcc00"
|
||||||
property string systemName: "maveo"
|
property string systemName: "maveo"
|
||||||
|
|
||||||
|
title: qsTr("Maveo Pro Box Dashboard")
|
||||||
|
|
||||||
Material.theme: Material.Light
|
Material.theme: Material.Light
|
||||||
Material.accent: guhAccent
|
Material.accent: guhAccent
|
||||||
Material.primary: Material.Grey
|
Material.primary: Material.Grey
|
||||||
|
|||||||
@ -39,7 +39,7 @@ Page {
|
|||||||
|
|
||||||
Page {
|
Page {
|
||||||
header: GuhHeader {
|
header: GuhHeader {
|
||||||
text: qsTr("Connect nymea")
|
text: qsTr("Connect %1").arg(app.systemName)
|
||||||
backButtonVisible: false
|
backButtonVisible: false
|
||||||
menuButtonVisible: true
|
menuButtonVisible: true
|
||||||
onMenuPressed: connectionMenu.open()
|
onMenuPressed: connectionMenu.open()
|
||||||
@ -90,9 +90,9 @@ Page {
|
|||||||
Label {
|
Label {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
text: root.haveHosts ?
|
text: root.haveHosts ?
|
||||||
qsTr("There are %1 nymea boxes in your network! Which one would you like to use?").arg(discovery.discoveryModel.count)
|
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 nymea boxes in your network yet.")
|
: 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 nymea box installed in your network. Please make sure your nymea box is correctly set up and connected.")
|
: 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
|
wrapMode: Text.WordWrap
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -136,7 +136,7 @@ Page {
|
|||||||
visible: !root.haveHosts
|
visible: !root.haveHosts
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
text: qsTr("Searching for nymea boxes...")
|
text: qsTr("Searching for %1 boxes...").arg(app.systemName)
|
||||||
}
|
}
|
||||||
|
|
||||||
BusyIndicator {
|
BusyIndicator {
|
||||||
@ -333,7 +333,7 @@ Page {
|
|||||||
Label {
|
Label {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
wrapMode: Text.WordWrap
|
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 {
|
Label {
|
||||||
|
|||||||
@ -9,7 +9,7 @@ Page {
|
|||||||
signal backPressed();
|
signal backPressed();
|
||||||
|
|
||||||
header: GuhHeader {
|
header: GuhHeader {
|
||||||
text: qsTr("Welcome to nymea!")
|
text: qsTr("Welcome to %1!").arg(app.systemName)
|
||||||
backButtonVisible: true
|
backButtonVisible: true
|
||||||
onBackPressed: root.backPressed()
|
onBackPressed: root.backPressed()
|
||||||
}
|
}
|
||||||
@ -49,8 +49,8 @@ Page {
|
|||||||
Label {
|
Label {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
text: Engine.jsonRpcClient.initialSetupRequired ?
|
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 %1 system, please enter your email address and set a password for your nymea box.").arg(app.systemName)
|
||||||
: qsTr("In order to use your nymea system, please log in.")
|
: qsTr("In order to use your %1 system, please log in.").arg(app.systemName)
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -150,7 +150,7 @@ Page {
|
|||||||
spacing: app.margins
|
spacing: app.margins
|
||||||
visible: Engine.deviceManager.devices.count === 0 && !Engine.deviceManager.fetchingData
|
visible: Engine.deviceManager.devices.count === 0 && !Engine.deviceManager.fetchingData
|
||||||
Label {
|
Label {
|
||||||
text: qsTr("Welcome to nymea!")
|
text: qsTr("Welcome to %1!").arg(app.systemName)
|
||||||
font.pixelSize: app.largeFont
|
font.pixelSize: app.largeFont
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
|
|||||||
@ -9,7 +9,7 @@ Page {
|
|||||||
signal backPressed();
|
signal backPressed();
|
||||||
|
|
||||||
header: GuhHeader {
|
header: GuhHeader {
|
||||||
text: qsTr("Welcome to nymea!")
|
text: qsTr("Welcome to %1!").arg(app.systemName)
|
||||||
backButtonVisible: true
|
backButtonVisible: true
|
||||||
onBackPressed: {
|
onBackPressed: {
|
||||||
root.backPressed();
|
root.backPressed();
|
||||||
@ -58,7 +58,7 @@ Page {
|
|||||||
|
|
||||||
Label {
|
Label {
|
||||||
Layout.fillWidth: true
|
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
|
wrapMode: Text.WordWrap
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -12,14 +12,6 @@ ApplicationWindow {
|
|||||||
height: 580
|
height: 580
|
||||||
visibility: settings.viewMode
|
visibility: settings.viewMode
|
||||||
font: Qt.application.font
|
font: Qt.application.font
|
||||||
title: {
|
|
||||||
switch (appBranding) {
|
|
||||||
case "maveo":
|
|
||||||
return qsTr("Maveo Pro Box Dashboard")
|
|
||||||
default:
|
|
||||||
return "Mea";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
property int margins: 14
|
property int margins: 14
|
||||||
property int bigMargins: 20
|
property int bigMargins: 20
|
||||||
@ -250,7 +242,7 @@ ApplicationWindow {
|
|||||||
font.pixelSize: app.largeFont
|
font.pixelSize: app.largeFont
|
||||||
}
|
}
|
||||||
Label {
|
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
|
wrapMode: Text.WordWrap
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|||||||
@ -134,7 +134,7 @@ Page {
|
|||||||
|
|
||||||
Label {
|
Label {
|
||||||
width: listView.column2Width
|
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
|
elide: Text.ElideRight
|
||||||
}
|
}
|
||||||
Label {
|
Label {
|
||||||
|
|||||||
12
packaging/windows/packages/io.guh.mea/package-maveo.xml
Normal file
12
packaging/windows/packages/io.guh.mea/package-maveo.xml
Normal 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>
|
||||||
@ -5,7 +5,7 @@
|
|||||||
<Version>0.1.0-1</Version>
|
<Version>0.1.0-1</Version>
|
||||||
<ReleaseDate>2018-05-16</ReleaseDate>
|
<ReleaseDate>2018-05-16</ReleaseDate>
|
||||||
<Licenses>
|
<Licenses>
|
||||||
<License name="Beer Public License Agreement" file="license.txt" />
|
<License name="GNU General Public License Agreement v2" file="license-mea.txt" />
|
||||||
</Licenses>
|
</Licenses>
|
||||||
<Default>true</Default>
|
<Default>true</Default>
|
||||||
<Script>installscript.qs</Script>
|
<Script>installscript.qs</Script>
|
||||||
Reference in New Issue
Block a user