Bug 466309 - As of Kirigami 5.103, under certain circumstances, headers don't show the correct background color when using a Header-color-using color scheme
Summary: As of Kirigami 5.103, under certain circumstances, headers don't show the cor...
Status: REPORTED
Alias: None
Product: frameworks-kirigami
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.103.0
Platform: Neon Linux
: NOR normal
Target Milestone: Not decided
Assignee: kdelibs bugs
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2023-02-23 15:43 UTC by Augusto
Modified: 2023-06-22 20:04 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
System Settings (162.43 KB, image/png)
2023-02-23 15:43 UTC, Augusto
Details
Discover (199.01 KB, image/png)
2023-02-23 15:47 UTC, Augusto
Details
My kdeglobals file (3.44 KB, text/plain)
2023-02-24 22:11 UTC, Augusto
Details
The same thing happens with breeze dark (193.02 KB, image/png)
2023-02-24 22:18 UTC, Augusto
Details
Another thing I noticed is that in some options the header of content is in the correct color and the header of the sidebar is not. (75.48 KB, image/png)
2023-02-24 22:24 UTC, Augusto
Details
Colors KCM - modified unmodified color scheme (131.92 KB, image/png)
2023-02-27 20:57 UTC, ratijas
Details
before and after update (398.04 KB, image/png)
2023-02-27 23:34 UTC, Augusto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Augusto 2023-02-23 15:43:16 UTC
Created attachment 156651 [details]
System Settings

SUMMARY
After updating to framework 103, header and title bar colors are different in some applications.
The applications are: Discover, System Settings and System Monitor.


STEPS TO REPRODUCE
1.  Install Kde Neon.
2.  Upgrade to Plasma 5.27.
3.  Upgrade to Framework 103.

OBSERVED RESULT
The header and title bar have different colors.

EXPECTED RESULT
The header color must be the same as the title bar.

SOFTWARE/OS VERSIONS
Operating System: KDE neon 5.27
KDE Plasma Version: 5.27.1
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 5.19.0-32-generic (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-6200U CPU @ 2.30GHz
Memory: 7,6 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 520
Manufacturer: LENOVO
Product Name: 80RS

ADDITIONAL INFORMATION
Comment 1 Augusto 2023-02-23 15:47:07 UTC
Created attachment 156652 [details]
Discover
Comment 2 Nate Graham 2023-02-24 19:44:38 UTC
A few questions, in this order if you please:

1. Can you attach your ~/.config/kdeglobals file?
2. Do the colors fix themselves if you de-focus the window and then click on it again?
3. Does the issue go away if you apply a different color scheme in System Settings > Colors and then apply the Breeze Light color scheme again?
4. If that fixes the issue, can you attach your ~/.config/kdeglobals again so I can compare the two of them (before and after re-applying the default color scheme)?
Comment 3 Augusto 2023-02-24 22:11:31 UTC
Created attachment 156691 [details]
My kdeglobals file
Comment 4 Augusto 2023-02-24 22:13:18 UTC
2. Do the colors fix themselves if you de-focus the window and then click on it again?
No.

3. Does the issue go away if you apply a different color scheme in System Settings > Colors and then apply the Breeze Light color scheme again?
No.
Comment 5 Augusto 2023-02-24 22:18:17 UTC
Created attachment 156692 [details]
The same thing happens with breeze dark
Comment 6 Augusto 2023-02-24 22:24:45 UTC
Created attachment 156693 [details]
Another thing I noticed is that in some options the header of content is in the correct color and the header of the sidebar is not.
Comment 7 Nate Graham 2023-02-27 15:54:32 UTC
Seems like an issue with Kirigami-based headers, thanks.

CCing Ivan since most changes in Kirigami 5.103 (https://invent.kde.org/frameworks/kirigami/-/commits/v5.103.0) were made by him and I see a lot of changes made to page, header, and color scheme code.

FWIW I cannot reproduce the issue, so we still haven't found the thing that makes this happen for just you.
Comment 8 ratijas 2023-02-27 20:57:55 UTC
Created attachment 156802 [details]
Colors KCM - modified unmodified color scheme

> Another thing I noticed is that in some options the header of content is in the correct color and the header of the sidebar is not.

All three KCMs (system settings pages) shown on this screenshot are based on QtWidgets, not QML/QtQuick Which kinda explains their uniqueness for your bug.

Sorry, I can't reproduce either. I know that with some combination of color schemes, title bar colors, tint etc, it is possible to have distinctive non-blending window decorations, which seems to the case for your specific configuration.

Also, this particular change might be related, but it wasn't shipped with Frameworks 5.103, so unlikely relevant here: https://invent.kde.org/frameworks/qqc2-desktop-style/-/merge_requests/228

The only colors-related change in Kirigami 5.103 I can find is this: https://invent.kde.org/frameworks/kirigami/-/commit/7089b8c0e42363ca77cffeaea78e2ba8203c6696
But it only affects colors of thin 1px wide separators between pages.

Did you, by any chance, edit your Breeze Light / Dark color schemes in System Settings Colors KCM? It is possible to edit them and save, and it won't even show up with orange "modified" outline.
Comment 9 Augusto 2023-02-27 23:34:55 UTC
Created attachment 156812 [details]
before and after update

Thanks for looking at this!

I haven't changed any theme settings. When I did, it was in a virtual machine to try to understand what was going on.

I installed Fedora KDE on gnome box and everything is perfect! But when I installed KDE Neon the problem happens.

1. I downloaded the iso from the Kde Neon website, neon-user-20230214-1145.iso.
2. I created a virtual machine in gnome box.
3. I installed the system and rebooted. As you can see on the left side of the image, everything is fine.
4. I didn't change any settings, I just updated using the commands "sudo pkcon refresh && sudo pkcon update".
5. As you can see on the right side of the image the problem happens. Restarting doesn't change anything.
Comment 10 logicalwillow 2023-03-02 22:22:28 UTC
I'm experiencing the same issue on Plasma 5.27.2 and Frameworks 5.103, with both Breeze Light and Breeze Dark. The only color-related option I remember changing is the accent color. I also remember playing around with some color options in a copy of the Breeze Light color scheme, but I don't know why that would affect the actual Breeze Light and Dark themes.
Comment 11 Alexander Sanderson 2023-03-08 17:20:25 UTC
I also experience this issue, but it seems to depend on the distro. Arch Linux doesn’t seem to have this issue, but KDE Neon does. This is interesting since their KDE Frameworks versions seem to be the same.
Comment 12 Alexander Sanderson 2023-03-08 17:26:24 UTC
I would also like to point out that this only sprung up after Neon’s initial system upgrade. Could this be related to the kernel version?