Ticket #14864 (closed enhancement: fixed)

Opened 7 months ago

Last modified 7 months ago

Ribbon bar drop down arrow disabled colour

Reported by: wxBen Owned by:
Priority: low Milestone:
Component: GUI-all Version: 2.9-svn
Keywords: Cc:
Blocked By: Patch: yes
Blocking:

Description

A while back an option was added to the ribbon bar to use a disabled text colour for disabled items. That works well, except buttons with drop down arrows still draw the arrow in the original non disabled colour, making them stand out.

This patch extends the use of the disabled colour to the down arrows as well.

This change only takes effect if the user sets a disabled colour, since it defaults to the regular colour.

Attachments

DownArrowColour.diff download (1.7 KB) - added by wxBen 7 months ago.
DownArrowColour.diff

Change History

Changed 7 months ago by vadz

  • priority changed from normal to low
  • status changed from new to confirmed

Would it be possible to avoid code duplication by adding a function for drawing this arrow and reusing it?

Changed 7 months ago by wxBen

I dislike the code duplication as well. Is this version more acceptable?

Changed 7 months ago by wxBen

DownArrowColour.diff

Changed 7 months ago by vadz

It's better, thanks, but as long as we're doing it like this we could reduce the duplication even a bit more, will commit soon.

Changed 7 months ago by VZ

  • status changed from confirmed to closed
  • resolution set to fixed

(In [73086]) Use disabled colour for the dropdown arrow of disabled ribbon.

Previously the normal colour was used for the arrow in MSW art provider even
if the ribbon was disabled.

Closes #14864.

Note: See TracTickets for help on using tickets.