Commit c51fda1a authored by Ingo Klöcker's avatar Ingo Klöcker
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.
parent 98ad7ade
Pipeline #135450 passed with stage
in 4 minutes
......@@ -1468,8 +1468,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() )
......@@ -1488,7 +1486,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