[TASK] Replace sprite icon "actions-view-table-*" with the new IconFactory 99/43199/3
authorMorton Jonuschat <m.jonuschat@mojocode.de>
Fri, 11 Sep 2015 13:32:06 +0000 (15:32 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 11 Sep 2015 15:14:26 +0000 (17:14 +0200)
Replaces all IconUtility::getSpriteIcon calls for the icon
actions-view-table-* with the new IconFactory.

Resolves: #69677
Resolves: #69678
Releases: master
Change-Id: I7a18e481530e79345eb0ed467d2c7c8c2340c51e
Reviewed-on: http://review.typo3.org/43199
Reviewed-by: Frank Nägler <frank.naegler@typo3.org>
Tested-by: Frank Nägler <frank.naegler@typo3.org>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Classes/Imaging/IconRegistry.php
typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php

index e1bf90d..4fbfd4c 100644 (file)
@@ -622,6 +622,18 @@ class IconRegistry implements \TYPO3\CMS\Core\SingletonInterface {
                                'name' => 'arrow-right',
                        )
                ),
+               'actions-view-table-collapse' => array(
+                       'provider' => FontawesomeIconProvider::class,
+                       'options' => array(
+                               'name' => 'chevron-left',
+                       )
+               ),
+               'actions-view-table-expand' => array(
+                       'provider' => FontawesomeIconProvider::class,
+                       'options' => array(
+                               'name' => 'chevron-right',
+                       )
+               ),
                'actions-window-open' => array(
                        'provider' => FontawesomeIconProvider::class,
                        'options' => array(
index 6598dfd..7e921a9 100644 (file)
@@ -529,8 +529,8 @@ class DatabaseRecordList extends AbstractDatabaseRecordList {
                                        . '</span> (<span class="t3js-table-total-items">' . $this->totalItems . '</span>)';
                        } else {
                                $icon = $this->table
-                                       ? IconUtility::getSpriteIcon('actions-view-table-collapse', array('title' => $lang->getLL('contractView', TRUE)))
-                                       : IconUtility::getSpriteIcon('actions-view-table-expand', array('title' => $lang->getLL('expandView', TRUE)));
+                                       ? '<span title="' . $lang->getLL('contractView', TRUE) . '">' . $this->iconFactory->getIcon('actions-view-table-collapse', Icon::SIZE_SMALL) . '</span>'
+                                       : '<span title="' . $lang->getLL('expandView', TRUE) . '">' . $this->iconFactory->getIcon('actions-view-table-expand', Icon::SIZE_SMALL) . '</span>';
                                $theData[$titleCol] = $this->linkWrapTable($table, $tableTitle . ' (<span class="t3js-table-total-items">' . $this->totalItems . '</span>) ' . $icon);
                        }
                        if ($listOnlyInSingleTableMode) {