Premium

The UWP Notepad Project (Redux): Windows 10 Theme Support (Premium)

Avatar
6

When I first started working with the Universal Windows Platform (UWP) several months ago, I ran into a weird problem: While the platform’s native support for Windows 10’s app modes---what most people erroneously call “themes”---is excellent, it doesn’t work so well for a document-based app like .NETpad. That is, we always want the textbox to be white with black text, even if the user has selected a Dark app mode.

But that’s not exactly how it works. When you switch from Light app mode to Dark app mode (in Windows 10 Settings > Personalization > Colors), the command bars turn black, which is nice. But there are situations in which the textbox is also black, which is never acceptable. This was more problematic in the original UWP version of .NETpad, where the textbox would change from white to black when the user opened a menu. And while it’s less problematic in the current command bar-based version, you still can see this happen sometimes. For example, when you mouse over the app when it doesn’t have the focus.

Gain unlimited access to Premium articles.

With technology shaping our everyday lives, how could we not dig deeper?

Thurrott Premium delivers an honest and thorough perspective about the technologies we use and rely on everyday. Discover deeper content as a Premium member.

Become a Premium Member Create a Free Account