Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

0
Become a Fan
5.0

Description:
Plastik Laptop is a modification to the Plastik kwin window decoration adding the ability to make the most used titlebar buttons rectangular.

This innovative feature are originally from the Laptop window decoration. Which was introduced in KDE during the development of KDE 2.0, by KDE hacker Mosfet(Daniel M. Duley). The Laptop was infact default KDE window decoration for a short while, including in KDE 1.92, the third beta of KDE 2.0.

Plastik Laptop makes it possible to increase the width of the minimize, maximize and close buttons, making them rectangular. The scaling of the width are configurable, giving the user the ability to fine tune it for the best possible look with different screen resolutions and titlebar heights. It's possible to adjust the buttons from square to rectangular, up to 5 times wider than their height.

It also has options for making the button border color more distinctive and the buttons use the same color as the titlebar.

UPDATE:
Updated to work on KDE older than 3.5
Last changelog:

v 0.6.1 14 April 06
- Use tabs in the Control Centre modul
- Make it compile on KDE older than 3.5

v 0.6 11 Feb 06
- Tilebar buttons use the same surface as titlebar.
- Make button border color more distinctive.
- Make button surface and border color configurable.
- Move buttons closer to window edge.

v 0.5 30 Jan 06
- Initial release
- Make button width configurable.


Ratings & Comments

20 Comments

pvt14

It would have been be cool if Button width scaling was configurable for individual buttons as well, but I've always liked this decoration anyway.

angrykeyboarder

Why is it called "laptop"? Curiously. moi

maarizwan

because since KDE 2+, there's a nice window decoration called laptop, with wide buttons. those are really easy to click on and feels great. Laptop win deco suits with kde classic style or b3 style. Plastic does needed this one, though as it would not suit the latest plastic style.

angrykeyboarder

I don't quite get what you are saying. This windeco looks like the regular "Plastik" to me.

cypherpunk

Hi! I want to install the decoration, but configure fails to find an C-Compiler, but I got definitly serveral C- and C++-Compiler installed. I'm running Debian/unstable. It would be nice if somebody knows a solution.

chroma

The file kcommondecoration.h seems to be part of kde 3.5 only, so this (lovely) windeco doesn't compile on kde 3.4. Not sure if you have any plans of fixing that, but I figured I'd give you the heads up. I can give you more debugging info if you are interested in getting it working on kde 3.4. Thanks, benj

KMJ

Yes, sorry about that. You are absolutely correct, and I just realized it a few weeks ago myself, that it don't work on anything older than KDE 3.5. The combination of little free time to spend on it, and no complaints have not given me the initiative to look at it before:-) I also have a few other smaller changes I'd like to make. So I'll give it a try this weekend. Hopefully I'll get it working on 3.4.

Lenz

I wrote a Gentoo ebuild for this nice windeco. Get it here: http://www.kde-look.org/content/show.php?content=35146 Have fun! Lenz

Lenz

What's that colour theme of the third screenshot? Looks nice! :)

KMJ

The color schemes are 1. Plastik (KDE Default on 3.5) 2. Point Reyes green 3. clearlooks, http://www.kde-look.org/content/show.php?content=24345

Lenz

THX! :)

lenooh

looks cooler than the "normal" plastik!

angrykeyboarder

...but what is the significance of the word "Laptop" with regard to this theme?

KMJ

Something was needed to differentiate it from the proper Plastik decoration. And what better way than by giving tribute to the first windowdecoration to have rectangular buttons, the Laptop decoration.

stic

BTW, I have always thought Laptop is called that because it's easier to hit big buttons with a touchpad. Dunno if it's the reason, but at least it makes sense.

csanchisb

