Bug 430965 - find dialog box background color makes it nearly impossible to see text
Summary: find dialog box background color makes it nearly impossible to see text
Status: RESOLVED WORKSFORME
Alias: None
Product: kate
Classification: Applications
Component: application (other bugs)
Version First Reported In: 20.12.0
Platform: Arch Linux Linux
: NOR major
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-29 23:38 UTC by keka
Modified: 2022-08-27 17:57 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
screenshot (166.48 KB, image/png)
2021-11-11 13:49 UTC, lual
Details

Note You need to log in before you can comment on or make changes to this bug.
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.