Luwx / LightlyShaders

Round corners and outline effect for kwin.
138 stars 37 forks source link

Sharp corner glitch with round corners beyond KWin default #7

Closed ryu-ketsueki closed 3 years ago

ryu-ketsueki commented 3 years ago

This is a glitch that happens whenever the round corners slider makes the corners rounder than what they are normally without the shaders. Here's an example. This happens on all corners, not just the titlebar. Flameshot_202107 1_125539 image

Luwx commented 3 years ago

The shader cannot crop the decoration shadow, this includes the outline. You'll have to compile or configure the decoration such that it has the same corner radius as the effect.

ryu-ketsueki commented 3 years ago

I observed the same effect with Lightly Window Decoration as well, though.

Luwx commented 3 years ago

Lightly decoration is capped at 8px, so if you use a larger radius in the effect the issue will happen. Maybe I should decouple the decoration and widget style corner radius.

fauzie811 commented 3 years ago

How do yo make Konsole looks like that?

ryu-ketsueki commented 3 years ago

How do yo make Konsole looks like that?

I added the options to the toolbar then added a Window Decoration rule to remove the titlebar. It's not perfect, because those aren't the real minimize and maximize buttons but at least they look cool, as if it were a true headerbar