[TASK] Replace icon by the IconFactory status-status-sorting-* 11/43111/2
authorFrank Nägler <frank.naegler@typo3.org>
Mon, 7 Sep 2015 21:57:20 +0000 (23:57 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Tue, 8 Sep 2015 06:04:09 +0000 (08:04 +0200)
Resolves: #69597
Releases: master
Change-Id: I7d80f2fc4e8636ed77800821fc9231f57789e831
Reviewed-on: http://review.typo3.org/43111
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Build/Resources/Public/Less/Component/icon.less
typo3/sysext/core/Classes/Imaging/IconRegistry.php
typo3/sysext/filelist/Classes/FileList.php
typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php
typo3/sysext/t3skin/Resources/Public/Css/backend.css

index 6ed76de..bc28872 100644 (file)
        color: @brand-danger;
 }
 
+.icon-status-status-sorting-light-asc,
+.icon-status-status-sorting-light-desc {
+       color: #fff;
+}
+
+.icon-status-status-sorting-asc,
+.icon-status-status-sorting-desc {
+       color: @gray;
+}
+
 .icon-status-dialog-ok,
 .icon-status-status-permission-granted {
        color: @brand-success;
index 6fb27bf..dfde624 100644 (file)
@@ -554,6 +554,30 @@ class IconRegistry implements \TYPO3\CMS\Core\SingletonInterface {
                                'name' => 'caret-right',
                        )
                ),
+               'status-status-sorting-asc' => array(
+                       'provider' => FontawesomeIconProvider::class,
+                       'options' => array(
+                               'name' => 'caret-up',
+                       )
+               ),
+               'status-status-sorting-desc' => array(
+                       'provider' => FontawesomeIconProvider::class,
+                       'options' => array(
+                               'name' => 'caret-down',
+                       )
+               ),
+               'status-status-sorting-light-asc' => array(
+                       'provider' => FontawesomeIconProvider::class,
+                       'options' => array(
+                               'name' => 'caret-up',
+                       )
+               ),
+               'status-status-sorting-light-desc' => array(
+                       'provider' => FontawesomeIconProvider::class,
+                       'options' => array(
+                               'name' => 'caret-down',
+                       )
+               ),
                'status-dialog-ok' => array(
                        'provider' => FontawesomeIconProvider::class,
                        'options' => array(
index d818d3c..7b88644 100644 (file)
@@ -809,7 +809,7 @@ class FileList extends AbstractRecordList {
                if ($this->sort === $col) {
                        // Check reverse sorting
                        $params['SET']['reverse'] = ($this->sortRev ? '0' : '1');
-                       $sortArrow = IconUtility::getSpriteIcon('status-status-sorting-light-' . ($this->sortRev ? 'desc' : 'asc'));
+                       $sortArrow = $this->iconFactory->getIcon('status-status-sorting-light-' . ($this->sortRev ? 'desc' : 'asc'), Icon::SIZE_SMALL);
                } else {
                        $params['SET']['reverse'] = 0;
                        $sortArrow = '';
index c55c59e..87aaafd 100644 (file)
@@ -1792,7 +1792,7 @@ class DatabaseRecordList extends AbstractDatabaseRecordList {
                $sortUrl = $this->listURL('', -1, 'sortField,sortRev,table,firstElementNumber') . '&table=' . $table
                        . '&sortField=' . $field . '&sortRev=' . ($this->sortRev || $this->sortField != $field ? 0 : 1);
                $sortArrow = $this->sortField === $field
-                       ? IconUtility::getSpriteIcon('status-status-sorting-' . ($this->sortRev ? 'desc' : 'asc'))
+                       ? $this->iconFactory->getIcon('status-status-sorting-' . ($this->sortRev ? 'desc' : 'asc'), Icon::SIZE_SMALL)
                        : '';
                // Return linked field:
                return '<a href="' . htmlspecialchars($sortUrl) . '">' . $code . $sortArrow . '</a>';
index f3b951f..178130d 100644 (file)
@@ -7861,6 +7861,14 @@ button.close {
 .icon-status-status-permission-denied {
   color: #c83c3c;
 }
+.icon-status-status-sorting-light-asc,
+.icon-status-status-sorting-light-desc {
+  color: #fff;
+}
+.icon-status-status-sorting-asc,
+.icon-status-status-sorting-desc {
+  color: #737373;
+}
 .icon-status-dialog-ok,
 .icon-status-status-permission-granted {
   color: #79a548;