Tag Archives: panel

A FormFactorized Plasma Quake

Software

Plasma always had this really cute concept of “formfactor”: in brief different areas where plasmoids can reside have different behaviours, for instance a desktop is planar, i.e. the applets can grow anywhere they want.

The panel on the other hand can have a vertical or horizontal form factor, it means the applets in it can grow only in the vertical or horizontal direction, so an applet with a high quantity of content can’t display everything it would want…

In past releases of KDE4 the right behaviour of applets was still not really finished, so some applets like the device notifier were more kind to the panel, displaying the whole device list on the desktop and an icon+popup on the panel, other applets like the twitter applet hmm not soo good 🙂

Now with KDE 4.2 every standard applet distributed with kdewill fully use the form factor concept, so far we have 3 different classes of applets:

Applets that are just the same or with very little differences in different form factors, like simple icons or the taskbar.

Applets that diminishes their information quantity in horizontal or vertical form factors, here are two examples:
when in the panel the now playing applet just displays the control buttons, and the leave note applet switches to an horizontal layout, so it makes enough room for an horizontal panel.

Form factors

Some other applets, like the device notifier or kickoff wouldn’t mean that much without some of its contents, so in the panel will be an icon+popup and in the desktop the whole plasmoid will be shown. but what about very big panels, so big that the whole plasmoid could fit and a ginormous icon wouldn’t make so much sense?

OGG version

When the applet knows that it would fit into the panel, the icon goes away and the whole applet content is displayed, and goes back to an icon when the panel is shrinked again.

Now, since Plasma in KDE 4.2 supports also panels not always on top and autohide panels, you could have for instance a thing that looks like a Quake console with plasmoids in it, just like Konsole for terminals 🙂

Enlarge your panel

Software

Plasma for KDE 4.1 is coming along nicely, probably it won’t have everything we wanted to but i think it’s an huge improvement already compared to 4.0.x series.
A feature i did for 4.1 is to make panels really easy to configure and make exactly how you want, even an insane layout like that:

whacky panels setup

The panel configuration dialog that was in 4.0.x was killed and replaced with that strange thing that appears when you click on the little panel toolbox that spots a wordprocessor-like ruler complete with paragraph alignment buttons:

Panel controller

This would seem quite complex, but it’s the most powerful way that catches the future development of the panel even beyond 4.2. Why?
in KDE 4.1 the panels will be able to automatically grow/shrink when you add and remove applets (in the future also applets like the task manager will be able to make the panel grow or shrink, that’s 4.2 stuff), so you could want to set where the panel starts, the direction where it grows and a maximum and minimum sizes that limits the growth/shrink of the panel. so it’s like a paragraph aligned to the left, center or right of the page, so here we go with the three paragraph alignment buttons 🙂

So if the panel can enlarge/shrink itself it’a also necessary to setmaximum and minimum boundaries beyond you don’t want the panel to resize (and the default will still be both maximum and minimum witdth to 100%) and here we have the three little ruler handles, that sets respectively:
white: panel position relative to the left, center or roght anchor point
blue: maximum panel size
green minimum size

Since a video is worth more than 1024 words here it is:

And since flash sucks here it is a bigger theora file.