Fix default scene icons

This commit is contained in:
Michael Zanetti 2021-02-25 23:13:14 +01:00
parent bef59fbdd7
commit 26bd9facd7
2 changed files with 3 additions and 3 deletions

View File

@ -140,8 +140,8 @@ Page {
delegate: NymeaSwipeDelegate {
id: ruleDelegate
width: parent.width
iconName: "../images/" + (model.executable ? (iconTag.value.length > 0 ? iconTag.value : "slideshow") : "magic") + ".svg"
iconColor: model.executable ? (colorTag.value.length > 0 ? colorTag.value : Style.accentColor) : !model.enabled ? "red" : (model.active ? Style.accentColor : "grey")
iconName: "../images/" + (model.executable ? (iconTag && iconTag.value.length > 0 ? iconTag.value : "slideshow") : "magic") + ".svg"
iconColor: model.executable ? (colorTag && colorTag.value.length > 0 ? colorTag.value : Style.accentColor) : !model.enabled ? "red" : (model.active ? Style.accentColor : "grey")
text: model.name
canDelete: true

View File

@ -58,7 +58,7 @@ MainViewBase {
height: interfacesGridView.cellHeight
iconName: iconTag ? "../images/" + iconTag.value + ".svg" : "../images/slideshow.svg";
fallbackIconName: "../images/slideshow.svg"
iconColor: colorTag.value.length > 0 ? colorTag.value : Style.accentColor;
iconColor: colorTag && colorTag.value.length > 0 ? colorTag.value : Style.accentColor;
text: model.name.toUpperCase()
property var colorTag: engine.tagsManager.tags.findRuleTag(model.id, "color")