Transparency here, transparency there....

For the last couple days, I've been working on making things transparent in KDE. This is pretty easy to do, but time consuming. Most notable success so far is with Konqueror. Next up, ksirc, and hopefully kicker. This code cannot go into 2.1, since we are in a feature freeze, but the following version of KDE should be quite transparent! [Ed: Also check out the transparency screenshots for Kasbar TNG. There's some other slick stuff there too.]

Dot Categories: 


by Richard Stallman (not verified)

Bah. Emacs can do this with Eterm, do you hear me shouting about it.

hmm... and trolls usually hang out at /., but u don't hear us shout about that huh!

Hmmm. Eterm can even do this without emacs. :-)

I would like to see semi (or full) transparent pull down menus too.
And I would like transparent windows don't show only the kde background like konsole does, but other windows that are behind it too.
This would be a cool eye candy :)

by Josh Liechty (not verified)

XFree 4.0.2 supposedly is able to do this (fully translucent windows, in which everything behind them, including other windows, shows through), but AFAIK, if the KDE programmers utilized these features, then it would force everybody to upgrade to XFree 4.0.2. This wouldn't be that bad, except the 4.x versions of XFree don't support all of the video cards that the 3.x versions did.

I suppose by "transparent pull down menus" you mean something like the picture at the bottom of the page at this address:

by Iuri Fiedoruk (not verified)

That's why I think there should be more binaries out there.
It's relatively easy to create rpms with and without those features, and on source you can detect X version of course.
But lastly seems that creating rpms is a pain to companies and not something they do to gain more happy users.
I even don't have XFree 4.0.2 simply because there isn't rpms for redhat 6.2, and I don't want to install it with breaking Xconfigurator program (I hate xf86config).

by Joe KDE User (not verified)

You realize, of course, that XFree86 has its own graphical setup utilities, right? You're not forced to use xf86config, or something non-standard like xconfigurator or whatever. Try XF86Setup on XFree 3, xf86cfg on XFree 4.

by Cardinal (not verified)

The new graphical tool being included with XFree86 4.0, while very much a work in progress, looks promising. I didn't try it with 4.0.2, but it was only semi-functional in 4.0.1. But still, it'll make a nice option.

by Triskelios (not verified)

I set up my XF86Config for XFree86 4.0.x with a text editor just by reading 'man XF86Config' for a while, and also using an online modeline generator script. Even without much previous experience, it was easy. I first installed XFree86 4.0.1 from a binary package at (why are you obsessed with using an rpm? That binary package has an excellent install script), then rebuilt it (this wasn't too hard, either; most of the defaults were fine, so I only had change a few things before 'make World' and 'make install'), and subsequently built 4.0.2 (this time with Xft support and DRI) myself. Now, I am using a cvs copy of 4.0.2 that's based on X11R6.51. In all, it's not particularly hard; there are some good HOWTO's out there.

yes! i think simply editing XF86Config with an editor is the best way to configure x.
i hate all these graphical-"frontend" that makes the whole thing more confusing than it is.

thanks for the address of the modeline-generator. ;)

by Sould not ! (not verified)

It's funny to hear this in a GRAPHICAL desktop environmant, but I think that it shouldn't be as hard as it is. Just need to be well designed and correspond to the logic of the text , not try to hide any parameter, and write READABLE and well formatted TEXT parameters.

Licq with the QT-gui plugin compiled with kde support does that on my system. Minimize licq to the task bar and then place your cursor over the system tray icon and it will pop up a transparent tool tip after about 1 sec. Fades in really well also and of course shows windows behind etc. I am running XFree 4.0.2 CVS and compiled licq from source so maybe that's why. I certainly looks cool, I hope this implimentation works the same way.

Wow you're right. On the discussion of cool eye-candy, I guess this means it's also possible to have drop shadows on pulldowns and popups.

by Justin (not verified)

I see no reason why Qt or KDE couldn't check the XFree capabilities during runtime. This way, no one would be required to have 4.0.2, but if they do have it then they get the extra features.

Not everything needs to be compiled in. I was recently installing a TV program, and it checked for my video device in the configure script. Bad idea. What if I change cards?

Now that I think of it, KDE's SSL support should be runtime as well.

As far as I know, for real transparent / translucent windows and menus we will have to wait for keithp's Transparent Window extension. There's a paper he wrote about it on his website.

by Josh Liechty (not verified)

AFAIK, this feature (the Render extension, IIRC) is already in XFree 4.0.2. However, I have no idea if it's compiled in by default.


there are a lot of strange messages out there. I use xf4.0.2, and the render extension as of now is just AA text (which is already a lot). Translucent windows etc are for later..........

(and if i'm wrong PLEASE let me know, unfortunately i'm quite certain of what i assert) :O(

Couldn't it be possible to include this as a module? Or is this kind of stuff too basically?

by Matthijs Sypken... (not verified)

[...] And I would like transparent windows don't show only the kde background like konsole does, but other windows that are behind it too.

If you think about it for a moment you would probably realize how annoying that would be. For starters you could easily get confused what window is on top/has the focus. I seriously cannot imagine anyone using this feature permanently.

by Richard Garand (not verified)

Not if it's well implemented. I was just playing around with tranparency in the Konsole, and I didn't find the right setting right away because some of the schemas show too much of the background. With 50% transparency, it would be easy to see what window is on top.

Hells yeah!!! We need that so bad.
Of course, it has to have an optional dim/tint/semi-transparent mode to keep it from getting confusing :)

by Julien chevalier (not verified)

Ok XFree seems to be able to get translucent windows, but how the hell can we get it to work ? Do we need to recompile all the appz that could deal with this Xfree feature ? where can we find howtos ?

