Jump to content

Incorrect title bar color in Windows 8.1 with paint.net 4.0.1

Recommended Posts

Since I chose a dark window color in Windows 8.1, I'm using a theme which changes the title bars to white instead of black text. However, paint.net 4.0.1 has a custom title bar (presumably to allow the image thumbnails to overlap it). The text is left-aligned and black, unlike my other windows with centered white titles. On dark backgrounds this is unreadable.

Link to comment
Share on other sites

Okay then. The theme author says they changed these colors from black to white:


AeroWizard <AeroWizardStyle>.TitleBar.<default>:TEXTCOLOR:COLOR
AeroWizard <AeroWizardStyle>.TitleBar.Inactive:TEXTCOLOR:COLOR
Window <WindowStyle>.Caption.<default>:TEXTCOLOR:COLOR


How is paint.net fetching the color to use for its title? Maybe I can edit the theme to fix this.


Also, the large subwindow titles are still there even with Windows 8.1's default theme: http://i.imgur.com/3PUJR6J.png

Link to comment
Share on other sites

The large subwindow titles are just a change in the font size that Windows 8 uses. That isn't a bug. It's a little goofy but they just decided to increase the font size for some reason. I'm pretty sure you can edit the font size in your theme in somewhere in one of the Windows control panels (I know which one it is but I can't remember where it is or how to get to it in Windows 8).


For drawing the title bar in this case, Paint.NET uses a Win32 API called DrawThemeTextEx, http://msdn.microsoft.com/en-us/library/windows/desktop/bb773317(v=vs.85).aspx


I'm specifying 0 for both iPartId and iStateId, but from some quick research I think I may need to pass in WS_CAPTION and CS_ACTIVE, respectively (or CS_INACTIVE if the window isn't active, I suppose?). I'll file a bug and check it out.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...