Skip to content

Commit

Permalink
Updating icon names
Browse files Browse the repository at this point in the history
  • Loading branch information
xIrusux authored and mattamon committed Jan 9, 2025
1 parent 3d2b2b4 commit 6d36bcf
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/Icon/Service/IconService.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ public function getIconForAsset(string $assetType, ?string $mimeType): ElementIc

if ($assetType === 'text' && $mimeType !== null) {
$value = match ($mimeType) {
'application/json' => 'file-code-01',
'application/type9' => 'file-check-02',
'text/plain' => 'file-02',
'text/csv' => 'file-x-03',
'application/json' => 'json',
'application/type9' => 'pdf',
'text/plain' => 'txt-docs',
'text/csv' => 'xlsx-csv',
default => $this->defaultIcon
};

Expand All @@ -53,9 +53,9 @@ public function getIconForAsset(string $assetType, ?string $mimeType): ElementIc

$value = match ($assetType) {
'folder' => 'folder',
'image' => 'image-01',
'video' => 'video-recorder',
'audio' => 'volume-max',
'image' => 'image',
'video' => 'video',
'audio' => 'audio',
default => $this->defaultIcon
};

Expand All @@ -80,7 +80,7 @@ public function getIconForDataObject(DataObjectSearchResultItem $dataObject): El

public function getIconForTag(): string
{
return 'tag-02';
return 'tag';
}

public function getIconForLayout(?string $iconPath): ?ElementIcon
Expand Down

0 comments on commit 6d36bcf

Please sign in to comment.