[Bug 47063] New: Command Link Support in Wine

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Apr 22 12:10:41 CDT 2019


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 at winehq.org
          Reporter: gabrielopcode at 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).

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list