Update icons

This commit is contained in:
Simon Stürz 2025-04-30 16:04:20 +02:00
parent 6970d21871
commit 267bfc1326
5 changed files with 11 additions and 11 deletions

View File

@ -155,7 +155,7 @@ BigThingTile {
name: { name: {
switch (model.interfaceName) { switch (model.interfaceName) {
case "closablesensor": case "closablesensor":
return sensorValueDelegate.stateValue && sensorValueDelegate.stateValue.value === true ? Qt.resolvedUrl("qrc:qrc:/icons/sensors/window-closed.svg") : Qt.resolvedUrl("qrc:qrc:/icons/sensors/window-open.svg"); return sensorValueDelegate.stateValue && sensorValueDelegate.stateValue.value === true ? Qt.resolvedUrl("qrc:/icons/sensors/window-closed.svg") : Qt.resolvedUrl("qrc:/icons/sensors/window-open.svg");
default: default:
return app.interfacesToIcon([model.interfaceName, "sensor"]) return app.interfacesToIcon([model.interfaceName, "sensor"])
} }

View File

@ -39,7 +39,7 @@ import QtGraphicalEffects 1.0
Item { Item {
id: root id: root
readonly property string title: qsTr("Celsi°s") readonly property string title: qsTr("Celsi°s")
readonly property string icon: Qt.resolvedUrl("qrc:qrc:/icons/radiator.svg") readonly property string icon: Qt.resolvedUrl("qrc:/icons/radiator.svg")
readonly property Thing duwWpDevice: duwWpFilterModel.count > 0 ? duwWpFilterModel.get(0) : null readonly property Thing duwWpDevice: duwWpFilterModel.count > 0 ? duwWpFilterModel.get(0) : null
readonly property Thing duwLuDevice: duwLuFilterModel.count > 0 ? duwLuFilterModel.get(0) : null readonly property Thing duwLuDevice: duwLuFilterModel.count > 0 ? duwLuFilterModel.get(0) : null
@ -152,7 +152,7 @@ Item {
anchors.centerIn: parent anchors.centerIn: parent
width: parent.width - app.margins * 2 width: parent.width - app.margins * 2
text: qsTr("There is no drexel und weiss heating system set up yet.") text: qsTr("There is no drexel und weiss heating system set up yet.")
imageSource: "qrc:qrc:/icons/radiator.svg" imageSource: "qrc:/icons/radiator.svg"
buttonVisible: false buttonVisible: false
buttonText: qsTr("Set up now") buttonText: qsTr("Set up now")
visible: duwWpFilterModel.count === 0 && !engine.thingManager.fetchingData visible: duwWpFilterModel.count === 0 && !engine.thingManager.fetchingData
@ -180,7 +180,7 @@ Item {
ColorIcon { ColorIcon {
Layout.preferredHeight: Style.iconSize Layout.preferredHeight: Style.iconSize
Layout.preferredWidth: Style.iconSize Layout.preferredWidth: Style.iconSize
name: "qrc:qrc:/icons/weathericons/wind.svg" name: "qrc:/icons/weathericons/wind.svg"
color: Style.accentColor color: Style.accentColor
} }
Led { Led {
@ -208,7 +208,7 @@ Item {
ColorIcon { ColorIcon {
Layout.preferredHeight: Style.iconSize Layout.preferredHeight: Style.iconSize
Layout.preferredWidth: Style.iconSize Layout.preferredWidth: Style.iconSize
name: "qrc:qrc:/icons/sensors/temperature.svg" name: "qrc:/icons/sensors/temperature.svg"
color: Style.accentColor color: Style.accentColor
} }
Label { Label {
@ -241,7 +241,7 @@ Item {
Layout.preferredWidth: height Layout.preferredWidth: height
Layout.alignment: Qt.AlignHCenter Layout.alignment: Qt.AlignHCenter
color: Style.accentColor color: Style.accentColor
name: "qrc:qrc:/icons/magic.svg" name: "qrc:/icons/magic.svg"
MouseArea { MouseArea {
anchors.fill: parent anchors.fill: parent
onClicked: pageStack.push("qrc:/ui/magic/ThingRulesPage.qml", {thing: root.duwWpDevice}) onClicked: pageStack.push("qrc:/ui/magic/ThingRulesPage.qml", {thing: root.duwWpDevice})
@ -264,7 +264,7 @@ Item {
Layout.preferredHeight: Style.iconSize Layout.preferredHeight: Style.iconSize
Layout.preferredWidth: Style.iconSize Layout.preferredWidth: Style.iconSize
color: Style.accentColor color: Style.accentColor
name: "qrc:qrc:/icons/ventilation.svg" name: "qrc:/icons/ventilation.svg"
PropertyAnimation on rotation { PropertyAnimation on rotation {
running: root.ventilationLevelState !== null running: root.ventilationLevelState !== null
duration: root.ventilationLevelState !== null && root.ventilationLevelState.value > 0 duration: root.ventilationLevelState !== null && root.ventilationLevelState.value > 0
@ -333,7 +333,7 @@ Item {
// ProgressButton { // ProgressButton {
// imageSource: "qrc:qrc:/icons/system-shutdown.svg" // imageSource: "qrc:/icons/system-shutdown.svg"
// Layout.preferredHeight: Style.iconSize * 1.5 // Layout.preferredHeight: Style.iconSize * 1.5
// Layout.preferredWidth: height // Layout.preferredWidth: height
// Layout.alignment: Qt.AlignHCenter // Layout.alignment: Qt.AlignHCenter

View File

@ -70,7 +70,7 @@ MainViewBase {
width: parent.width - app.margins * 2 width: parent.width - app.margins * 2
title: qsTr("There are no garage doors set up yet.") title: qsTr("There are no garage doors set up yet.")
text: qsTr("Connect your garage doors in order to control them from here.") text: qsTr("Connect your garage doors in order to control them from here.")
imageSource: "qrc:qrc:/icons/garage/garage-100.svg" imageSource: "qrc:/icons/garage/garage-100.svg"
buttonText: qsTr("Add things") buttonText: qsTr("Add things")
visible: garagesFilterModel.count === 0 && !engine.thingManager.fetchingData visible: garagesFilterModel.count === 0 && !engine.thingManager.fetchingData
onButtonClicked: pageStack.push(Qt.resolvedUrl("../thingconfiguration/NewThingPage.qml")) onButtonClicked: pageStack.push(Qt.resolvedUrl("../thingconfiguration/NewThingPage.qml"))

View File

@ -117,7 +117,7 @@ StatsBase {
barSet.replace(i, consumption) barSet.replace(i, consumption)
valueAxis.adjustMax(consumption) valueAxis.adjustMax(consumption)
} else if (timestamp.getTime() == upcomingTimestamp.getTime() && (previousEntry || !d.loading)) { } else if (timestamp.getTime() == upcomingTimestamp.getTime() && (previousEntry || !d.loading) && thingPowerLogs.liveEntry()) {
var consumption = thingPowerLogs.liveEntry().totalConsumption var consumption = thingPowerLogs.liveEntry().totalConsumption
// print("it's today for thing", thing.name, consumption, previousEntry) // print("it's today for thing", thing.name, consumption, previousEntry)
if (previousEntry) { if (previousEntry) {

View File

@ -37,7 +37,7 @@ Item {
readonly property var startTime: { readonly property var startTime: {
var date = new Date(fixTime(now)); var date = new Date(fixTime(now));
date.setTime(date.getTime() - range * 60000 + 2000); date.setTime(date.getTime() - range * 60000 + 2000);
print("startTIme:", date) print("startTime:", date)
return date; return date;
} }