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

Christoph Cullmann <cullm...@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REPORTED                    |RESOLVED
                 CC|                            |cullm...@kde.org
         Resolution|---                         |WORKSFORME

--- Comment #2 from Christoph Cullmann <cullm...@kde.org> ---
We use the proper color theme colors for that:

    QPalette background(lineEdit->palette());

    switch (matchResult) {
    case MatchFound: // FALLTHROUGH
    case MatchWrappedForward:
    case MatchWrappedBackward:
        // Green background for line edit
        KColorScheme::adjustBackground(background,
KColorScheme::PositiveBackground);
        break;
    case MatchMismatch:
        // Red background for line edit
        KColorScheme::adjustBackground(background,
KColorScheme::NegativeBackground);
        break;
    case MatchNothing:
        // Reset background of line edit
        background = QPalette();
        break;
    case MatchNeutral:
        KColorScheme::adjustBackground(background,
KColorScheme::NeutralBackground);
        break;
    }

For me this works reasonable well, if the color schemes that are used have
non-usable colors in these roles, one should report that to the individual
desktops/.... that ship them.

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

Reply via email to