Details
-
Suggestion
-
Resolution: Won't Do
-
P3: Somewhat important
-
4.4.1
-
None
Description
The header text of mac itemviews is displayed in white, and the selected cell in a grid is indicated by lightening the corresponding row and column headers, resulting in very difficult to see text on the mac. It would be nice if the default values were easier to read, perhaps something like what itunes has with black text and grey selection indicator for the header areas.
Untill the default is changed it is easy enough to set the pallet on each application with code similar to the example below.
The Color role used for highlighted text is QPalette::BrightText.
The role used to set the color of the header text is QPalette::ButtonText.
QPalette adjusted_palette = _table->horizontalHeader()->palette();
adjusted_palette.setColor( QPalette::Active, QPalette::ButtonText, QColor( "red" ) );
adjusted_palette.setColor( QPalette::Active, QPalette::BrightText, QColor( "green" ) );
_table->horizontalHeader()->setPalette( adjusted_palette );
_table->verticalHeader()->setPalette( adjusted_palette );