<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Make Text color inverting the background image]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I have a picture frame (no mirror). Kind of a family board. With MMM-Wallpaper I have a bing picture of the day in the back. Looks awesome.</p>
<p dir="auto">The digital clock sits on top of the picture. I would like the color of he clock be sensitive to the backgound image. Text should be inverted. I googled and found <a href="https://css-tricks.com/methods-contrasting-text-backgrounds/" target="_blank" rel="noopener noreferrer nofollow ugc">this</a>.</p>
<p dir="auto">I cant get it to work.</p>
<pre><code>.clock div.time.bright.large.light {
  mix-blend-mode: difference;
}
</code></pre>
<p dir="auto">For the blue background white works, but imagine a more lighter picture in the back. You get the idea.</p>
<p dir="auto"><img src="/assets/uploads/files/1529832059693-bildschirmfoto-2018-06-24-um-11.20.26-am.png" alt="0_1529832059599_Bildschirmfoto 2018-06-24 um 11.20.26 AM.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Someone a clue?</p>
<p dir="auto">BTW. What browser is used by the MM^2? I am using the <a href="http://raspimirror.mitako.eu" target="_blank" rel="noopener noreferrer nofollow ugc">mitako</a> image.</p>
<p dir="auto">Regards<br />
Ralf</p>
]]></description><link>https://forum.magicmirror.builders/topic/7451/make-text-color-inverting-the-background-image</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Jul 2026 09:35:23 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/7451.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 24 Jun 2018 09:22:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Make Text color inverting the background image on Tue, 26 Jun 2018 16:43:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ninjabreadman" aria-label="Profile: ninjabreadman">@<bdi>ninjabreadman</bdi></a>, thanks a lot for trying to help. You are right in your assumption, that I dont fully understand CSS. I am learning as we speak.</p>
<p dir="auto">The site you mentioned is the one I found as well and followed. Unsuccessful. It is working for the copyright text/title of the Wallpaper module. So I cant be to far off. But not for the clock.</p>
<p dir="auto">From what I found out so far is that the problem is that the wallpaper and the clock are not in the same “stacking index” which I tried to solve following <a href="https://stackoverflow.com/questions/37091692/css-blending-with-objects-outside-stacking-context" target="_blank" rel="noopener noreferrer nofollow ugc">this article</a>.</p>
]]></description><link>https://forum.magicmirror.builders/post/40849</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/40849</guid><dc:creator><![CDATA[rak]]></dc:creator><pubDate>Tue, 26 Jun 2018 16:43:49 GMT</pubDate></item><item><title><![CDATA[Reply to Make Text color inverting the background image on Mon, 25 Jun 2018 22:57:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rak" aria-label="Profile: rak">@<bdi>rak</bdi></a> I suggest you avoid using z-indexing, margins and absolutely positioning unless you added them (and understand their effects).</p>
<p dir="auto">Here’s a site doing fundamentally what you want: <a href="https://css-tricks.com/methods-contrasting-text-backgrounds/" target="_blank" rel="noopener noreferrer nofollow ugc">https://css-tricks.com/methods-contrasting-text-backgrounds/</a></p>
<pre><code>.clock div.time.bright.large.light {
  color: white;
  mix-blend-mode: difference;
}

</code></pre>
<p dir="auto">I expect that it should work, but will depend on how the wallpaper is inserted into the DOM.</p>
]]></description><link>https://forum.magicmirror.builders/post/40827</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/40827</guid><dc:creator><![CDATA[ninjabreadman]]></dc:creator><pubDate>Mon, 25 Jun 2018 22:57:26 GMT</pubDate></item><item><title><![CDATA[Reply to Make Text color inverting the background image on Mon, 25 Jun 2018 21:08:13 GMT]]></title><description><![CDATA[<p dir="auto">Seems no one can help.</p>
<p dir="auto">I was able to get it some kind of working following <a href="https://stackoverflow.com/questions/37091692/css-blending-with-objects-outside-stacking-context" target="_blank" rel="noopener noreferrer nofollow ugc">this article</a> with adding</p>
<pre><code>.clock div.time.bright.large.light /*span.bold*/ {
  margin-top: 20px;
  font-size: 65pt;
  color: white;   
  z-index: 1;
  mix-blend-mode: difference;
  position: absolute;
}

.MMM-Wallpaper .wallpaper {
  position: absolute;
  z-index: 1;
  mix-blend-mode: difference;
}
</code></pre>
<p dir="auto">But doing so the background gets blended two consecutive pictures. This is because MMM-Wallpaper has two IMG elements. One for the old one and one for the new one.</p>
<p dir="auto">Not there yet …</p>
<p dir="auto">This is just to keep you posted in case you want to help ,-).</p>
]]></description><link>https://forum.magicmirror.builders/post/40821</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/40821</guid><dc:creator><![CDATA[rak]]></dc:creator><pubDate>Mon, 25 Jun 2018 21:08:13 GMT</pubDate></item><item><title><![CDATA[Reply to Make Text color inverting the background image on Sun, 24 Jun 2018 10:04:55 GMT]]></title><description><![CDATA[<p dir="auto">I was able to get it working for the new “Title” Option of the MMM-Wallpaper module.</p>
<pre><code>.MMM-Wallpaper .title {
  left: 60px;
  top: calc(100% - 80px);
  font-weight: 200;
  font-size: 14px;
  line-height: 25px;
  mix-blend-mode: difference;
  color: white;
}
</code></pre>
<p dir="auto">The browser used supports it.</p>
<p dir="auto">For me it seems that for the clock the browser does not “see” the picture underneath the clock text.  Not sure if this helps anyone to help me point out the problem.</p>
]]></description><link>https://forum.magicmirror.builders/post/40777</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/40777</guid><dc:creator><![CDATA[rak]]></dc:creator><pubDate>Sun, 24 Jun 2018 10:04:55 GMT</pubDate></item></channel></rss>