-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xdgiconloader: Puts the hicolor at the end of the theme hierarchy #126
Conversation
The hicolor theme is the ultimate resort. It should be allowed only at the end of the fallback hierarchy. We are allowing the hicolor theme to be in the middle of the theme hierarchy. Schematically: X -> hicolor -> Y -> Z -> hicolor If an icon exists in the hicolor and Y theme the hicolor one, is wrongly used. This commit does four things: * Stops adding the hicolor theme to each theme as a fallback. * Stops adding the hicolor as a parent theme, even if added by the index.theme Inherits key. The oxygen theme does it. * Stops return the hicolor theme in the fallbackTheme(). * Adds the hicolor theme to the end of the fallback hierarchy list.
Using the Tangerine Icon Theme:
With this PR on top of #116:
The wrong handling of the hicolor theme prevents the oxygen p.s. Timing info is not accurate. |
as far as i can see - it works mostly, only found one regression with quassel:
quasselclient.desktop is
|
Additional info - this is with the applied PRs 116 and 126 - so i might miss one thing
|
@agaida Which icon theme are you using ? |
faenza-ambiance |
29ea369
to
c61fd1a
Compare
@agaida Fixed. Pls update. |
Their place is after the hicolor theme. And they should be searched one time only, after the hicolor theme.
c61fd1a
to
44cc641
Compare
@luis-pereira works fine, the quassel-icon is back in the systray |
Unthemed icons should be search only one time, after the hicolor theme. We are using QIcon::themeSearchPaths() to provide the list of directories and it doesn't depend on the theme.
after #125 is merged this PR should be obsolete? @luis-pereira - am i right? |
@agaida Right. Closing it. |
The hicolor theme is the ultimate resort. It should be allowed only at the
end of the fallback hierarchy. We are allowing the hicolor theme to be in
the middle of the theme hierarchy. Schematically:
X -> hicolor -> Y -> Z -> hicolor
If an icon exists in the hicolor and Y theme the hicolor one, is wrongly
used.
This commit does four things:
* Stops adding the hicolor theme to each theme as a fallback.
* Stops adding the hicolor as a parent theme, even if added by the
index.theme Inherits key. The oxygen theme does it.
* Stops return the hicolor theme in the fallbackTheme().
* Adds the hicolor theme to the end of the fallback hierarchy list.