Skip to content

Icon theme inheritance is all wrong #43

@Dregu

Description

@Dregu

https://specifications.freedesktop.org/icon-theme/latest/

Inherits:
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.

Also apparently inherited themes are supposed to be comma separated, but these guys aren't good with words. I don't think recursive or multiple themes is implemented at all, so there's a few reasons nobody has icons on hyprlauncher. Most apps install their icons in the fallback theme hicolor, not the default theme.

Example icon inheritance tree, which is the default on arch I believe:

default: Inherits=Adwaita
Adwaita: Inherits=AdwaitaLegacy,hicolor
AdwaitaLegacy: Inherits=hicolor
hicolor: actually has all the icons

HT never loads either of the explicitly inherited hicolor themes, but even if hicolor wasn't explicitly defined, it should be implicitly added as the last resort. Icon names should then be searched for in all themes along the inheritance tree recursively.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions