Content Thumbnail icon has wrong filter in dark mode #10147#10172
Open
ashklianko wants to merge 1 commit intomasterfrom
Open
Content Thumbnail icon has wrong filter in dark mode #10147#10172ashklianko wants to merge 1 commit intomasterfrom
ashklianko wants to merge 1 commit intomasterfrom
Conversation
Member
ashklianko
commented
Mar 31, 2026
- Reverting changes made in Enonic UI: Fix content tree icons in Dark mode #9461: custom icons can be multicolor svgs/pngs, applying filters can make them look worse. Other solutions must be implemented for dark mode icons
- Reverting changes made in #9461: custom icons can be multicolor svgs/pngs, applying filters can make them look worse. Other solutions must be implemented for dark mode icons
Member
|
Can't we tell content type icons from thumbnails? And only apply filter to the former? |
Member
Author
|
https://developer.enonic.com/docs/xp/stable/cms/content-types#custom_content_types Content types may use multicolor svg/png, we can't know how applying filter will result for them. |
Member
Author
|
Two potential solution:
No filters for thumbnails ofc |
edloidas
reviewed
Mar 31, 2026
| type BuiltInIconProps = Pick<Props, 'contentType'> & React.ComponentProps<LucideIcon>; | ||
|
|
||
| const IMAGE_TYPES = new Set<string>([ | ||
| const IMAGE_CONTENT_TYPES = new Set<string>([ |
Member
There was a problem hiding this comment.
Not sure all those renames are reasonable, since we do not export them, and do not add more similar variables
Member
Author
There was a problem hiding this comment.
For sake of clarity - to specify it is not mime types but our own content types
Member
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
