Some unity configuration in gnome-control-center.
Par Didier Roche le jeudi, janvier 26 2012, 11:10 - Lien permanent
Just finished some hacking for implementing some unity configuration options that are blessed by the design team, as shown in this official specification.
It contains as well other ui tweaks. You can notice in particular the "Restore defaults" options that work on each tabs and restore every page's defaults.
Those options are impacting both unity and unity-2d. This gave particular challenges as their features don't align (for instance, we don't show the "set launcher icon size" for 2d) and they don't have the same kind of "launcher hide mode". Also, some configuration options have more choices in ccsm than those shown in the ui (like if you want to reveal the launcher on the bottom-left corner, or if you are using the "dodge active window" mode. We tried to be clever on the ui side and not resetting any different setting you can have set in ccsm by just launching the ui.
We also had to do some choices, like what settings to take by default (on first ui launch), when you have different settings between unity 2d and unity 3d? As there are more ui to tweak 3d than 2d, I thus decided to take the settings from 3d at startup (and then, the settings will align).
Note that the "reveal spot" doesn't work right now for Top Left corner, but this is a compiz/unity bug and not yet (but soon will be!) implemented feature in 2d.
Finally, if you are using a non unity session like the gnome-panel or gnome-shell one, you won't be impacted by those new settings. You will still gain a new "Restore defaults" option though. 
The package is currently building and will be available soon in Precise, enjoy!


Commentaires
Ces posts sont intéressants... mais ils le seraient d'autant plus si ils étaient laissés en français sur le site ubuntu-fr.org !
Je sais bien que c'est terriblement + valorisant de parler anglais... (tout du moins je l'imagine car je ne parle pas cette langue...).
Mais le site ubuntu-fr.org est la communauté francophone d'Ubuntu, havre de paix pour moi. Je reste d'ailleurs admiratif du travail que fait l'équipe de fullcirclemag.fr pour rendre le mag accessible pour tous, y compris ceux qui ne maîtrise pas la langue de Shakespeare et donc n'ont aucune vocation à faire partie de l'élite.
Pourquoi ne pas s'inspirer d'eux, puisque vous avez la chance d'être aussi à l'aise dans une langue que dans l'autre ?
@Mathieu: j'ai un tag "PUF" pour faire passer mes articles en français (il y en a, voir ci-dessous). Cependant, un bug sur la planet fait que tout mon flux RSS passe en ce moment sur ce planet. Cela a déjà été reporté aux administrateurs.
Donc merci de ne pas me faire prendre de mauvaises intentions, mais de se renseigner avant tout.
En ce qui concerne la traduction, vous noterez que l'équipe fullcirclemag.fr traduisent des articles écrits par d'autres. J'ai déjà écrits beaucoup d'articles en anglais ET français. Cependant, cela est laissant. Rien n'empêche des personnes motivés de traduire les articles qui passe sur la planet ubuntu anglophone comme celui-ci. Si vous voulez laisser un mouvement de traducteur à ce niveau, ce sera une bonne contribution
Love the "restore defaults" button.
When you say it works "on each tabs", do you mean on every single panel of the GNOME Control Center, including the upstream ones?
If so, that's absolutely awesome and it deserves to be pushed upstream. Is there a bug in upstream's Bugzilla where I can CC myself to follow on the feedback from the GNOME folks?
Note: Far from me to try and imply that's "yet again a Canonical patch that they don't want to contribute back".
I'm genuinely interested in seeing that pushed upstream (since I don't use Unity but GNOME 3, and I think that's a great feature), and knowing you a little, I have no doubt that if you haven't pushed it upstream yet, you at least had the intention to do it.
However, knowing how the GNOME designers try to follow a strong vision, I'd be interested in following the arguments they would have in favor or against it.
@bochecha: unfortunately, the code is quite independent from one section to another in gnome-control-center.
I reffered there "each tab" by "each background panel tab" (you can see there are two if you run it under unity, see my above screenshots, just one if you run under a GNOME shell). The "Restore Defaults" can still make sense there, but I think a wider work has to be done on each panel to get this restore button across all panels from gnome-control-center. This is something I'll work on the following weeks in my spare time to propose that upstream (not really straightforward because g-c-c don't listen on gsettings/gconf key changes).
Can you please stop butchering the upstream UI? Thanks...
@Bastien: Why not? The upstream UI is bad enough, and it would be better if upstream takes care of what downstream is doing, so they can improve g-c-c.
@Fitoschido: I love the upstream UI, so I really hate it when Ubuntu developpers make modifications to it.
Sometimes I wish Ubuntu had simply developed its own desktop instead of basing their shell upon GNOME 3. This way, they would have let GNOME 3 untouched, and we would all be happy.
@Obi Wan Kenobi: as I wrote on the above blog post, the ui isn't changed on a gnome shell or gnome panel session.
@didrocks: still, people using Unity will have a different g-c-c from upstream g-c-c, and their opinion about g-c-c (and gnome) design will be tainted by your modifications.
@Le jeudi: Sounds to me like you don't like open source or the ability for people to make modifications and then distribute the modifications.
I really like that this is happening (yay, settings that had a design document first!). Here are some thoughts in the order they popped into my head:
I hope that Restore Defaults button is an early work in progress: I like the idea, but having it scattered amongst settings is just weird. Especially since System Settings at this point has very few action buttons that refer to settings in general. Except for the Displays panel, this new UI panel is the only one with such a control. Right now, it's going against the grain.
Oh, and consistency aside, it's really crowded and hard to understand: these two buttons have the same label but they're very close to each other. That's redundant. And, because they have the same label, I don't know if clicking Restore Defaults will restore the defaults for all of UI or just for the single tab the particular button is on.
Could it go in the toolbar and refer to the entire panel? Even if it's just for a few panels to begin with (like the Unlock button) it would feel much less crowded to me.
Are those horizontal dividing lines doing anything for us? Nobody else uses them. Even Universal Access. And they have a lot more sections than the UI panel.
What happened to the margin under the wallpaper source combo box?
The Background header does not strike me as particularly well aligned, particularly since the buttons to actually choose the background are way over on the other side.
I like the placement for the background's name, centred below the preview.
I think it's weird that the preview only shows the wallpaper, while the new Theme and Launcher Size options have no feedback except in the actual UI. The preview is dominating enough that I'd expect it to do everything.
Hi Didier,
As said in French ubuntu forum, I hope that hot corners settings in unity ( ie for desktop switcher ) will be included in this user interface configuration tool.
Thanks
Sorrodje
@didirocks: I've just tested that in gnome-shell in Precise, and I'm sorry to say that my appearance UI *is* now different from upstream:
- There are (ugly) separators between the background section and the theme section
- There is the "restore default" button and the bottom of the window.
@Obi Wan Kenobi:
the restore default will be removed for all sessions due to a design refinement. But for other changes that's what I stated in my blog post: the common changes to the distro are changed, the unity specific part only appears in unity.