-
-
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
NC 25 - Theme-Colored Folder-Icons #34654
Comments
Probably the same problem as the one I detailed in this issue : #34578 |
cc @nextcloud/server-frontend |
I just tried an reset the theme color to the default and now the folder color changed to another color that suits the bg-image. The #396475 color from before was after upgrading from 24 and having a custom color set in the global design settings. After setting the design color to a custom value again the folder color keeps the last color that was applied by the bg-image. So it should either always be set with the bg-image and/or give the admin the possibility to set it to a static theme-color (or even a custom color field alongside the theme color?) |
@nextcloud/frontenders do you have some pointers on how to fix this? |
Yes, because the user can also change the colour now, the cache buster needs to be using the user cache buster alongside the admin server/apps/theming/lib/Service/ThemeInjectionService.php Lines 90 to 96 in b9bbb25
|
Maybe having some methods to get cachebuster would be nice to have. |
no clue, would need to be traced back from the front |
The icon is generated in
The URL generation and adding the cache buster is done here: server/apps/theming/lib/ThemingDefaults.php Lines 418 to 423 in 4a2bbc7
|
@juliushaertl since you are familiar with this part of the code, could you maybe take a crack at this? Otherwise I will try :) |
I won't have time to dive further into this but a few more hints. It seems the cache buster for mimetype icons is rather added here in the frontend:
|
I made it work now with #35182. However I am really unsatisfied how I implemented the details and would need some guidance or maybe @skjnldsv or @come-nc how to improve my code. @juliushaertl could you please give me some guidance on that? Thank you :) |
How to use GitHub
Is your feature request related to a problem? Please describe.
In the new NC25-Theme the thumbnail foldericons have a static greyish color. With this change the themes primary color could be used.
Describe the solution you'd like
Switch from the background-image css property to a combination of mask-image and background-color
Describe alternatives you've considered
Having multiple icon-sets which could be chosen
Drawbacks
If this is used globally for all icons the mime-type specific css would need additional background-color properties either fixed or via theme settings
Additional context
Right now:

With mask-image:

CSS-Change in Browser:

The text was updated successfully, but these errors were encountered: