{"id":38513,"date":"2004-07-08T07:00:00","date_gmt":"2004-07-08T07:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/2004\/07\/08\/why-does-icon-text-get-a-solid-background-if-drop-shadows-are-disabled\/"},"modified":"2004-07-08T07:00:00","modified_gmt":"2004-07-08T07:00:00","slug":"why-does-icon-text-get-a-solid-background-if-drop-shadows-are-disabled","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20040708-00\/?p=38513","title":{"rendered":"Why does icon text get a solid background if drop shadows are disabled?"},"content":{"rendered":"<p><a href=\"http:\/\/weblogs.asp.net\/oldnewthing\/archive\/2004\/05\/26\/142276.aspx#142619\">  A commenter asks why icon label have &#8220;those ugly color boxes&#8221;  when there is a background image<\/a>.\n  The answer: Because the alternative would be worse.\n  Imagine if there were no solid background between the text and the  background image.  You would end up with text against an  unpredictable background, which doesn&#8217;t help readability.\n  Take the default background for Windows&nbsp;XP:  There are some places that are very light and other places that  are very dark.  No matter what color you pick for the icon text,  it will look bad in one or the other place.  If you decide to use  white, then the text becomes unreadable in the clouds.  If you decide to use black, then the text becomes unreadable in the  shadows.\n  You lose either way.\n  The solution is to intercede a contrasting color to ensure  that the text is readable.  If your video card is powerful enough,  the contrasting color is used  only just around the strokes of text themselves, which lends  a shadow-effect.  If shadows are not enabled, then a solid block of contrast is used.<\/p>\n<p>  (And for those of you who say, &#8220;Use white in the dark places and  black in the light places,&#8221; what if there is a section of the wallpaper  that has a dark area  right next to a light area, and the text covers both?)  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>A commenter asks why icon label have &#8220;those ugly color boxes&#8221; when there is a background image. The answer: Because the alternative would be worse. Imagine if there were no solid background between the text and the background image. You would end up with text against an unpredictable background, which doesn&#8217;t help readability. Take the [&hellip;]<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[26],"class_list":["post-38513","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-other"],"acf":[],"blog_post_summary":"<p>A commenter asks why icon label have &#8220;those ugly color boxes&#8221; when there is a background image. The answer: Because the alternative would be worse. Imagine if there were no solid background between the text and the background image. You would end up with text against an unpredictable background, which doesn&#8217;t help readability. Take the [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/38513","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=38513"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/38513\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=38513"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=38513"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=38513"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}