https://bugs.winehq.org/show_bug.cgi?id=47063
Bug ID: 47063 Summary: Command Link Support in Wine Product: Wine Version: 4.6 Hardware: x86 OS: Linux Status: NEW Severity: normal Priority: P2 Component: comctl32 Assignee: wine-bugs@winehq.org Reporter: gabrielopcode@gmail.com Distribution: ---
Commands Links have a default glyph associated to them when there's no image or image list set in the button. They use the theme's BP_COMMANDLINKGLYPH part, but that only applies if a theme is active. Without a theme they use a hardcoded bitmap glyph (in Windows 7, a green arrow pointing right, with a white outline and a drop shadow). To implement Command Links in Wine, such glyph needs to be ideally stored somewhere as a resource.
I attached the original glyph I worked with, it's an XZ-compressed gimp xcf file with 3 layers: one for the arrow itself with gradient, one for the white outline, and one for the shadow. It has been manually traced to be close to Windows 7's arrow, and at this large size, the fact that it is a bit non-straight shouldn't be an issue :-)
Note that the Command Links have 3 states for the glyph. The default one, which is the one attached; one that is when it's hot (which really only changes the gradient by brightening it); and one when it is disabled.
To create the disabled state, simply change the arrow to pure white, make the outline grey-ish, remove the shadow layer, and make the entire final flattened image 50% transparent (which is needed to match Windows, as its final color will depend on the background color).
https://bugs.winehq.org/show_bug.cgi?id=47063
--- Comment #1 from Gabriel Ivăncescu gabrielopcode@gmail.com --- Created attachment 64236 --> https://bugs.winehq.org/attachment.cgi?id=64236 Command Link Glyph
Sorry, it failed to attach for some reason. Here's the glyph.
https://bugs.winehq.org/show_bug.cgi?id=47063
Gabriel Ivăncescu gabrielopcode@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Fixed by SHA1| |9fee8a7d258c1776d7358e6498a | |fb3adc3d36812 Resolution|--- |FIXED
--- Comment #2 from Gabriel Ivăncescu gabrielopcode@gmail.com --- Fixed by 9fee8a7d258c1776d7358e6498afb3adc3d36812.
https://bugs.winehq.org/show_bug.cgi?id=47063
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 4.7.