Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Media in core will require icons and those icons will need to be SVGs in multiple colors available in core/misc/icons for other modules to use.
Proposed resolution
Determine which icons and make the needed files.
Remaining tasks
- make files
- Make patch to add to core
User interface changes
Icons!
API changes
?
Data model changes
?
Comment | File | Size | Author |
---|---|---|---|
#10 | icons_not_folded.png | 69.87 KB | dmsmidt |
#7 | file-icons.zip | 171.91 KB | tkoleary |
#3 | file-type-icons.jpg | 43.03 KB | yoroy |
Comments
Comment #2
yoroy CreditAttribution: yoroy at Roy Scholten commentedComment #3
yoroy CreditAttribution: yoroy at Roy Scholten commentedIf you download https://www.drupal.org/project/media/releases/8.x-1.x-dev you will find an icons folder with:
application-msword.png
application-pdf.png
application-rtf.png
application-vnd.ms-excel.png
application-vnd.ms-powerpoint.png
application-vnd.oasis.opendocument.spreadsheet.png
application-vnd.oasis.opendocument.text-template.png
application-vnd.oasis.opendocument.text.png
application-vnd.openxmlformats-officedocument.presentationml.presentation.png
application-vnd.openxmlformats-officedocument.spreadsheetml.sheet.png
application-vnd.openxmlformats-officedocument.wordprocessingml.document.png
Comment #4
dmsmidtShould we think about different sized icons?
Of course SVG scales nicely, but for a tiny icon you also want less details.
So for example in a list mode you would need tiny icons with low detail. And in a thumbnail mode (in cases we can't generate a thumbnail) you can use a bigger version with more detail.
Comment #5
tkoleary CreditAttribution: tkoleary at Acquia commentedComment #6
tkoleary CreditAttribution: tkoleary at Acquia commentedSummary of comments in UX meeting:
Comment #7
tkoleary CreditAttribution: tkoleary at Acquia commentedHere's a zip with the first round. Can be resized if needed.
Comment #8
tkoleary CreditAttribution: tkoleary at Acquia commentedThey look like this (the bebebe versions)
Of course there are a bunch more of them, around 30.
Comment #9
dmsmidtI like the progress here.
One thought to disrupt: "Why is the default icon shape a paper with a folded corner"?
I know it is very véry common to do so, and I guess most ppl understand. But it actually only covers "documents" and maybe images (although I would never want my pictures to be folded).
None folded example by EpicCoders:
Another thought: "What kind of icon will be used as fallback?"
So in cases we don't have an icon for the given media type, what will we show?
Comment #10
dmsmidtComment #11
slashrsm CreditAttribution: slashrsm at MD Systems GmbH commentedIt seems that we are thinking really file-centric. We should note that we're planning to support YouTube videos out of the box and that there are other "remote" media types that might be supported with the current approach (oEmbed). Icons should reflect that fact.
I also think that mime types aren't very important. Instead exposing file extensions on icons we should better represent general meaning of a media item an icon represents (image, audio, video, document, ...).
Comment #13
abbym CreditAttribution: abbym at Third and Grove commentedPer comment 11 (slashrsm), I agree that we may want to indicate things such as video or audio as well as classic file types. What if, instead of icon images, we used a custom icon font that could easily be added to over time as needed? That would eliminate concerns about size and color/contrast. If deemed appropriate, we could even add other useful icons such as social media share buttons.
Comment #19
vuilAny update through last 3 years? Thank you.
Comment #21
charly71 CreditAttribution: charly71 commented+1
Comment #27
smustgrave CreditAttribution: smustgrave at Mobomo commentedThere's no patch to review.
Also seven has been removed in D10 so if still a valid task it will need to be (if needed) for the newer theme.