on xenial help sign in
Fix scopeStyle in previews.
4e77f91Michał Sawicz
qml/Dash/Previews/Preview.qml+1
@@ -80,6 +80,7 @@ Item {
80 widgetType: model.type
80 widgetType: model.type
81 widgetData: model.properties
81 widgetData: model.properties
82 isCurrentPreview: root.isCurrent
82 isCurrentPreview: root.isCurrent
83+ scopeStyle: root.scopeStyle
83 anchors {
84 anchors {
84 left: parent.left
85 left: parent.left
85 right: parent.right
86 right: parent.right
qml/Dash/Previews/PreviewHeader.qml+1−1
@@ -35,7 +35,7 @@ PreviewWidget {
35 readonly property url mascot: root.widgetData["mascot"] || ""
35 readonly property url mascot: root.widgetData["mascot"] || ""
36 readonly property string title: root.widgetData["title"] || ""
36 readonly property string title: root.widgetData["title"] || ""
37 readonly property string subtitle: root.widgetData["subtitle"] || ""
37 readonly property string subtitle: root.widgetData["subtitle"] || ""
38− readonly property color fontColor: root.scopeStyle.foreground
38+ readonly property color fontColor: root.scopeStyle ? root.scopeStyle.foreground : "grey"
39
39
40 implicitHeight: row.height + row.margins * 2
40 implicitHeight: row.height + row.margins * 2
41 width: parent.width
41 width: parent.width