https://bugs.kde.org/show_bug.cgi?id=445040

--- Comment #1 from Paul McAuley <k...@paulmcauley.com> ---
I worked around this in my own C++ window decoration by doing the following:

if(buttonFocusColor == buttonHoverColor) buttonHoverColor =
ColorTools::getDifferentiatedLessSaturatedColor(buttonHoverColor);

    QColor ColorTools::getDifferentiatedLessSaturatedColor( const QColor&
inputColor )
    {
        int colorHsv[3];
        inputColor.getHsv(&colorHsv[0], &colorHsv[1], &colorHsv[2]);
        if( colorHsv[1] > 125 ) colorHsv[1] -= 80; //decrease saturation if not
already low
        else colorHsv[1] += 80; // else increase saturation if very low to
provide differentiation/contrast
        QColor outputColor;
        outputColor.setHsv(colorHsv[0], colorHsv[1], colorHsv[2]);
        return outputColor;
    }

I have to still apply this in several other places in the application style
where hover and focus colours are the same, and it would be better if I didn't
have to do this at all.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to