Bug 373418

Summary: Sample KDE decoration
Product: [Plasma] kwin Reporter: el cubo <2h230gh32g>
Component: decorationsAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UNMAINTAINED    
Severity: wishlist    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description el cubo 2016-12-08 10:42:45 UTC
The window decoration named "KDE 2" is no more available in KDE 5.
It was available in KDE 4 under kdeartwork package.
Comment 1 Christoph Feck 2016-12-08 13:20:10 UTC
You are free to port it to the new kdecoration2 API or to an Aurorae theme, but KWin developers will not do it.
Comment 2 el cubo 2016-12-08 15:30:29 UTC
@Christoph Feck 
Are you aware of any kwin client decoration theme ported to KDE 5 to use as example?
Comment 3 Christoph Feck 2016-12-08 22:59:22 UTC
A minimal example is at http://developer.kde.org/~cfeck/skeleton-0.1.tar.xz

Both Oxygen and Breeze are fully ported to kdecoration2 API. The Plastik decoration is actually an Aurorae theme (those you can download via GHNS).

https://cgit.kde.org/oxygen.git/tree/kdecoration
https://cgit.kde.org/breeze.git/tree/kdecoration

Aurorae guide at https://techbase.kde.org/User:Mgraesslin/Aurorae
https://cgit.kde.org/kwin.git/tree/plugins/kdecorations/aurorae/themes/plastik
Comment 4 el cubo 2016-12-26 17:06:27 UTC
@Christoph Feck
Thank you for the skeleton example, it's really useful! BTW do you know why 1px adjustements I make look correctly in systemsettings5 preview, but badly on a kwin? Perhaps because of subpixel anti-aliasing? How to disable it then? What I've tried in settings make no difference.
Comment 5 el cubo 2016-12-26 17:31:02 UTC
Okay, clearing of hints by adding

painter->setRenderHints(QPainter::Antialiasing, false);

to

Decoration::paint()

fixed issue