After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 604315 - styling GtkAccelLabel
styling GtkAccelLabel
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Widget: Other
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2009-12-10 22:34 UTC by Hylke Bons
Modified: 2010-04-21 11:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
different colours for menu accellerators (29.97 KB, image/png)
2009-12-11 11:47 UTC, Hylke Bons
Details
nautilus example for different colour (66.83 KB, image/png)
2009-12-15 00:57 UTC, Vinicius Depizzol
Details
accellabels in the moblin theme (18.56 KB, image/png)
2010-01-17 21:26 UTC, Hylke Bons
Details

Description Hylke Bons 2009-12-10 22:34:05 UTC
Is it possible to style the keyboard shortcut part of GtkAccelLabel?
I'd like to change the colour of the text to tone it down a bit, so it doesn't distract from the desctription part.

If this is not possible I would like to make it a feature request.

Hylke
Comment 1 Andreas Nilsson 2009-12-11 11:27:56 UTC
It would be cool to see a mockup on how this could look in action.
I think it would be nice to be able to deempathize the shortcut part of a menu item a bit.
Comment 2 Hylke Bons 2009-12-11 11:46:33 UTC
Attached a quick mockup.
Comment 3 Hylke Bons 2009-12-11 11:47:17 UTC
Created attachment 149582 [details]
different colours for menu accellerators
Comment 4 Jakub Steiner 2009-12-11 12:12:13 UTC
I approve this message! ;)
Comment 5 Matthias Clasen 2009-12-11 13:36:55 UTC
I'm in general very loathe to accept anything that uses grayed-out text for 'better looks' - grayed-out text has a very clear meaning in our UI, and that is 'insensitive'
Comment 6 Hylke Bons 2009-12-11 13:47:49 UTC
(In reply to comment #5)
> I'm in general very loathe to accept anything that uses grayed-out text for
> 'better looks' - grayed-out text has a very clear meaning in our UI, and that
> is 'insensitive'

It doesn't have to be grey, that depends on your theme, I don't see the problem with it if all the shortcuts are coloured the same.
Comment 7 Matthias Clasen 2009-12-11 13:51:08 UTC
> I don't see the problem

Right. Thats why I'm mentioning that I see the problem :-)
Comment 8 Hylke Bons 2009-12-11 13:53:00 UTC
Please respond to the attached argument :)
Comment 9 Christian Dywan 2009-12-11 13:55:23 UTC
"It doesn't have to be grey" sounds a bit like "let's pretend it's pink for now, but it will be grey in the real world".

I second Matthias point about it looking insensitive.
Comment 10 Matthias Clasen 2009-12-11 13:57:36 UTC
Show me a mockup that has insensitive menuitems and your fancy-colored accelerators, and lets me differentiate between the two. Preferable not a mockup in a dark theme, but something closer to the default gnome theme. Then we can talk...
Comment 11 Hylke Bons 2009-12-11 14:05:46 UTC
Ok, it will take some time.
Comment 12 Hylke Bons 2009-12-11 14:06:23 UTC
Christian: meh, you got me :P
Comment 13 Vinicius Depizzol 2009-12-15 00:57:30 UTC
Created attachment 149739 [details]
nautilus example for different colour

(In reply to comment #5)
> I'm in general very loathe to accept anything that uses grayed-out text for
> 'better looks' - grayed-out text has a very clear meaning in our UI, and that
> is 'insensitive'

Nautilus nowadays uses in its Icon View a different colour to show extra information for the files. I think this works pretty well in cases like this, where there are different types of information in the same place.

Well.. this is the same situation of menus, isn't it?
Comment 14 Rich 2010-01-12 21:34:05 UTC
Just as a point of interest, there is a downstream project that it is interested in seeing this feature implemented:
https://bugs.launchpad.net/hundredpapercuts/+bug/493762

Personally, I love comment #3's mockup.
Comment 15 Dylan McCall 2010-01-12 21:57:31 UTC
(In reply to comment #5)
> I'm in general very loathe to accept anything that uses grayed-out text for
> 'better looks' - grayed-out text has a very clear meaning in our UI, and that
> is 'insensitive'

I find that thought a bit painful, actually, for the simple reason that grey text SHOULDN'T mean "insensitive" and continuing with that idea is going to create a lot of problems. For example, an insensitive widget with blue text becomes slightly desaturated blue. So, should everything that is sensitive be full bright colours?

I don't think it should be a concern, Matthias, since only the secondary text is grey here. The primary text is still happy looking, and that is where the user would be looking, especially with this change implemented.

This is bike-shedding, though. Sorry. If the usability issues are too extreme, a similar effect can be implemented by italicizing or shrinking (or both) the GtkAccelLabel :)
Comment 16 Rich 2010-01-17 21:14:29 UTC
Either way, it should be stylable, but I agree with Comment 15 that we shouldn't be afraid of darker text as long as the PRIMARY function is still bright.
Comment 17 Hylke Bons 2010-01-17 21:25:23 UTC
Thomas Wood implemented this for the moblin-gtk-engine. It doesn't look confusing to me. The difference bewteen disabled entries can be made bigger as it's not that great in this screenshot.

Attaching screenshot.
Comment 18 Hylke Bons 2010-01-17 21:26:12 UTC
Created attachment 151627 [details]
accellabels in the moblin theme
Comment 19 Matthias Clasen 2010-02-09 01:08:11 UTC
Still looks confusing to me.
Anyway, the fact that this can be implemented in theme engines pretty much means that we can close this bug, I think.
Comment 20 Hylke Bons 2010-04-21 11:33:23 UTC
Let's close this. Clearlooks and Moblin engines can now do this and was very easy to implement by engine writers.