|
|
|
|
@ -120,8 +120,17 @@ namespace Breeze |
|
|
|
|
QPalette Helper::sideViewPalette( const QPalette& palette ) const |
|
|
|
|
{ |
|
|
|
|
QPalette copy( palette ); |
|
|
|
|
|
|
|
|
|
// alter highlighted text color
|
|
|
|
|
copy.setColor( QPalette::Active, QPalette::HighlightedText, palette.color( QPalette::Active, QPalette::Highlight ) ); |
|
|
|
|
copy.setColor( QPalette::Inactive, QPalette::HighlightedText, palette.color( QPalette::Active, QPalette::Highlight ) ); |
|
|
|
|
|
|
|
|
|
// alter default text color
|
|
|
|
|
copy.setColor( QPalette::Disabled, QPalette::Text, palette.color( QPalette::Disabled, QPalette::WindowText ) ); |
|
|
|
|
copy.setColor( QPalette::Active, QPalette::Text, palette.color( QPalette::Active, QPalette::WindowText ) ); |
|
|
|
|
copy.setColor( QPalette::Inactive, QPalette::Text, palette.color( QPalette::Inactive, QPalette::WindowText ) ); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return copy; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|