Commit 0dca7549 authored by Hugo Pereira Da Costa's avatar Hugo Pereira Da Costa

use proper color for toolbutton text in some edge cases

(thanks Kay for reporting! )
parent a21a14cb
......@@ -4355,7 +4355,7 @@ namespace Breeze
{
QPalette::ColorRole textRole( QPalette::ButtonText );
if( flat ) textRole = (hasFocus&&sunken&&!mouseOver) ? QPalette::HighlightedText: QPalette::WindowText;
if( flat ) textRole = ( ((hasFocus&&sunken) || (state & State_Sunken))&&!mouseOver) ? QPalette::HighlightedText: QPalette::WindowText;
else if( hasFocus&&!mouseOver ) textRole = QPalette::HighlightedText;
painter->setFont(toolButtonOption->font);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment