Creation-Kit-Platform-Extended icon indicating copy to clipboard operation
Creation-Kit-Platform-Extended copied to clipboard

Request: Make Properties window respect dark theme

Open kristoferblack opened this issue 1 year ago • 4 comments

The properties window which is almost always open/being used currently does not go into dark mode, while the rest of the interface does. Since this is such a frequently used window, it'd be great if that could be added. The only other window having a remainder of light mode is the Layers window but I think I understand there are some limitations to what can be done there. Thanks!

image

kristoferblack avatar Nov 21 '24 17:11 kristoferblack

I can look at this.

yak3d avatar Nov 21 '24 20:11 yak3d

It looks like we're missing the UITheme class for PropertyGrid. @Perchik71 this is one of the WinForms windows embedded in a Qt window. I assume though if I add the PropertyGrid class and instantiate it in UIThemePatch it should still work? The Material Palette is also an embedded WinForm and seems to style okay.

yak3d avatar Nov 25 '24 04:11 yak3d

@yak3d Yes, you correctly noticed that this is a PropertyGrid, I do not know how to color it. First, need to determine exactly what this window is PropertyGrid, perhaps there is a hint in GetClassName(). Visit PropertyGrid-Made-Easy it is colored by the WM_NOTIFY message, maybe need OWNERDRAW style.

Edit (excerpt from the article): Owner Draw Tip Most of the look and feel of the grid is achieved by owner drawing a Listbox. One mistake that I have seen developers make when owner drawing something is not making use of the stock objects (pens and brushes) and system colors. The following is an example of how NOT to draw your control.

Perchik71 avatar Nov 25 '24 08:11 Perchik71

Thanks for the tips, I'll look into it. Never done this type of stuff before but I'll take a crack at it.

yak3d avatar Nov 25 '24 21:11 yak3d

@kristoferblack Image

Perchik71 avatar Oct 14 '25 06:10 Perchik71