Bug report #407

OS X dialogs don't display current color selection

Added by Gary Sherman about 18 years ago. Updated over 15 years ago.

Status:Closed
Priority:Low
Assignee:Gary Sherman
Category:GUI
Affected QGIS version: Regression?:No
Operating System:OS X Easy fix?:No
Pull Request or Patch supplied: Resolution:fixed
Crashes QGIS or corrupts data: Copied to github as #:10466

Description

Dialogs that should display a color selection on a button (eg. vector properties fill and outline color, project properties background color, selection color) don't. The buttons are displayed with no color. This worked prior to the recent round of commits.

History

#1 Updated by Gary Sherman almost 18 years ago

From Tom:

I think the fix is to create a color button subclass. The Mac OS appears to be enforcing UI uniformity by requiring that the button appearance be controlled by an overall theme.

Setting the background for QToolButton has never worked in Qt4/Mac. Most QGIS color selectors were previously color labels next to uncolored QPushButtons. These were recently converted for Windows to single QToolButtons.

Qt Designer has a color button for the QPalette object which works like ours should. Trolltech created a QToolButton subclass with a custom paintEvent method to draw it so this is probably the way to do it.

#2 Updated by Gary Sherman almost 18 years ago

  • Resolution set to fixed
  • Status changed from Open to Closed

Fixed at 1907fd64 (SVN r6252) (thanks Tom)

#3 Updated by Anonymous over 15 years ago

Milestone Version 0.8 deleted

Also available in: Atom PDF