[RFC] A Light Blue theme.

Zhiyi Zhang zzhang at codeweavers.com
Tue Jun 8 03:47:01 CDT 2021


Hi all,

I've been working on theming support for Wine for awhile now. Part of the work is to create a .msstyles file so
that UI controls can look better instead of that Win95 look. Now I think it has reached a point where it's good
enough for you to try it.

The Light Blue theme contains two visual styles. One is Classic Blue and the other is Blue. Classic Blue is a visual
style that changes only the system colors and doesn't contain any bitmaps for UI controls. So it still uses the
unthemed rendering code path. Blue is a visual style that contains bitmaps for UI controls so it no longer has that
Win95-ish look. To install the theme, download light.msstyles from the attachments and install it via winecfg. The
patches are on top of Wine 6.10 aadcff4.

Theming support for Wine still need more fixes. So even with this theme file, some controls may still render
poorly/incorrectly. Below is a non-exhaustive list of the theming problems I know of. Some of them are HiDPI issues,
some are because of themed rendering is not implemented. Let me know if you encounter any other issues or have
suggestions, specifically, regarding the theme file light.msstyles.

Enjoy!

Zhiyi

Known theme issues:
1. Themed explorer support is not implemented, so startmenu, taskbar, titlbar are not themed.
2. Nonclient area theming support is not implemented.
3. Taskdialog theming support is not implemented
4. Unthemed system metrics are not restored after disabling theme, e.g., IconTitleFont after disabling theme
5. Comctl32 v6 should be loaded in some cases even if there is no comctl32 v6 manifest in applications.
6. Winecfg should close current theme before copying a new theme because the name may be the same.
7. When using comctl32 v5, scrollbars and dialogs should not be themed.
8. Trackbar has wrong background color when themed.
9. In Winecfg desktop integration tab, the postion of size updown buttons change after theme changes.
10. Spy++ toolbar icons has dots and black artifacts
11. Changing theme in winecfg doesn't affect windows in other processes in runtime
12. Application title bar is inactive on launch when not using window manager decoration
13. Combox button doesn't stay pressed after clicking and moving mouse the the dropdown menu
14. Select toolbar in controlspy, resize control spy to a larger size. scrollbar doesn't get repaint
15. Treeview in controlspy, expanded Planets still has old background
16. Trackbar adding style TBS_BOTH doesn't repaint on Wine, repaints on Windows
17. Stutter when moving the thumb of trackbar, even if no theme is active
18. EDIT_WM_Paint() should use themed paint.
19. Buttons and edits in dialogs  are not themed
20. Tooltip ballon shape is incorrect
21. Theme may not be updated on wineprefix upgrade.

Known HiDPI issues:
1. Status Bar in control spy v6 when HiDPI is on, the purple triangle doesn't get enough space
2. Syslink no address is showed, DPI 192
3. Command links no text on HiDPI
4. In file selection dialog folder name size is not the same when showed in preview and in selected mode
-------------- next part --------------
A non-text attachment was scrubbed...
Name: light.msstyles
Type: application/octet-stream
Size: 540029 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20210608/13a2555c/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: light-blue-theme.zip
Type: application/zip
Size: 97192 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20210608/13a2555c/attachment-0001.zip>


More information about the wine-devel mailing list