Elegance #4: tab bar uncluttered

In previous "elegance" entries I presented just ideas, without implementation. Readers obsessed in the area of look&feel may remember the proposal for uncluttering tab widget when used in side pane.

Any specific fix would be just for Oxygen style, so it is still unclear if starting to code this makes much sense. But. As a low-hanging fruit today I called this code on my tab widget of Kexi side pane:


As for so cheap fix the result looks quite nice to me. Also presented result for two other styles. I think it's good hint for similar UIs. Also works with Qt-only apps.


I think this should be done by the style really. I see that your method is universally applicable, but I don't think it should be the app developer's job to work out these details in design. That's the job of the style: ideally, it should detect when the margins/spacings are too small and look crappy and then automagically remove lines/frames where possible.
I, as a developer, only want to say: "Here is a tab widget in a dock widget. Style, go figure how it looks best.".
FWIW, I think the Cleanlooks screenshot would look better if there was a frame around the tab widget, because the dock widget doesn't have a frame itself.

By arno rehn at Thu, 09/30/2010 - 21:33

"I think this should be done by the style really."

Makes sense, there are more elements that would need update in styles, e.g. modern tool tips.
Regarding dock widgets/panes - they as a concept have never look really safe to me, firstly because of the look and secondly because Joe User can break too much (see Qt Designer, KWord). I try to address the 2nd problem by collapsing the panes as in iDeal mode of KDE3 instead of completely hiding. Perhaps such collapsing would also need styling updates in popular QStyles.

By Jarosław Staniek at Fri, 10/01/2010 - 21:22