
Improved desktop background settings
Various KDE 1.-4. Improvements
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
I started to work on this today to give an example, but man, more involved than I thought. I propose a complete rewrite of the desktop background code. Currently you can select to display and image and optionally have a gradient of some kind overlayed on it. This works for most people, but I like more control.
How about this. The desktop is actually composed of layers, much like an image in the gimp or so. There are different layer types. For example, there could be an image layer type. Here you select the image, or wallpaper, and then some other items like scaling types, position offsets, alpha blend. Then there could be another type gradient. Here you get your usual gradient options. It would be super damn cool if the gradient editor was like the gimp gradient editor. Ok, so now we have a list of layers. The backend code then loops through the layers one by one to generate a flat image to use as the background.
Another twist on this, which I think is the coolest, is plugins. I know it seems kinda overkill for a desktop background, but that allows for people to extend the options for the background very easily. Just have a few hooks. The GUI code for the options could be stored in the plugin. There could be an wallpaper loop pluging, image plugin, gradient plugin, coolGradient plugin, and so on...
The settings could be moved from the kdesktop to kbackground or something like that to avoid the clutter of the kdesktop configuration file.
I think this would be a great boost for KDE that the end user sees. This is something that windows does not have, gnome does not have... I do know that I have seen this kind of configurability in a Linux system at one time, but that was long ago and I have not seen it since.
What do you all think.
Justace
H00K
16 years ago
oh, btw, did you graduate well?
Report
nightwriter
16 years ago
Report
Justace
16 years ago
you could do this. But then what would be different that just making the image in the gimp and then using that as a wallpaper. It would work, but it would lack integration.
And that is what the KDesktop is about, integration.
Justace
Report
Superstoned
16 years ago
but more flexibillity is always nice, so I'd vote for.
Report
romaninsh
16 years ago
Report
Justace
16 years ago
Not trying to say anything bad about karamba, I use it and like it. A solution for this in karamba would seem to be nothing but a hack to me.
Justace
Report
H00K
16 years ago
If this gets implemented into KDE later on, you can definetly bet on getting a beer (tea, or whatever's your poison) from me!!
I just see one little "problem" - how much resources will this eat? ...I mean, I'm constantly running 6 desktops and have different backgrounds on each ...and now I try to imagine what would happen then to my resources when I put like 4 or 5 nifty effects on each background - that would be 6 background images (maybe even more, if i combine different images), with cca. 28 effects.
Keep up the good work ...can't wait to see the end result
Report
Justace
16 years ago
Yhea, that is always the enemy. I think that this would require a complete rewrite of the background code. If I had a month off I could probably work on it. As it is right now, I am getting ready to graduate. So my time is being devoted to writing papers and my other job. So, in short, I do not have the time to write this right now, although I would love to.
Also, as for your other concern, The images could be flattened and then cached. So essentially you only have one image for each background, it is not like they get rendered each time you go to the window. Dynamic content, like a web page or something, needs to be run as a separate program. So this would only be for the static portions of the background.
Justace
Report
Justace
16 years ago
You find a cool background, but you want your company logo on your desktop also. So you select two layers. The bottom layer would be the cool background. The second layer would be the logo with the offset of the logo set such that the logo would appear in the lower right hand side of your desktop. You could then have some fun with it and set the alpha on your logo to like 60%, then you would see through it.
Report
ziuchkov
16 years ago
P.S. It's 3AM, I'm about to go to bed, and my coherency level is very low....dunno if any of what I said makes any sense
Report
Justace
16 years ago
Report