Zren / material-decoration

Material-ish window decoration theme for KWin, with LIM, based on zzag's original design.
GNU General Public License v2.0
197 stars 17 forks source link

LIM autonomous? #25

Open CavaleriOmar opened 3 years ago

CavaleriOmar commented 3 years ago

Would it be possible to "separate" the LIM from the KWin decoration so that it also works with the other decorations and also with the Aurorae themes?

Zren commented 3 years ago

I could create a few reusable C++ classes, but you'd need to patch every single decoration (Breeze, BreezeEnhanced, SierraBreeze, SierraBreezeEnhanced, Aurorae). The window title/caption and the lim need to take each other into account when drawn.

The reusable classes could be upstreamed into KWin/KDecoration I guess, but it's probably easier to keep it as a separate module in case it has a bug. A segfault bug would crash KWin, which in wayland is the whole login session.

CavaleriOmar commented 3 years ago

I don't think it's a problem to patch every theme. In any case, one does not constantly change them.

Just, how should it be done? For aurorae themes would it be enough to add the patch in the theme folder? While for the breeze forks?

I'd be interested in patching an aurorae theme, since I'm making my own.

baduhai commented 3 years ago

This would definitely be great, I'd love to use lim with breeze.