Dashboard: Ein KWin Effekt-Plugin
Da ich Qt lernen wollte, begann ich damit, einige KDE Quelltexte zu lesen und einige kosmetische Änderungen an diversen Stellen vorzunehmen (wie etwa GUI-Verbesserungen für das NetworkManagement Plasmoid). Unter anderem habe ich auch den Blur-Effekt zur KWin’s Bildschirm-Wechselanzeige hinzugefügt. Das war das erste Mal, dass ich KWin code in den Fingern hatte.
Die KWin Entwickler im IRC-Chat waren sehr hilfsbereit (mein Dank gilt mgraesslin, notmart, sebas und allen anderen Helfern). Als ich vorschlug, das Plasma dashboard dahingehend zu patchen, dass es seinen Hintergrund verwischt darstellte, trat ich damit eine Diskussion los, dass dies doch am besten von einem KWin Plugin erledigt werden sollte.Gesagt, getan. Ich schaute mir einige ander KWin plugins an, die mir einfach genug erschienen, sie zu verstehen und nutzte sie als Vorlage für mein erstes eigenes KWin plugin. Unnötig zu erwähnen, dass ich ein einen Riesenhaufen Probleme gestürzt bin! Nicht genug damit, dass ich mit der KWin Infrastruktur eine erste Hürde zu nehmen hatte; Nein – auch einige Plasma-Interna waren zu erlernen. Und all das vor dem Hintergrund, dass ich auch mein seit dem Studium arg eingestaubtes Wissen über C++ Syntax auch erst wieder auffrischen musste. Glücklicherweise habe ich mich durchgebissen. I wollte mein Effekt-Plugin konfigurierbar machen, also lernte ich die Konzpte hinter Qt Benutzeroberflächen kennen und nutze Nokias Qt Creator um eine schicken Konfigurationsdialog zu erstellen, in welchem man die Helligkeit und Sättigung einstellen kann. Natürlich kann man dort auch den Blur-Effekt aktivieren (wer hätte DAS gedacht? *G*).
And noch große Reden zu schwingen, möchte ich Euch das Ergebnis meiner Arbeit während den letzten Wochen zeigen:
Es gibt immernoch ein paar rauhe Ecken zu glätten. Da allerdings KDE SC 4.5 schon im Feature-Freeze ist, gibt es keinen Grund zur Eile. Sobald 4.5 gebrancht ist und der Trunk sich wieder öffnet, werde ich mein Werk an das Reviewboard zur Diskussion senden. Ich bin guter Dinge, dass dieses Plugin Bestandteil von KDE 4.6 wird.
12. Juni 2010 um 18:14
since this is a plugin, it would be cool, that you release this plugin on kde-look.org before kde sc 4.6. this would also enable you some more feedback, like bug-hunting ;)
12. Juni 2010 um 18:24
Really nice! Maybe some dude will backport it to 4.5 :D Would be cool :D
12. Juni 2010 um 19:22
Nice work! I love the blur effect for the Dashboard – stunning! Man, 4.5 isn’t even out yet and I can’t event wait for 4.6!
12. Juni 2010 um 19:28
Since you’ll have time, how about making a zoom out effect like the MacOS Dashboard effect? I’m looking forward for this ;).
12. Juni 2010 um 21:08
Nice work!
This is definitely one of the nicest places to use blur (along with panels) imho. Not just because “everything looks more bling with blur!” as it’s sometimes used, but with a purpose of (literally) focusing the user on the information / tool at hand and using blur to downplay distractions (like the background windows here).
I’ll definitely be using this when it comes out.
Hey, one idea (if the video drivers are fast enough)…
It would look gorgeous to have the lightness / saturation / blur all transition in when used. By that I don’t mean you fade between the initial image and the altered image, but that blur quickly animated between 0 to 100% of what it was set to (so you briefly see it blurring), as did the darkness (so you see it fade to darker) and saturation (so you see it fade from full colour to black and white) etc.
I’m talking the same time frame as the animations for windows opening and closing, so it’s quick, but just noticable.
Anyway, thanks for adding to KDE’s already beautiful look. This effect looks fabulous!
12. Juni 2010 um 21:10
Really impressive, can’t wait for it to be included in KDE.
Thanks for your work!
12. Juni 2010 um 22:49
Unfortunally, this plugin required some changes in Plasma and kdelibs, too. So I cannot release this standalone without the need to recompile both Plasma and kdelibs from scratch.
13. Juni 2010 um 11:07
@BUGSBANE
Fading between initial and final state, where the initial image is unblurred and the final is blurred, though it is not equivalent to animating the blur distance delta, might create quite a believable “unfocussing” transition (particularly as the animation would last only around 250ms). You’d have to see.
As for saturation and brightness, fading between the final and initial images would be equivalent to animating the variables.
Given the frame-rate of the youTube video, the transition might already be animated and we wouldn’t know.
13. Juni 2010 um 11:09
ps nice wordpress theme
13. Juni 2010 um 11:58
@maninalift, @BUGSBANE: My effect is not yet animated but this is already planned for the future. I agree, this would enhance the experience. Right now, the window zoom in effect handles the dashboard which makes animation hard. For 4.6, we want Plasma to flag the Dashboard so that KWin effects can spare it out and leave in/out animations to the Dashboard effect.
@maninalift: Thx for the comment on my WordPress template, it is completely designed and coded from scratch by me.
13. Juni 2010 um 17:33
The plugin looks very nice! I’m looking forward to KDE SC 4.5 AND 4.6 :D
26. Juni 2010 um 17:29
[...] habe ich meinen Patch des Dashboard-Effect Plugins für KDE zum Review eingereicht. Aaron Seigo und Martin Gräßlin (zwei KDE Urgesteine) haben mir viele [...]
23. Juli 2010 um 22:48
[...] der Feierabende meiner letzten Wochen in den KDE SVN Trunk committed: Die initiale Version des KDE Dashboard-Effekt Plugins für KWin. Damit ist das Plugin offizieller Bestandteil der KDE SC 4.6, die Anfang 2011 erscheinen [...]