on xenial help sign in
Fix scopeStyle in previews.
commit4e77f91242f33771557368ad64f7121a7e501923 authorMichał Sawicz <michal.sawicz@canonical.com> dateTue 8 Jul 2014, 14:50 (12 years ago) parenta641572
2 files changed+2−1
qml/Dash/Previews/Preview.qml+1 qml/Dash/Previews/PreviewHeader.qml+1−1
qml/Dash/Previews/Preview.qml+1
@@ -80,6 +80,7 @@ Item {
8080 widgetType: model.type
8181 widgetData: model.properties
8282 isCurrentPreview: root.isCurrent
83+ scopeStyle: root.scopeStyle
8384 anchors {
8485 left: parent.left
8586 right: parent.right
qml/Dash/Previews/PreviewHeader.qml+1−1
@@ -35,7 +35,7 @@ PreviewWidget {
3535 readonly property url mascot: root.widgetData["mascot"] || ""
3636 readonly property string title: root.widgetData["title"] || ""
3737 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"
3939
4040 implicitHeight: row.height + row.margins * 2
4141 width: parent.width