In file included from plastik.cpp:32: plastik.h:28:25: error: kdecoration.h: No such file or directory plastik.h:29:32: error: kdecorationfactory.h: No such file or directory In file included from plastik.cpp:34: plastikclient.h:26:31: error: kcommondecoration.h: No such file or directory plastik.h:75: error: expected class-name before '{' token plastik.h:82: error: ISO C++ forbids declaration of 'KDecoration' with no type plastik.h:82: error: 'KDecoration' declared as a 'virtual' field plastik.h:82: error: expected ';' before '*' token plastik.h:83: error: 'Ability' has not been declared plastik.h:101: error: incomplete type 'KWinPlastik::PlastikHandler' used in nested name specifier plastik.h:101: error: incomplete type 'KWinPlastik::PlastikHandler' used in nested name specifier plastik.h:101: error: template argument 1 is invalid plastik.moc: In member function 'virtual void* KWinPlastik::PlastikHandler::qt_cast(const char*)': plastik.moc:73: error: 'KDecorationFactory' was not declared in this scope plastik.moc:73: error: expected primary-expression before ')' token plastik.moc:73: error: expected ';' before 'this' plastik.moc:73: warning: statement has no effect plastikclient.h: At global scope: plastikclient.h:35: error: expected class-name before '{' token plastikclient.h:37: error: expected `)' before '*' token plastikclient.h:43: error: 'DecorationBehaviour' has not been declared plastikclient.h:44: error: 'LayoutMetric' has not been declared plastikclient.h:44: error: expected ',' or '...' before '*' token plastikclient.h:44: error: ISO C++ forbids declaration of 'KCommonDecorationButton' with no type plastikclient.h:45: error: 'WindowCorner' has not been declared plastikclient.h:46: error: ISO C++ forbids declaration of 'KCommonDecorationButton' with no type plastikclient.h:46: error: 'KCommonDecorationButton' declared as a 'virtual' field plastikclient.h:46: error: expected ';' before '*' token plastikbutton.h:39: error: expected class-name before '{' token plastikbutton.h:42: error: expected `)' before 'type' plastik.cpp: In member function 'virtual bool KWinPlastik::PlastikHandler::reset(long unsigned int)': plastik.cpp:63: error: 'KDecoration' has not been declared plastik.cpp:63: error: 'options' was not declared in this scope plastik.cpp:64: error: 'KDecoration' has not been declared plastik.cpp:66: error: 'KDecoration' has not been declared plastik.cpp:67: error: 'BorderTiny' was not declared in this scope plastik.cpp:70: error: 'BorderLarge' was not declared in this scope plastik.cpp:73: error: 'BorderVeryLarge' was not declared in this scope plastik.cpp:76: error: 'BorderHuge' was not declared in this scope plastik.cpp:79: error: 'BorderVeryHuge' was not declared in this scope plastik.cpp:82: error: 'BorderOversized' was not declared in this scope plastik.cpp:85: error: 'BorderNormal' was not declared in this scope plastik.cpp:120: error: 'SettingColors' was not declared in this scope plastik.cpp:120: error: 'SettingFont' was not declared in this scope plastik.cpp:123: error: 'SettingButtons' was not declared in this scope plastik.cpp:131: error: 'resetDecorations' was not declared in this scope plastik.cpp: At global scope: plastik.cpp:136: error: expected constructor, destructor, or type conversion before '*' token plastik.cpp:141: error: 'bool KWinPlastik::PlastikHandler::supports' is not a static member of 'class KWinPlastik::PlastikHandler' plastik.cpp:141: error: 'Ability' was not declared in this scope plastik.cpp:142: error: expected ',' or ';' before '{' token plastik.cpp: In member function 'QColor KWinPlastik::PlastikHandler::getColor(KWinPlastik::ColorType, bool)': plastik.cpp:202: error: 'KDecoration' has not been declared plastik.cpp:202: error: 'options' was not declared in this scope plastik.cpp:202: error: 'ColorTitleBar' was not declared in this scope plastik.cpp:204: error: 'KDecoration' has not been declared plastik.cpp:207: error: 'KDecoration' has not been declared plastik.cpp:210: error: 'KDecoration' has not been declared plastik.cpp:213: error: 'KDecoration' has not been declared plastik.cpp:217: error: 'KDecoration' has not been declared plastik.cpp:221: error: 'KDecoration' has not been declared plastik.cpp:221: error: 'ColorFrame' was not declared in this scope plastik.cpp:223: error: 'KDecoration' has not been declared plastik.cpp:223: error: 'ColorFont' was not declared in this scope plastik.cpp: At global scope: plastik.cpp:570: error: 'BorderSize' is not a member of 'KWinPlastik::PlastikHandler' plastik.cpp:570: error: 'BorderSize' is not a member of 'KWinPlastik::PlastikHandler' plastik.cpp:570: error: template argument 1 is invalid plastik.cpp: In member function 'int KWinPlastik::PlastikHandler::borderSizes() const': plastik.cpp:574: error: 'BorderSize' was not declared in this scope plastik.cpp:574: error: template argument 1 is invalid plastik.cpp:574: error: 'BorderTiny' was not declared in this scope plastik.cpp:574: error: 'BorderNormal' was not declared in this scope plastik.cpp:575: error: 'BorderLarge' was not declared in this scope plastik.cpp:575: error: 'BorderVeryLarge' was not declared in this scope plastik.cpp:575: error: 'BorderHuge' was not declared in this scope plastik.cpp:576: error: 'BorderVeryHuge' was not declared in this scope plastik.cpp:576: error: 'BorderOversized' was not declared in this scope plastik.cpp: At global scope: plastik.cpp:594: error: expected constructor, destructor, or type conversion before '*' token

KMJ

2 possibilities, you don't have KDE 3.4 or higher. Or the most likely possibility, you don't have kdebase development libraries installed. Try installing kdebase-devel or whatever it's called on your distribution. Or you can search for the folowing files in your packagemanager frontend, kdecoration.h kdecorationfactory.h kcommondecoration.h.

csanchisb

I actually have kde 3.5.0 on SuSE. The problem was kdebase-devel as you said, thanks, the deco looks quite fine.

angrykeyboarder

Left out some instructions eh?

Bonkie

LOL, im gonna try this one on my laptop and see if it's an improvement ;-)

Pling
0 Affiliates
Details
license
version 0.6.1
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 0

Other KDE 3.x Window Decorations:

Vista/Black
bastlerjan
last update date: 18 years ago

Score 5.0

Example
chuliomartinez
last update date: 20 years ago

Score 5.0

Svg-Deco Gentoo Ebuild
trancelis
last update date: 20 years ago

Score 5.0

Ebuilds: Tinydeco & Flip-lite
pootie
last update date: 19 years ago

Score 5.0

KBL, KBML ,KBCL for Slackware
rufuseddy
last update date: 20 years ago

Score 5.0

kwin-activeheart for SuSE 9.0
lemmy04
last update date: 21 years ago

Score 5.0



System Tags