Bug 472896 - Oxygen window decoration gradient is absent under wayland
Summary: Oxygen window decoration gradient is absent under wayland
Status: RESOLVED FIXED
Alias: None
Product: Oxygen
Classification: Plasma
Component: win deco (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-01 21:32 UTC by nope1000000
Modified: 2024-04-17 06:36 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nope1000000 2023-08-01 21:32:53 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
On Plasma 5 and also as far as i know Plasma 6, oxygen window decorations look plain on wayland when on x11 a gradient is shown acting in conjunction with the widget theme. On Plasma 6 gradient on widgets theme is also gone, when under X11 both the widgets gradient and window decoration gradient are displayed correctly

STEPS TO REPRODUCE
1.  Set Oxygen window decoration theme
2. 
3. 

OBSERVED RESULT
Titlebar is coloured with a plain color, on Plasma 6, window background itself looks also plain.

EXPECTED RESULT
Titlebar is coloured with a gradient pattern


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Fedora 38 / KDE Neon Unstable
(available in About System)
KDE Plasma Version: 5.27.6 / 6 Git
KDE Frameworks Version: 5.108.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION

I don´t tried intensively the Plasma 6 case since Wayland session crashes a lot and I'm on nvidia and on VMs doesn't even start.

I know this might not be the priority one bug to fix but is a nice to have feature that has been lost with the transition to wayland.
Comment 1 bluescreenavenger 2023-08-02 14:39:05 UTC
I can second this, Although more so for the Titlebar than the widget theme under Wayland.
IIRC, the gradient gets drawn on the titlebar based on some sort of window flag
Comment 2 nope1000000 2023-08-03 20:50:02 UTC
https://www.reddit.com/r/kde/comments/u47dv7/why_do_the_oxygen_window_decorations_have_a_flat/

In this reddit post people also notice this issue and an user did some investigation.
Comment 3 bluescreenavenger 2023-08-03 21:11:41 UTC
That is a good find, and I can verify commenting out much of that if statement works, and brings back the gradient.

Although I am not sure what the proper fix is though, as this leaves the radial gradient for the title bar on windows where the rest of the window has none.

Some attribute needs to be queried, (or maybe just roll with the gradiented decoration on all windows)
Comment 4 bluescreenavenger 2023-08-03 22:49:01 UTC
Going to try this
https://invent.kde.org/plasma/oxygen/-/merge_requests/42
Comment 5 nope1000000 2023-09-09 08:02:39 UTC
How is it going? I've tested the patch myself some time ago and I confirm too it works as intented. It will arrive to Plasma 5.27.8?
Comment 6 bluescreenavenger 2023-09-14 01:38:13 UTC
(In reply to nope1000000 from comment #5)
> How is it going? I've tested the patch myself some time ago and I confirm
> too it works as intented. It will arrive to Plasma 5.27.8?

The patch still has to be reviewed I guess