Link to Konqueror screenshot is broken :(

by Navindra Umanee (not verified)

Fixed, thanks.


by Michael M Nazaroff (not verified)

I'm glade someone is working on eye candy because it sure is fun if nothing else. Hopefully this code will be out sooner then later so we can build it into kde. I would sure like to see the backround for kicker being transparent along with the menu structure, now that would be great fun don't you think?

is this michale nazaroff from central east?

by me (not verified)

What's the point? Instead of adding funky transparency, why don't the KDE folks do stuff like: fixing bugs - fixing spelling/grammar mistakes in the UI - fixing capitalization mistakes in the UI - making the UI more consistent - making KDE faster.

by Wilco (not verified)

Why? Because the KDE folks are volunteers. They like to hack some fun stuff too from time to time. Besides that the KDE folks DO fix bugs, they DO the other things you mentioned. If that doesn't satisfy you, you could even do those things yourself!

by Anonymous Coward (not verified)

Yeah right. First of all, please report those bugs you found.

by steve qui (not verified)

you are wrong!

have a look at kde 2.1 it is stable and usable and very fast!

imho it is time to implement good looking things too.

have a look also on the bug-tracking system of gnome.... they have realy big fixing-problems... and it seems no one kann solve it.



>>What's the point? Instead of adding funky >>transparency, why don't the KDE folks do stuff >>like: fixing bugs
>you are wrong! have a look at kde 2.1 it is >stable and usable and very fast!
And who said that? Last time I checked, half of
the applications still crashed in the first 40
seconds of actual usage (i.e. not watching
the screen, but clicking on it). The applications
that worked seemed to make some strange
assumptions on what functionality I need and what
I do not need. For example, there was no ability
to set arbitrary colors in KTerm. Nor was it
possible to use large fonts for window titles,
as the title bars did not change height. This
list can continue for ever and ever.

>have a look also on the bug-tracking system of >gnome.... they have realy big fixing-problems... >and it seems no one kann solve it. bye steve
Was it supposed to be an argument against the
necessity to fix bugs?

by steve qui (not verified)

you are a troll!

you have your head in the sand, zealot.

Get your head out of your ass and you'll see that this is not true.

you have your head in the sand, zealot.

by Uh? (not verified)

You must be doing something very very odd, then, as I and several people in my office have been using KDE 2.1Beta2 since it was released, and I've heard of maybe two or three crashes, total, since that time.

by renaud (not verified)

OK, it's cool to have a beautyfull desktop on the screen to show friends how Linux can look.
But don't forget to optimize your code. I use KDE 2.0.1 on an "old" pentium 166 and it is quite slow to load and konqueror isn't usable (using mc instead), althought it work great on my Athlon 600.

by Richard Moore (not verified)

You should find it quite a bit faster in 2.1, the file views are a lot more efficient.


by RE: How about speed (not verified)

How does this compare to IE 5.5 (or Netscape 6.0) running on your P166 and Athlon 600 ?


by renaud (not verified)

I don't use them on the P166, it's mainly used to write my reports (with LyX).
But with the Athlon, Konqueror work greater than Netscape (don't use IE, i don't like it).

by Nick Name (not verified)

Of course the matter is the quantity of RAM being used, but on any pc I got IE is faster than konqueror. (this does not mean I can bear running windows more than one hour in a week) :)

A little ot but important for me: has someone thougt of the kde panel being able to become a gnomeish corner panel? I like the afterstep wharf and this is one of the reasons I prefer gnome to kde (!!! a serious reason of course) And what about interchangeability between gnome and kde applets? That would be useful!

by Tackat (not verified)

The important thing isn't the processor but the amount of memory. If you have at least 48 MB and if you only use KDE-applications the KDE 2.x should perform quite nicely on your system. If it doesn't then you probably use bad RPMs or something else doesn't work properly.


This is a great idea and it's not just eye candy but also a great relief on the eyes! Good on you!! Thank you!

by jimbo (not verified)

Have you seen the shots of Aqua/XFree86?

I noticed how the Aqua titlebars are transparent, that is actually somewhat usefull as you get to see more of the "hidden" application windows when messing around on your workspace - getting a better general feeling of where you can find windows/apps pushed in the background...

I quickly open *many* windows on the same desktop, being very poor at using multible desktops - so this would be helpful.

by Mark Hillary (not verified)

I like the sound of this. But wouln't it be better if this was supported in Qt of the kde libaries, becasue the way I understand it is that at the moment transparency is being add on a app by app approce.

This to me seems that it is creating a lot of xtra code, which increase the size of KDE and slows it down. If this feature was added to the wigets in QT, then all the apps could use it, cutting down on the extra code, and also making it easier to implement for new apps that are been developed.

I can't understand why people want to do this. The idea of things being transparent may sound cool and may look cool in carefully setup screenshots but it's not very practical is it. What happens when you have multiple windows open or a complex background or one that clashes with your chosen text colour or something with text on it like a console or web page? Everything becomes difficult/impossible to read. I can't read many of the folder names in that screenshot so why would I want to use a program like that?

a) It's not really transparent. It's pseudo-transparent. Generally it only shows the desktop. So if you overlap windows you won't see the window underneath it through the top window, just the desktop image.

b) If you use a terminal like Eterm you can not only tell it to be semi-transparent but you can also shade and tint the window. The shading solves the text color issue. With a 50% shade you can generally see white text even in areas where the desktop pattern is white. Though it might be a little light. But with a darker desktop image you'll have no issues reading anything.

c) Why would you tell an application to run with a text color that clashes with your background image? I'm assuming that if you're setting transparency on an application like konq that you're overriding the website colors in the first place.