Bug 444139

Summary: Breeze dark 1px white line under the title bar
Product: [Plasma] Breeze Reporter: oleg_antonyan
Component: QStyleAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: kwin-bugs-null, nate, noahadvs
Priority: NOR    
Version: 5.23.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Screenshot
Dolphin

Description oleg_antonyan 2021-10-20 19:28:24 UTC
Created attachment 142689 [details]
Screenshot

SUMMARY

After updating to 5.23 on one of my PCs a small white line appeared under the title bar. On another PC with exact same distro (openSUSE Tumbleweed) this line haven't appeared. Seems like only windows without main menu are affected, like dialogs. See screenshot attached: the first image with this line from affected PC and another from another PC with exact same distro/plasma/qt.

"Draw separator under active window's titlebar" is unchecked. Checking it makes this line blue, unchecking leaves it white.

STEPS TO REPRODUCE
1. Open KWrite 
2. Type something
3. Hit close button and check out the dialog's titlebar

OBSERVED RESULT

Small white line under the titlebar (1st screenshot)

EXPECTED RESULT

No line under titlebar (2nd screenshot)

SOFTWARE/OS VERSIONS

Affected PC
Operating System: openSUSE Tumbleweed 20211016
KDE Plasma Version: 5.23.0
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2
Kernel Version: 5.14.11-1-default (64-bit)
Graphics Platform: X11
Processors: 8 × AMD FX(tm)-8350 Eight-Core Processor
Memory: 31.2 GiB of RAM
Graphics Processor: Radeon RX550/550 Series

ADDITIONAL INFORMATION

Unaffected PC
Operating System: openSUSE Tumbleweed 20211016
KDE Plasma Version: 5.23.0
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2
Kernel Version: 5.14.11-1-default (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ m7-6Y75 CPU @ 1.20GHz
Memory: 7.7 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 515
Comment 1 oleg_antonyan 2021-10-20 19:53:26 UTC
Created attachment 142691 [details]
Dolphin

Dolphin window, this line is there but under the toolbar
Comment 2 oleg_antonyan 2021-10-21 06:12:25 UTC
Looks related to https://bugs.kde.org/show_bug.cgi?id=433118
Comment 3 oleg_antonyan 2021-10-21 06:14:52 UTC
Looks related to https://bugs.kde.org/show_bug.cgi?id=433118
Comment 4 Nate Graham 2021-10-21 15:03:15 UTC
Yep, the line is intentional, to visually separate the window's header area from the rest of the content, since the background colors of these areas differ.

As of Plasma 5.21.2, the line will disappear automatically when using a color scheme that does not have Header colors in it. So you can switch to a color scheme that does not have header colors in it (such as the old Breeze color scheme, and all 3rd-party color schemes), or manually remove the Header colors from your current color scheme. To do this, you will need to save a copy of the color scheme, open it at ~/.local/share/color-schemes/[the color scheme] and remove the "Header" sections, then switch to another color scheme in the Colors KCM and back to your now-header-less custom color scheme.

*** This bug has been marked as a duplicate of bug 433118 ***
Comment 5 oleg_antonyan 2021-10-21 18:54:25 UTC
Thank you, Nate

I did this a bit differently, by comparing contents of ~/.config/kdeglobals on affected and not affected PCs. And indeed, removing "Header" sections helped.

But now there's another small annoyance: inactive window's title bar has slightly different color. Again, happens only on affected PC
Comment 6 oleg_antonyan 2021-10-21 20:12:35 UTC
Ok, nevermind. I had to copy-paste [WM] section of ~/.config/kdeglobals from unaffected PC as well and restart plasma. Now everything looks good