Commit 61d023cd authored by Frank Nägler's avatar Frank Nägler Committed by Anja Leichsenring
Browse files

[TASK] Replace icon by the IconFactory status-status-sorting-*

Resolves: #69597
Releases: master
Change-Id: I7d80f2fc4e8636ed77800821fc9231f57789e831
Reviewed-on: http://review.typo3.org/43111


Reviewed-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
parent 127a708e
......@@ -140,6 +140,16 @@
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;
......
......@@ -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(
......
......@@ -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 = '';
......
......@@ -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>';
......
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment