Use the root.scopeStyle.threshold if it's there
commitdefec5b126e96f4e756795184cf638e9148a28a8
authorAlbert Astals <albert.astals@canonical.com>
dateMon 21 Jul 2014, 17:42 (12 years ago)
parent0532f0d
plugins/Dash/CardCreator.js+1−1
@@ -408,7 +408,7 @@ function cardString(template, components) {
408408 mascotCode = kMascotImageCode.arg(anchors).arg(mascotImageVisible);
409409 }
410410
411− var summaryColorWithBackground = 'backgroundLoader.active && backgroundLoader.item && backgroundLoader.item.luminance < 0.7 ? (root.scopeStyle ? root.scopeStyle.light : "white") : (root.scopeStyle ? root.scopeStyle.dark : "grey")';
411+ var summaryColorWithBackground = 'backgroundLoader.active && backgroundLoader.item && backgroundLoader.item.luminance < (root.scopeStyle ? root.scopeStyle.threshold : 0.7) ? (root.scopeStyle ? root.scopeStyle.light : "white") : (root.scopeStyle ? root.scopeStyle.dark : "grey")';
412412
413413 var titleSubtitleCode = "";
414414 if (hasTitle) {