[BUGFIX] Use action icon instead of mimetype: actions-document-export-csv 40/43440/2
authorBenjamin Kott <benjamin.kott@outlook.com>
Sun, 20 Sep 2015 11:22:50 +0000 (13:22 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Sun, 20 Sep 2015 12:34:57 +0000 (14:34 +0200)
Resolves: #69979
Releases: master
Change-Id: I3c11b4790a3784acaea4f6aeffbde6889e024c59
Reviewed-on: http://review.typo3.org/43440
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Build/Gruntfile.js
Build/Resources/Private/Icons/Action/actions-document-export-csv.svg [new file with mode: 0644]
typo3/sysext/backend/Resources/Public/Icons/Action/actions-document-export-csv.svg [new file with mode: 0644]
typo3/sysext/core/Classes/Imaging/IconRegistry.php
typo3/sysext/core/ext_tables.php
typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php

index a5504ba..0812fcf 100644 (file)
@@ -132,6 +132,7 @@ module.exports = function(grunt) {
                        icons_action: {
                                files: {
                                        '<%= paths.backend %>Public/Icons/Action/actions-document-duplicates-select.svg': '<%= paths.icons %>Action/actions-document-duplicates-select.svg',
+                                       '<%= paths.backend %>Public/Icons/Action/actions-document-export-csv.svg': '<%= paths.icons %>Action/actions-document-export-csv.svg',
                                        '<%= paths.backend %>Public/Icons/Action/actions-document-paste-after.svg': '<%= paths.icons %>Action/actions-document-paste-after.svg',
                                        '<%= paths.backend %>Public/Icons/Action/actions-document-paste-before.svg': '<%= paths.icons %>Action/actions-document-paste-before.svg',
                                        '<%= paths.backend %>Public/Icons/Action/actions-document-paste-into.svg': '<%= paths.icons %>Action/actions-document-paste-into.svg',
diff --git a/Build/Resources/Private/Icons/Action/actions-document-export-csv.svg b/Build/Resources/Private/Icons/Action/actions-document-export-csv.svg
new file mode 100644 (file)
index 0000000..9d4630b
--- /dev/null
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 19.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
+<svg version="1.1" id="actions-document-export-csv"
+        xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 16 16"
+        style="enable-background:new 0 0 16 16;" xml:space="preserve">
+<path d="M8.9,14H3V2h7v2.5C10,4.8,10.2,5,10.5,5H13v3.1c0.6,0.1,1,0.6,1,1.2V3.9c0-0.3-0.1-0.5-0.3-0.7l-1.9-1.9
+       C11.6,1.1,11.4,1,11.1,1H2.5C2.2,1,2,1.2,2,1.5v13C2,14.8,2.2,15,2.5,15h7.3L8.9,14z M11,2l2,2h-2V2z"/>
+<g id="g4186" transform="translate(1,0)">
+       <rect id="rect4159" x="3" y="6" width="2" height="1"/>
+       <rect id="rect4163" x="6" y="6" width="2" height="1"/>
+       <rect id="rect4165" x="9" y="6" width="2" height="1"/>
+       <rect id="rect4167" x="3" y="8" width="2" height="1"/>
+       <rect id="rect4169" x="6" y="8" width="2" height="1"/>
+       <rect id="rect4174" x="3" y="10" width="2" height="1"/>
+       <rect id="rect4176" x="6" y="10" width="2" height="1"/>
+       <rect id="rect4180" x="3" y="12" width="2" height="1"/>
+       <path d="M6.8,12H6v1h1.1C6.8,12.7,6.8,12.3,6.8,12z"/>
+       <path d="M10.3,8H9v1h0.1C9.2,8.4,9.6,8,10.3,8z"/>
+</g>
+<path d="M9.1,12H11V9.3C11,9.1,11.1,9,11.3,9h1.5C12.9,9,13,9.1,13,9.3V12h2c0.2,0,0.3,0.3,0.2,0.4l-3,3.4c-0.1,0.1-0.3,0.1-0.4,0
+       l-2.9-3.4C8.7,12.3,8.8,12,9.1,12z"/>
+</svg>
diff --git a/typo3/sysext/backend/Resources/Public/Icons/Action/actions-document-export-csv.svg b/typo3/sysext/backend/Resources/Public/Icons/Action/actions-document-export-csv.svg
new file mode 100644 (file)
index 0000000..5e090ad
--- /dev/null
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M8.9 14H3V2h7v2.5c0 .3.2.5.5.5H13v3.1c.6.1 1 .6 1 1.2V3.9c0-.3-.1-.5-.3-.7l-1.9-1.9c-.2-.2-.4-.3-.7-.3H2.5c-.3 0-.5.2-.5.5v13c0 .3.2.5.5.5h7.3l-.9-1zM11 2l2 2h-2V2z"/><path d="M4 6h2v1H4zM7 6h2v1H7zM10 6h2v1h-2zM4 8h2v1H4zM7 8h2v1H7zM4 10h2v1H4zM7 10h2v1H7zM4 12h2v1H4zM7.8 12H7v1h1.1c-.3-.3-.3-.7-.3-1zM11.3 8H10v1h.1c.1-.6.5-1 1.2-1zM9.1 12H11V9.3c0-.2.1-.3.3-.3h1.5c.1 0 .2.1.2.3V12h2c.2 0 .3.3.2.4l-3 3.4c-.1.1-.3.1-.4 0l-2.9-3.4c-.2-.1-.1-.4.2-.4z"/></svg>
\ No newline at end of file
index 4d2bb12..db1807a 100644 (file)
@@ -349,6 +349,12 @@ class IconRegistry implements \TYPO3\CMS\Core\SingletonInterface {
                                'source' => 'EXT:backend/Resources/Public/Icons/Action/actions-document-duplicates-select.svg',
                        )
                ),
+               'actions-document-export-csv' => array(
+                       'provider' => SvgIconProvider::class,
+                       'options' => array(
+                               'source' => 'EXT:backend/Resources/Public/Icons/Action/actions-document-export-csv.svg',
+                       )
+               ),
                'actions-document-edit-access' => array(
                        'provider' => FontawesomeIconProvider::class,
                        'options' => array(
index bf6c5e2..772b44b 100644 (file)
@@ -153,7 +153,7 @@ $GLOBALS['TBE_STYLES']['spriteIconApi']['coreSpriteImageNames'] = array(
        'actions-document-close',
        'actions-document-duplicates-select',
        'actions-document-edit-access',
-       'actions-document-export-csv', // Not used in core!
+       'actions-document-export-csv',
        'actions-document-export-t3d',
        'actions-document-history-open',
        'actions-document-import-t3d',
index f70b478..2ac6a06 100644 (file)
@@ -298,7 +298,7 @@ class DatabaseRecordList extends AbstractDatabaseRecordList {
                                // CSV
                                $buttons['csv'] = '<a href="' . htmlspecialchars(($this->listURL() . '&csv=1')) . '" title="'
                                        . $lang->sL('LLL:EXT:lang/locallang_core.xlf:labels.csv', TRUE) . '">'
-                                       . $this->iconFactory->getIcon('mimetypes-text-csv', Icon::SIZE_SMALL) . '</a>';
+                                       . $this->iconFactory->getIcon('actions-document-export-csv', Icon::SIZE_SMALL) . '</a>';
                                // Export
                                if (ExtensionManagementUtility::isLoaded('impexp')) {
                                        $url = BackendUtility::getModuleUrl('xMOD_tximpexp', array('tx_impexp[action]' => 'export'));