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.
Created attachment 143447 [details] screenshot same problem on my linux mint (with custom theme).
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.