Fix default scene icons
This commit is contained in:
parent
bef59fbdd7
commit
26bd9facd7
@ -140,8 +140,8 @@ Page {
|
|||||||
delegate: NymeaSwipeDelegate {
|
delegate: NymeaSwipeDelegate {
|
||||||
id: ruleDelegate
|
id: ruleDelegate
|
||||||
width: parent.width
|
width: parent.width
|
||||||
iconName: "../images/" + (model.executable ? (iconTag.value.length > 0 ? iconTag.value : "slideshow") : "magic") + ".svg"
|
iconName: "../images/" + (model.executable ? (iconTag && 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")
|
iconColor: model.executable ? (colorTag && colorTag.value.length > 0 ? colorTag.value : Style.accentColor) : !model.enabled ? "red" : (model.active ? Style.accentColor : "grey")
|
||||||
text: model.name
|
text: model.name
|
||||||
canDelete: true
|
canDelete: true
|
||||||
|
|
||||||
|
|||||||
@ -58,7 +58,7 @@ MainViewBase {
|
|||||||
height: interfacesGridView.cellHeight
|
height: interfacesGridView.cellHeight
|
||||||
iconName: iconTag ? "../images/" + iconTag.value + ".svg" : "../images/slideshow.svg";
|
iconName: iconTag ? "../images/" + iconTag.value + ".svg" : "../images/slideshow.svg";
|
||||||
fallbackIconName: "../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()
|
text: model.name.toUpperCase()
|
||||||
|
|
||||||
property var colorTag: engine.tagsManager.tags.findRuleTag(model.id, "color")
|
property var colorTag: engine.tagsManager.tags.findRuleTag(model.id, "color")
|
||||||
|
|||||||
Reference in New Issue
Block a user