Results 1 to 2 of 2

Thread: Can someone please explain "inherits" in icon themes?

  1. #1
    Join Date
    Dec 2007

    Can someone please explain "inherits" in icon themes?

    I've read through and here's a quote from there:
    The name of the theme that this theme inherits from. If an icon name is not found in the current theme, it is searched for in the inherited theme (and recursively in all the inherited themes).

    If no theme is specified implementations are required to add the "hicolor" theme to the inheritance tree. An implementation may optionally add other default themes in between the last specified theme and the hicolor theme.
    I'm using Lubuntu and its icons are in /usr/share/icons/lubuntu. In there, there's a text file called index.theme. The line of relevance is this:

    So I look at /usr/share/icons/elementary/index.theme and I see:

    But when I look in /usr/share/icons/gnome/index.theme, the word "inherits" doesn't figure at all.

    Q1: why doesn't gnome's index.theme have hicolor as an "inherit"? According to my understanding of the quote above it should.
    Q2: why does a icon theme like lubuntu have inherits other than hicolor? Why not just incorporate the necessary icons and become complete? That way, there would be no need of including the elementary icon theme (and the gnome icon theme).
    Users can easily damage their systems by using sudo su if they aren't experienced enough.

  2. #2
    Join Date
    Jan 2006
    Sunny Southend-on-Sea
    Ubuntu 16.04 Xenial Xerus

    Re: Can someone please explain "inherits" in icon themes?

    1. It's right there in the spec that you quoted; Inherits=hicolor is implied.

    2. There are lots of icons and the names change from time to time. Unless a theme is constantly maintained there will end up being icons missing. Filling them in with icons with a similar style is entirely sensible. The nature of an open spec like this is that it encourages building on the work of others to avoid duplicative effort.
    None but ourselves can free our minds


Posting Permissions

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