-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Custom theme: odd folder icon color and default favicon #3094
Comments
You really should not manually delete items from @rullzer same as with previews |
If I had not deleted those items, I would not have found out that the folder icon color depends on that |
@nextcloud/theming |
@nickvergessen well I still don't know what to do about it 😉 if people remove stuff from their data folder then yeah... stuff will break... |
@mcnesium You should disable the theming app if you use a custom theme. Otherwise there are conflicts which images will be used. Once disabled, the icons from your theme should be used instead of the generated ones. |
@rullzer I did not remove stuff from the data folder just for the lulz, but because the theme did not look as expected and I was trying to find out why that is, instead of just complaining about it. And since a new folder appeared after removing the old one and reloading the browser, I was assuming this is some kind of cache folder and it is propably okay to do so. |
@juliushaertl good call. Though, the theming page in the admin section said something like "you are using a custom theme" and no other setting is shown, so I assumed it to notice that by itself. |
@mcnesium You are right, I guess we could improve there or at least make it more visible that there might be conflicts. |
@juliushaertl Or we simply disable the theming app when we detect this case? And add it to the description on the app management that the app can not be used when a theme is enabled? |
@mcnesium I did not say you did it just for fun I was just stating that it is very hard for Nextcloud to do its thing then. If you would rescan the files (using occ) it should correct itself. |
I just tried it:
Seems like the scanning needs some fixing before. |
O... joy... |
Sorry guys, it's not over yet :( After I disabled the theming app, the favicons from Anyways, by now none of my custom-themed Nextcloud instances use the files in the Theme's |
@juliushaertl what do you think about this: When a custom theme is used which is not from the theming app:
|
@mcnesium have you been running @jancborchardt I need to have a look how the custom themes are applied, but I like the idea in general. |
+1 to handle custom themes in the theming app without manual interaction. In automatic deployments you can pre-populate the |
What I just did:
So thx @juliushaertl for that hint 👍 This should be added to the docs imho. |
I followed the steps @mcnesium described in his latest comment, but I'm still facing the blue default icons. My setup:
I did:
Expected: Theme filetype icons. Actual: blue default icons. Regarding the favicon, I have a different behavior than @mcnesium. The favicon path to the theming app sounds like there is still something cached? Restarting apache should clear APCu cache I guess, so I'm not sure what my problem is. |
@mcnesium Pull requests are always welcome. 😉
@mammuth Not sure about that. Maybe @MorrisJobke or @rullzer can help on that? |
Hi! I am running into this same problem with NextCloud 12. This is very annoying... I'd really like to use my own SVGs in the UI and I can't ask my server admin to run a command every time I want to preview image changes... |
Fixed in #5070 |
Guys, thank you so much for this workflow. It still works fine on 17.0.2 except the Does anybody know the problem? Thanks for any help! |
Steps to reproduce
/core/img/filetypes/
tothemes/mytheme/core/img/filetypes/
and change ie. the valuefill="#123456"
offolder.svg
'theme' => 'mytheme',
to configdata/appdata_xxxxxxxxxx/theming
Expected behaviour
Custom folder icons and favicon should show up
Actual behaviour
Folder icons are loaded i.e. from
/index.php/apps/theming/img/core/filetypes/folder.svg
, a path that does not even fully exist./index.php/apps/theming/img/
does and there is just one fileapp.svg
in it, which in turn is not able to be loaded in the browser.The shown folder icons do not have the color set in the SVG files of the theme but the same value as set in
public function getMailHeaderColor()
inmytheme/defaults.php
.Also, the favicon and apple-touch-icon is loaded from
/core/img/
even though there are all of those files inmytheme/core/img
:I have noticed this behavior on multiple nextcloud instances I maintain both v11.0.0 and v11.0.1 so I am sure this has nothing to do with odd local config, but I will post the details of one instance to follow directions…
Apache2.4, PHP5/7, Mariadb 10, both fresh nc 11 and updated from nc 10, and even from oc, no external storage, no encryption, no external user-backend, no ldap, all browsers, all os, no output in apache error.log or nextcloud.log
config.php
browser console
The text was updated successfully, but these errors were encountered: