on xenial help sign in
Use dark/light colors as luminance needs
commit4e57d21f70a752d0699f1592e9a8c87ab5a3e250 authorAlbert Astals <albert.astals@canonical.com> dateFri 18 Jul 2014, 16:44 (12 years ago) parent59db258
1 file changed+1−1
plugins/Dash/CardCreator.js+1−1
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 ? "white" : (root.scopeStyle ? root.scopeStyle.foreground : "grey")';
411+ var summaryColorWithBackground = 'backgroundLoader.active && backgroundLoader.item && backgroundLoader.item.luminance < 0.7 ? (root.scopeStyle ? root.scopeStyle.light : "white") : (root.scopeStyle ? root.scopeStyle.dark : "grey")';
412412
413413 var titleSubtitleCode = "";
414414 if (hasTitle) {