[TASK] Render Resources using SVG in IconFactory 58/43258/25
authorFrank Nägler <frank.naegler@typo3.org>
Sun, 13 Sep 2015 08:56:40 +0000 (10:56 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Mon, 14 Sep 2015 20:27:33 +0000 (22:27 +0200)
commit8a961ba7ddb3ef7a575e99593c9aa791eadd09cb
tree2dcf5f2d09eb2d1431d7de4c3a7dc0d1ba9c565d
parent0e7aab0697c059680bf5d3831b1d953a7c204b3e
[TASK] Render Resources using SVG in IconFactory

Add SVG icons for MimeTypes to the IconRegistry, add
IconFactory->getIconForResource() as improved version of
IconUtility->getSpriteIconForResource().

Also add IconFactory->getIconForFileExtension() similar to
IconUtility->getSpriteIconForFile() but without the possibility to pass
a path but only a file extension.

Replace all core calls of getSpriteIconForFile() and
getSpriteIconForResource() with calls to IconFactory.

Resolves: #69744
Resolves: #69759
Releases: master
Change-Id: I26b221fbba87c7f3e09ec10b61c13c8e74b8ecb3
Reviewed-on: http://review.typo3.org/43258
Reviewed-by: Benjamin Kott <info@bk2k.info>
Tested-by: Benjamin Kott <info@bk2k.info>
Reviewed-by: Frank Nägler <frank.naegler@typo3.org>
Tested-by: Frank Nägler <frank.naegler@typo3.org>
Reviewed-by: Frans Saris <franssaris@gmail.com>
Tested-by: Frans Saris <franssaris@gmail.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
68 files changed:
Build/Gruntfile.js
Build/Resources/Private/Icons/App/apps-filetree-folder-default.svg [new file with mode: 0644]
Build/Resources/Private/Icons/App/apps-filetree-folder-locked.svg [new file with mode: 0644]
Build/Resources/Private/Icons/App/apps-filetree-folder-opened.svg [new file with mode: 0644]
Build/Resources/Private/Icons/App/apps-filetree-folder-recycler.svg [new file with mode: 0644]
Build/Resources/Private/Icons/App/apps-filetree-folder-temp.svg [new file with mode: 0644]
Build/Resources/Private/Icons/App/apps-filetree-mount.svg [new file with mode: 0644]
Build/Resources/Private/Icons/Mimetype/mimetypes-compressed.svg [new file with mode: 0644]
Build/Resources/Private/Icons/Mimetype/mimetypes-excel.svg [new file with mode: 0644]
Build/Resources/Private/Icons/Mimetype/mimetypes-executable-executable.svg [new file with mode: 0644]
Build/Resources/Private/Icons/Mimetype/mimetypes-media-audio.svg [new file with mode: 0644]
Build/Resources/Private/Icons/Mimetype/mimetypes-media-flash.svg [new file with mode: 0644]
Build/Resources/Private/Icons/Mimetype/mimetypes-media-image.svg [new file with mode: 0644]
Build/Resources/Private/Icons/Mimetype/mimetypes-media-video.svg [new file with mode: 0644]
Build/Resources/Private/Icons/Mimetype/mimetypes-other-other.svg [new file with mode: 0644]
Build/Resources/Private/Icons/Mimetype/mimetypes-pdf.svg [new file with mode: 0644]
Build/Resources/Private/Icons/Mimetype/mimetypes-powerpoint.svg [new file with mode: 0644]
Build/Resources/Private/Icons/Mimetype/mimetypes-text-css.svg [new file with mode: 0644]
Build/Resources/Private/Icons/Mimetype/mimetypes-text-csv.svg [new file with mode: 0644]
Build/Resources/Private/Icons/Mimetype/mimetypes-text-html.svg [new file with mode: 0644]
Build/Resources/Private/Icons/Mimetype/mimetypes-text-js.svg [new file with mode: 0644]
Build/Resources/Private/Icons/Mimetype/mimetypes-text-php.svg [new file with mode: 0644]
Build/Resources/Private/Icons/Mimetype/mimetypes-text-text.svg [new file with mode: 0644]
Build/Resources/Private/Icons/Mimetype/mimetypes-text-ts.svg [new file with mode: 0644]
Build/Resources/Private/Icons/Mimetype/mimetypes-word.svg [new file with mode: 0644]
Build/Resources/Private/Icons/Overlay/overlay-missing.svg [new file with mode: 0644]
Build/Resources/Public/Less/TYPO3/_element_table.less
typo3/sysext/backend/Classes/ClickMenu/ClickMenu.php
typo3/sysext/backend/Classes/Clipboard/Clipboard.php
typo3/sysext/backend/Classes/Form/Container/AbstractContainer.php
typo3/sysext/backend/Classes/Form/Element/GroupElement.php
typo3/sysext/backend/Classes/Template/DocumentTemplate.php
typo3/sysext/backend/Classes/Tree/View/FolderTreeView.php
typo3/sysext/backend/Classes/Utility/BackendUtility.php
typo3/sysext/backend/Classes/Utility/IconUtility.php
typo3/sysext/backend/Resources/Public/Icons/App/apps-filetree-folder-default.svg [new file with mode: 0644]
typo3/sysext/backend/Resources/Public/Icons/App/apps-filetree-folder-locked.svg [new file with mode: 0644]
typo3/sysext/backend/Resources/Public/Icons/App/apps-filetree-folder-opened.svg [new file with mode: 0644]
typo3/sysext/backend/Resources/Public/Icons/App/apps-filetree-folder-recycler.svg [new file with mode: 0644]
typo3/sysext/backend/Resources/Public/Icons/App/apps-filetree-folder-temp.svg [new file with mode: 0644]
typo3/sysext/backend/Resources/Public/Icons/App/apps-filetree-mount.svg [new file with mode: 0644]
typo3/sysext/backend/Resources/Public/Icons/Mimetype/mimetypes-compressed.svg [new file with mode: 0644]
typo3/sysext/backend/Resources/Public/Icons/Mimetype/mimetypes-excel.svg [new file with mode: 0644]
typo3/sysext/backend/Resources/Public/Icons/Mimetype/mimetypes-executable-executable.svg [new file with mode: 0644]
typo3/sysext/backend/Resources/Public/Icons/Mimetype/mimetypes-media-audio.svg [new file with mode: 0644]
typo3/sysext/backend/Resources/Public/Icons/Mimetype/mimetypes-media-flash.svg [new file with mode: 0644]
typo3/sysext/backend/Resources/Public/Icons/Mimetype/mimetypes-media-image.svg [new file with mode: 0644]
typo3/sysext/backend/Resources/Public/Icons/Mimetype/mimetypes-media-video.svg [new file with mode: 0644]
typo3/sysext/backend/Resources/Public/Icons/Mimetype/mimetypes-other-other.svg [new file with mode: 0644]
typo3/sysext/backend/Resources/Public/Icons/Mimetype/mimetypes-pdf.svg [new file with mode: 0644]
typo3/sysext/backend/Resources/Public/Icons/Mimetype/mimetypes-powerpoint.svg [new file with mode: 0644]
typo3/sysext/backend/Resources/Public/Icons/Mimetype/mimetypes-text-css.svg [new file with mode: 0644]
typo3/sysext/backend/Resources/Public/Icons/Mimetype/mimetypes-text-csv.svg [new file with mode: 0644]
typo3/sysext/backend/Resources/Public/Icons/Mimetype/mimetypes-text-html.svg [new file with mode: 0644]
typo3/sysext/backend/Resources/Public/Icons/Mimetype/mimetypes-text-js.svg [new file with mode: 0644]
typo3/sysext/backend/Resources/Public/Icons/Mimetype/mimetypes-text-php.svg [new file with mode: 0644]
typo3/sysext/backend/Resources/Public/Icons/Mimetype/mimetypes-text-text.svg [new file with mode: 0644]
typo3/sysext/backend/Resources/Public/Icons/Mimetype/mimetypes-text-ts.svg [new file with mode: 0644]
typo3/sysext/backend/Resources/Public/Icons/Mimetype/mimetypes-word.svg [new file with mode: 0644]
typo3/sysext/backend/Resources/Public/Icons/Overlay/overlay-missing.svg [new file with mode: 0644]
typo3/sysext/core/Classes/Imaging/IconFactory.php
typo3/sysext/core/Classes/Imaging/IconRegistry.php
typo3/sysext/core/Tests/Unit/Imaging/IconFactoryTest.php
typo3/sysext/documentation/Classes/ViewHelpers/FormatsViewHelper.php
typo3/sysext/filelist/Classes/FileFacade.php
typo3/sysext/filelist/Classes/FileList.php
typo3/sysext/recordlist/Classes/Browser/ElementBrowser.php
typo3/sysext/t3skin/Resources/Public/Css/backend.css