PapirusDevelopmentTeam / arc-kde

Arc KDE customization
https://git.io/arc-kde
GNU General Public License v3.0
909 stars 53 forks source link

Transparency issues with window decorations when using blur #39

Open MartinSandfuchs opened 7 years ago

MartinSandfuchs commented 7 years ago

When "Blur" is activated under "System Settings -> Desktop Behavior -> Desktop Effects" the transparency on the rounded edges of the window decoration becomes visible due to artifacts of the blurring. The issue is especially visible when the window is hovering over a high contrast background. This seems to be an issue with arc-kde rather than an upstream bug because the default "Breeze" theme does not show the issue screenshot_20170601_004744 The image above illustrates the issue where there's an apparent hard edge where it should be rounded on the top left corner of the window.

SmartFinn commented 7 years ago

I think this affects all Aurorae themes. Could you find Aurorae theme that doesn't affect this issue?

MartinSandfuchs commented 7 years ago

It took some searching but I think I found a theme that does not show the problem. It's called "Helium." I had to modify it a bit because by default the corners were too sharp so it was hard to see if there were any visual artifacts. Anyway here is a screenshot: screenshot_20170601_225604 I hope none of the modifications I made effected the outcome. I could send you the .svgz file if that would help.

andreyorst commented 7 years ago

As far as i know when you use an aurorae theme you don't give any information about corners to kwin, which handles blur. So kwin thinks that your window is pure rectangle. Aurorae draws its decorations in the rectangle kwin had specified, and playing with padding and border params in yourthemename rc file like in this comment, you will clearly see this rectangle.

That's lead us to the situation with blurred corners. Maybe you could pop out the decoration's corners from kwin blur rectangle, but i dont think that it is possible.

Please correct me if i'm wrong. And @MartinSandfuchs, please provide your svg files for research purposes

varlesh commented 7 years ago

It's not blur, used gradient black to transparent. Original Arc theme have rounded corners and we don't want change this. Also aurorae very old engine. Don't like - use Breeze QML engine

ArchangeGabriel commented 7 years ago

@varlesh I’m not sure to understand… Arc is build on Aurorae while modern Plasma is Breeze QML engine? Does it mean that Arc should be ported to this new engine?

varlesh commented 7 years ago

Breeze decoration draw elements from QML, Aurorae from SVG. You really want port Breeze Kwin engine for Arc and support this with new plasma version? https://github.com/KDE/breeze/tree/master/kdecoration

MartinSandfuchs commented 7 years ago

I tried fixing the existing Arc-Dark Window decorations. I had to fiddle a lot with the svg as well as the Arc-Darkrc and some things might not look perfectly since I am no expert with inkscape. The title bar had to be made a bit taller in order to get rid of any artifacts, however since the original gtk dark theme seems to have a bit a larger title bar anyway I don't think it breaks the style. Also you may have to tweak button size and border because I use the buttons from breezemite. Anyway here are my tweaks: https://drive.google.com/drive/folders/0B7XnGz8L52soZHAwQVpqQkdmQ00?usp=sharing

polyzium commented 5 years ago

This issue still persists, any updates? Also @MartinSandfuchs the link is broken

oscarbidabehere commented 5 years ago

I have this problem with arc-kde package from Manjaro.

oscarbidabehere commented 5 years ago

Hi, I also noticed that disabling blur like @MartinSandfuchs suggest in the first post enables transparency on the panels and application launcher. By default with the blur enabled these components where solid. I thought this info could help. Regards,

eVen-gits commented 3 years ago

Chiming in that this same problem was present for me today on KUbuntu 20.10

Disabling blur fixed it for me as well.