Commit 648d80ae authored by Ingo Klöcker's avatar Ingo Klöcker Committed by Nate Graham
Browse files

Fix "Blue Ocean" styling of QCommandLinkButtons

As for all other buttons QPalette::HighlightedText must not be used
anymore for the text of focussed buttons.


(cherry picked from commit c51fda1a)
parent 39a0d60c
Pipeline #135877 passed with stage
in 1 minute and 23 seconds
......@@ -1456,8 +1456,6 @@ namespace Breeze
// state
const State& state( option.state );
const bool enabled( state & State_Enabled );
bool mouseOver( enabled && ( state & State_MouseOver ) );
bool hasFocus( enabled && ( state & State_HasFocus ) );
// icon
if( !button->icon().isNull() )
......@@ -1476,7 +1474,7 @@ namespace Breeze
// text rect
QRect textRect( offset, QSize( button->size().width() - offset.x() - margin, button->size().height() - 2*margin ) );
const QPalette::ColorRole textRole = (enabled && hasFocus && !mouseOver && !isFlat ) ? QPalette::HighlightedText : QPalette::ButtonText;
const QPalette::ColorRole textRole = QPalette::ButtonText;
if( !button->text().isEmpty() )
{
......
Supports Markdown
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