Bug 430965

Summary: find dialog box background color makes it nearly impossible to see text
Product: [Applications] kate Reporter: keka <kekapir267>
Component: applicationAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: major CC: christoph, lual
Priority: NOR    
Version First Reported In: 20.12.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: screenshot

Description keka 2020-12-29 23:38:11 UTC
SUMMARY


STEPS TO REPRODUCE
1. install kwrite on xfce
2. search
3. type something in the search box

OBSERVED RESULT
background changes to a very dark color.. perhaps it's a shade of green

EXPECTED RESULT
no background color change

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: artix linux xfce
(available in About System)
KDE Plasma Version: n/a
KDE Frameworks Version: ?
Qt Version: ?

ADDITIONAL INFORMATION

installed through arch linux package manager pacman. all dependencies should be met automatically.


this is NOT a duplicate of similar sounding issues.
i didn't change the theme, theme is default.
i use a light window theme for my OS. the default adwaita.

i deleted the .config/kwriterc file to reset settings but that didn't help.

i installed kde yesterday and didn't notice this issue in kde/plasma. only experiencing it in xfce.
Comment 1 lual 2021-11-11 13:49:51 UTC
Created attachment 143447 [details]
screenshot

same problem on my linux mint (with custom theme).
Comment 2 Christoph Cullmann 2022-08-27 17:57:45 UTC
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.