Plastik Laptop

KDE 3.x Window Decorations

Source (required if based on other people's work):

0
Score 61%
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:

12 years ago

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.

pvt14

10 years ago

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.

Report

angrykeyboarder

12 years ago

Why is it called "laptop"?


Curiously.

moi

Report

maarizwan

12 years ago

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.

Report

angrykeyboarder

12 years ago

I don't quite get what you are saying.

This windeco looks like the regular "Plastik" to me.

Report

cypherpunk

12 years ago

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.

Report

chroma

12 years ago

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

Report

C

KMJ

12 years ago

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.

Report

Lenz

12 years ago

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

Report

Lenz

12 years ago

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

Report

C

KMJ

12 years ago

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

Report

Lenz

12 years ago

THX! :)

Report

lenooh

12 years ago

looks cooler than the "normal" plastik!

Report

angrykeyboarder

12 years ago

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

Report

C

KMJ

12 years ago

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.

Report

stic

12 years ago

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.

Report

csanchisb

12 years ago

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

Report

C

KMJ

12 years ago

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.

Report

csanchisb

12 years ago

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

Report

angrykeyboarder

12 years ago

Left out some instructions eh?

Report

Bonkie

12 years ago

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

Report

12 years ago

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.

product-maker 42 69

File (click to download) Version Description Packagetype Architecture Downloads Date Filesize DL OCS-Install
Pling
Details
license
version
0.6.1
updated Apr 13 2006
added Jan 30 2006
downloads today
0
page views today 0
System Tags linux unix