{"id":39173,"date":"2004-05-26T07:01:00","date_gmt":"2004-05-26T07:01:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/2004\/05\/26\/how-does-the-desktop-choose-the-icon-label-color\/"},"modified":"2004-05-26T07:01:00","modified_gmt":"2004-05-26T07:01:00","slug":"how-does-the-desktop-choose-the-icon-label-color","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20040526-00\/?p=39173","title":{"rendered":"How does the desktop choose the icon label color?"},"content":{"rendered":"<p>Many system colors come in pairs, one for background  and one for foreground.  For example,  COLOR_MENU and COLOR_MENUTEXT;  COLOR_WINDOW and COLOR_WINDOWTEXT;  COLOR_HIGHLIGHT and COLOR_HIGHLIGHTTEXT.  More on these colors in a future blog entry.\n  But there is COLOR_DESKTOP and no COLOR_DESKTOPTEXT.\n  How does the desktop choose the icon label color?\n  It&#8217;s not very exciting.\n  The COLOR_DESKTOP color is studied to see if it  is mostly dark or mostly light.  If mostly dark, then the icon text is white.  If mostly light, then the icon text is black.\n  This works great if you don&#8217;t have a wallpaper.  If you do, then the desktop color doesn&#8217;t  typically correspond to the dominant color in your wallpaper,  which may lead to a poor choice of black vs. white.<\/p>\n<p>  To remedy this,  you can manually set the desktop color  by going to the Display control panel and going  to the Desktop tab.  Change the desktop color to something  dark to get white icon text and to something light to get  black icon text.  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Many system colors come in pairs, one for background and one for foreground. For example, COLOR_MENU and COLOR_MENUTEXT; COLOR_WINDOW and COLOR_WINDOWTEXT; COLOR_HIGHLIGHT and COLOR_HIGHLIGHTTEXT. More on these colors in a future blog entry. But there is COLOR_DESKTOP and no COLOR_DESKTOPTEXT. How does the desktop choose the icon label color? It&#8217;s not very exciting. The COLOR_DESKTOP [&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":[104],"class_list":["post-39173","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-tipssupport"],"acf":[],"blog_post_summary":"<p>Many system colors come in pairs, one for background and one for foreground. For example, COLOR_MENU and COLOR_MENUTEXT; COLOR_WINDOW and COLOR_WINDOWTEXT; COLOR_HIGHLIGHT and COLOR_HIGHLIGHTTEXT. More on these colors in a future blog entry. But there is COLOR_DESKTOP and no COLOR_DESKTOPTEXT. How does the desktop choose the icon label color? It&#8217;s not very exciting. The COLOR_DESKTOP [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/39173","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=39173"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/39173\/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=39173"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=39173"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=39173"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}