Bug 373418 - Sample KDE decoration
Summary: Sample KDE decoration
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kwin
Classification: Plasma
Component: decorations (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-08 10:42 UTC by el cubo
Modified: 2016-12-29 13:00 UTC (History)
0 users

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 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