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 636969 - gtk: Use symbolic icons in GtkVolumeButton
gtk: Use symbolic icons in GtkVolumeButton
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
unspecified
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2010-12-10 15:07 UTC by Bastien Nocera
Modified: 2010-12-17 13:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gtk: Use symbolic icons in GtkVolumeButton (1.76 KB, patch)
2010-12-10 15:07 UTC, Bastien Nocera
none Details | Review
gtk: Add symbolic property for GtkVolumeButton (4.62 KB, patch)
2010-12-15 15:00 UTC, Bastien Nocera
none Details | Review

Description Bastien Nocera 2010-12-10 15:07:52 UTC
So that movie players can use GtkVolumeButton and still get
the appropriate icons.
Comment 1 Bastien Nocera 2010-12-10 15:07:54 UTC
Created attachment 176182 [details] [review]
gtk: Use symbolic icons in GtkVolumeButton

When the application prefers dark themes.
Comment 2 Christian Dywan 2010-12-10 15:45:11 UTC
There are dark symbolic icons, too. So I suggest, this should be documented, otherwise it could be surprising.
Comment 3 Bastien Nocera 2010-12-10 15:50:21 UTC
(In reply to comment #2)
> There are dark symbolic icons, too. So I suggest, this should be documented,
> otherwise it could be surprising.

No there aren't. The symbolic icons recolour.
Comment 4 Christian Dywan 2010-12-10 16:06:38 UTC
They exist, I have seen them and tried them :-)
Maybe that is a problem elsewhere, and they are not being used correctly in some places, or the icon themes in question are wrong. Any pointers would be helpful, if this is indeed wrong.
Comment 5 Bastien Nocera 2010-12-10 16:12:52 UTC
(In reply to comment #4)
> They exist, I have seen them and tried them :-)

Then they're broken.

> Maybe that is a problem elsewhere, and they are not being used correctly in
> some places, or the icon themes in question are wrong. Any pointers would be
> helpful, if this is indeed wrong.

If you're talking about the ones in gnome-shell, then there's bugs already filed. Otherwise it's hard to know without more specifics (which aren't related to this bug anyway).
Comment 6 Matthias Clasen 2010-12-15 02:58:14 UTC
Hmm, I'm not convinced that switching to symbolic icons only when using a dark theme is the best approach. Wouldn't it be more natural to always use the symbolic icons, dark or not ?
Comment 7 Bastien Nocera 2010-12-15 14:15:23 UTC
(In reply to comment #6)
> Hmm, I'm not convinced that switching to symbolic icons only when using a dark
> theme is the best approach. Wouldn't it be more natural to always use the
> symbolic icons, dark or not ?

That would mean that applications like Rhythmbox, sound-juicer, Banshee, etc. would need to fully switch to using symbolic icons in their toolbars.

I could easily switch this code to using a property instead, so that applications that choose to use symbolic icons for the volume drop-down don't need to reimplement the full widget.
Comment 8 Bastien Nocera 2010-12-15 14:25:03 UTC
After discussing it with Jakub, we think that we shouldn't link the dark theme to the use of symbolic icons, even if it's possible that both would usually be used together.

I'll cook up a new patch that uses a property then.
Comment 9 Jakub Steiner 2010-12-15 15:00:36 UTC
Yea it's a tough call. There are only a few cases when it's desirable to use symbolic icons, it's not a fashionable new style we want to apply everywhere. 

Every time you are dealing with possible visual "pollution" where a set of icons could be grabbing too much attention away from the content (fullscreen video playback, status icons on a dash/panel). I've outlined some of the basic situations where to use symbolic icons here --
http://live.gnome.org/GnomeShell/Design/Whiteboards/SymbolicIcons/UseGuidelines

Dark themes are preferred for similar reasons as they make chrome less visually polluting, making the content clearly visible. Yet I am torn to link the two together and propose to always use symbolic icons when dark themes are used.
Comment 10 Bastien Nocera 2010-12-15 15:00:36 UTC
Created attachment 176469 [details] [review]
gtk: Add symbolic property for GtkVolumeButton

When the application prefers symbolic icons, avoids
having to reimplement the button in the software itself.
Comment 11 Bastien Nocera 2010-12-16 01:41:40 UTC
Tested in Totem with a bunch of .ui one-liners, and it works nicely.
Comment 12 Bastien Nocera 2010-12-17 13:24:19 UTC
As discussed on IRC with mclasen.

commit 23c1d1cbc99f927a78fb03665c7fd74ef7801611
Author: Bastien Nocera <hadess@hadess.net>
Date:   Fri Dec 10 15:05:50 2010 +0000

    gtk: Add symbolic property for GtkVolumeButton
    
    When the application prefers symbolic icons, avoids
    having to reimplement the button in the software itself.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=636969