Page 1 of 3 123 LastLast
Results 1 to 10 of 25

Thread: Customizing existing icons

  1. #1
    Join Date
    Feb 2012
    Beans
    17

    Customizing existing icons

    I'm running Ubuntu 12.04 with gnome 3 shell. I'm currently using the icon theme Ubuntu mono-dark and I like it but there are just a few icons I want to change. I imagine changing those icons would just be going to some directory and replacing the images, so I looked at /usr/share/icons/ubuntu-mono-dark/ but I'm not sure where to go from there. There are 3 folders there, 16, 22, and 24. In 22 and 24, there are icons that say "audio-volume-low-panel.png" "audio-volume-low.png" etc but none of them are the ones that contain the images that appear when I change the volume through fn-f11 or other fn hotkeys. I looked but I can't find a tutorial for editing an existing icon theme in 12.04, but if there is one please post the link.
    Any help is much appreciated.

  2. #2
    Join Date
    Feb 2010
    Location
    WI USA
    Beans
    9,835
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Customizing existing icons

    Not all icon themes are set up the same way. I have changed images in other sets but not Ubuntu defaults.

    Ask Ubuntu may another place to seek an answer. I don't think the Ubuntu sets work independently of each other and that is why you can't locate the identical images. Keep in mind some icons have many images to create an animation. Volume and battery status would be examples of that.
    Infinite diversity in infinite combination.

    Ubuntu Documentation Search: Popular Pages
    Ubuntu: Security Basics
    Ubuntu: Manual

  3. #3
    Join Date
    Feb 2012
    Beans
    17

    Re: Customizing existing icons

    Quote Originally Posted by Frogs Hair View Post
    Not all icon themes are set up the same way. I have changed images in other sets but not Ubuntu defaults.

    Ask Ubuntu may another place to seek an answer. I don't think the Ubuntu sets work independently of each other and that is why you can't locate the identical images. Keep in mind some icons have many images to create an animation. Volume and battery status would be examples of that.
    Alright, I'll make a post over at Ask Ubuntu, thanks.

  4. #4
    Join Date
    Feb 2012
    Beans
    17

    Re: Customizing existing icons

    http://askubuntu.com/questions/24522...themes-gnome-3
    The ask ubuntu thread, posted for reference.

  5. #5
    Join Date
    Apr 2005
    Location
    Finland/UK
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Customizing existing icons

    Quote Originally Posted by jrogge View Post
    I'm running Ubuntu 12.04 with gnome 3 shell. I'm currently using the icon theme Ubuntu mono-dark and I like it but there are just a few icons I want to change. I imagine changing those icons would just be going to some directory and replacing the images, so I looked at /usr/share/icons/ubuntu-mono-dark/ but I'm not sure where to go from there. There are 3 folders there, 16, 22, and 24. In 22 and 24, there are icons that say "audio-volume-low-panel.png" "audio-volume-low.png" etc but none of them are the ones that contain the images that appear when I change the volume through fn-f11 or other fn hotkeys. I looked but I can't find a tutorial for editing an existing icon theme in 12.04, but if there is one please post the link.
    Any help is much appreciated.
    Icon theme doesn't always have to have it's own images for every icon needed, the themes can also define another theme to inherit from, and then all the missing icons will be pulled form that theme instead. Which is most likely what you are seeing here.

    To find the original icon youa re looking for, take a look at the theme's index.theme -file. In the beginning you'll find a line like this:

    Code:
    Inherits=Humanity-Dark,gnome,hicolor
    This means that if an icon isn't found from ubuntu-mono-dark, the system should look if one is available in Humanity-Dark. And if not there, then gnome, and finally hicolor.

    This also means that once you have found the correct icon and it's name, you don't have to edit any other theme, as soon as you create the icon in the theme you are editing the system will start using it instead of inheriting it from some other theme. (And also you don't actually need to edit an existing theme to change a few icons, you can instead make a new theme of your own, just add the icons you wish to change and then set the theme to inherit from ubuntu-mono-dark )
    Last edited by mcduck; January 20th, 2013 at 09:50 AM.

  6. #6
    Join Date
    Dec 2007
    Location
    Bombay
    Beans
    5,504
    Distro
    Lubuntu 14.04 Trusty Tahr

    Re: Customizing existing icons

    Quote Originally Posted by mcduck View Post
    ... take a look at the theme's index.theme -file. In the beginning you'll find a line like this:

    Code:
    Inherits=Humanity-Dark,gnome,hicolor
    This means that if an icon isn't found from ubuntu-mono-dark, the system should look if one is available in Humanity-Dark. And if not there, then gnome, and finally hicolor.
    ...
    Very helpful ... Thanks!
    de gustibus et coloribus non est disputandum -- Wiktionary

  7. #7
    Join Date
    Feb 2012
    Beans
    17

    Re: Customizing existing icons

    Quote Originally Posted by mcduck View Post
    Icon theme doesn't always have to have it's own images for every icon needed, the themes can also define another theme to inherit from, and then all the missing icons will be pulled form that theme instead. Which is most likely what you are seeing here.

    To find the original icon youa re looking for, take a look at the theme's index.theme -file. In the beginning you'll find a line like this:

    Code:
    Inherits=Humanity-Dark,gnome,hicolor
    This means that if an icon isn't found from ubuntu-mono-dark, the system should look if one is available in Humanity-Dark. And if not there, then gnome, and finally hicolor.

    This also means that once you have found the correct icon and it's name, you don't have to edit any other theme, as soon as you create the icon in the theme you are editing the system will start using it instead of inheriting it from some other theme. (And also you don't actually need to edit an existing theme to change a few icons, you can instead make a new theme of your own, just add the icons you wish to change and then set the theme to inherit from ubuntu-mono-dark )
    I'm confused, which theme should I replace the image in? Should I just dig around in the folders until I find the images?

    EDIT: Nevermind, I must have missed the part where you said the order of inheritance. Thank you so much, I'll post the results later today.
    Last edited by jrogge; January 20th, 2013 at 05:13 PM.

  8. #8
    Join Date
    Mar 2011
    Location
    U.K.
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Customizing existing icons

    I had a similar problem which I posted here .. if it helps ..

    http://ubuntuforums.org/showthread.php?t=2104483

  9. #9
    Join Date
    Feb 2012
    Beans
    17

    Re: Customizing existing icons

    I switched the audio-volume-high.png file in every place Ubuntu-mono-dark inherits but it still is showing the original image? How can I find out where the theme is getting the image so I can change that>

  10. #10
    Join Date
    Apr 2005
    Location
    Finland/UK
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Customizing existing icons

    Quote Originally Posted by jrogge View Post
    I'm confused, which theme should I replace the image in? Should I just dig around in the folders until I find the images?

    EDIT: Nevermind, I must have missed the part where you said the order of inheritance. Thank you so much, I'll post the results later today.
    You only should change it in the theme you are editing. The inheritance is used only if an icon doesn't exist in a theme. (This way the theme creators don't need to duplicate every singe image file to create a small variation of a theme, for example a different versions for light and dark panels.)
    Last edited by mcduck; January 20th, 2013 at 09:03 PM.

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •