This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Questions that I hope to have answered

Tags: None
(comma "," separated)
kram1024
Registered Member
Posts
3
Karma
0
OS
1.) How do you write a KDE style, any tools available for converting png images and and what sort of documentation is there for kde4 styles?

2.) How do you write a kwin4 style? Can I write one that has partial transparency? if yes, how do I do that? example: make a button 25% opaque.

3.) any tutorials on writing custom KDE4 widgets?
User avatar
Brandybuck
KDE Developer
Posts
203
Karma
0
OS
kram1024 wrote:1.) How do you write a KDE style, any tools available for converting png images and and what sort of documentation is there for kde4 styles?


Step one, learn Qt. KDE styles are nothing more than Qt styles. I've been meaning to write a tutorial on this, but it may be a few months before I can get to it. In the meantime, the Qt documentation has some information on writing styles.

KDE provides KStyle, which builds on QStyle. The goal is to make writing styles easier. You do need to know the basics of QStyle first, however, so start there.

2.) How do you write a kwin4 style? Can I write one that has partial transparency? if yes, how do I do that? example: make a button 25% opaque.


I have a tutorial on kwin styles, but it's for KDE3. Most of it is still applicable though. . Transparency is new in KDE4, but it's just a matter of setting the right visual and then drawing with an alpha channel.

3.) any tutorials on writing custom KDE4 widgets?


Plasma widgets or Qt/KDE widgets? It's unfortunate that they have the same name. For Plasma widgets, see the plasma docs at techbase.kde.org. For Qt widgets there are several good books.


Don't look back! (Or you might see the giants whose shoulders we stand on)
User avatar
lzfy
Registered Member
Posts
30
Karma
0
I'm still hoping for someone to create something like Stylebuilder for KDE4. That way people without programming experience would still be able to create themes.


lzfy, proud to be a member of KDE forums since 2008-Oct.
kram1024
Registered Member
Posts
3
Karma
0
OS
the first two were answered rather well.

as for widgets, I wish to learn how to do both.


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell