[TASK] Replace icon with SVG: default-not-found 69/43269/2
authorBenjamin Kott <benjamin.kott@outlook.com>
Sun, 13 Sep 2015 11:42:58 +0000 (13:42 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Sun, 13 Sep 2015 17:32:59 +0000 (19:32 +0200)
Resolves: #69756
Releases: master
Change-Id: I322b6312c095dcdac4fd8ba6ba414026e1c722a5
Reviewed-on: http://review.typo3.org/43269
Reviewed-by: Jan Helke <typo3@helke.de>
Tested-by: Jan Helke <typo3@helke.de>
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: Stephan Großberndt <stephan@grossberndt.de>
Tested-by: Stephan Großberndt <stephan@grossberndt.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Build/Gruntfile.js
Build/Resources/Private/Icons/Default/default-not-found.svg [new file with mode: 0644]
Build/Resources/Public/Less/Component/icon.less
typo3/sysext/backend/Resources/Public/Icons/Default/default-not-found.svg [new file with mode: 0644]
typo3/sysext/core/Classes/Imaging/IconRegistry.php
typo3/sysext/t3skin/Resources/Public/Css/backend.css

index 1c960fd..989b1e3 100644 (file)
@@ -166,6 +166,12 @@ module.exports = function(grunt) {
                                        '<%= paths.sysext %>backend/Resources/Public/Icons/avatar-default.svg': '<%= paths.icons %>Avatar/avatar-default.svg'
                                }
                        },
+                       // Default Icons
+                       icons_default: {
+                               files: {
+                                       '<%= paths.backend %>Public/Icons/Default/default-not-found.svg': '<%= paths.icons %>Default/default-not-found.svg'
+                               }
+                       },
                        // Miscellaneous Icons
                        icons_miscellaneous: {
                                files: {
diff --git a/Build/Resources/Private/Icons/Default/default-not-found.svg b/Build/Resources/Private/Icons/Default/default-not-found.svg
new file mode 100644 (file)
index 0000000..eff84fb
--- /dev/null
@@ -0,0 +1,15 @@
+<?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" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
+        viewBox="0 0 16 16" enable-background="new 0 0 16 16" xml:space="preserve">
+<g id="default-not-found">
+       <path fill="#CD201F" d="M11,12l3-2v6H2v-6l3,2l3-2L11,12z"/>
+       <path opacity="0.2" d="M8,10.3l2.86,1.91L11,12.3l0.14-0.09l2.61-1.74v5.28H2.25v-5.28l2.61,1.74L5,12.3l0.14-0.09L8,10.3 M14,10
+               l-3,2l-3-2l-3,2l-3-2v6h12V10L14,10z"/>
+       <path fill="#CD201F" d="M14,4v4l-3,2L8,8l-3,2L2,8V0h8L14,4z"/>
+       <polygon opacity="0.2" points="13.75,7.87 11,9.7 8.14,7.79 8,7.7 7.86,7.79 5,9.7 2.25,7.87 2.25,0.25 10,0.25 10,0 2,0 2,8 5,10 
+               8,8 11,10 14,8 14,4 13.75,4     "/>
+       <path opacity="0.3" fill="#FFFFFF" d="M14,4h-4V0L14,4z"/>
+       <path opacity="0.3" d="M14,8l-4-4h4V8z"/>
+</g>
+</svg>
index 72806f9..e3f33ad 100644 (file)
 //
 // Special icons
 //
-.icon-default-not-found,
 .icon-actions-edit-copy-release,
 .icon-actions-edit-cut-release,
 .icon-status-status-current,
diff --git a/typo3/sysext/backend/Resources/Public/Icons/Default/default-not-found.svg b/typo3/sysext/backend/Resources/Public/Icons/Default/default-not-found.svg
new file mode 100644 (file)
index 0000000..624cdfe
--- /dev/null
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="#CD201F" d="M11 12l3-2v6H2v-6l3 2 3-2 3 2z"/><path opacity=".2" d="M8 10.3l2.86 1.91.14.09.14-.09 2.61-1.74v5.28H2.25v-5.28l2.61 1.74.14.09.14-.09L8 10.3m6-.3l-3 2-3-2-3 2-3-2v6h12v-6z"/><path fill="#CD201F" d="M14 4v4l-3 2-3-2-3 2-3-2V0h8l4 4z"/><path opacity=".2" d="M13.75 7.87L11 9.7 8.14 7.79 8 7.7l-.14.09L5 9.7 2.25 7.87V.25H10V0H2v8l3 2 3-2 3 2 3-2V4h-.25"/><path opacity=".3" fill="#FFF" d="M14 4h-4V0l4 4z"/><path opacity=".3" d="M14 8l-4-4h4v4z"/></svg>
\ No newline at end of file
index e78d4ba..3947de4 100644 (file)
@@ -34,9 +34,9 @@ class IconRegistry implements \TYPO3\CMS\Core\SingletonInterface {
        protected $icons = array(
                // Default icon, fallback
                'default-not-found' => array(
-                       'provider' => FontawesomeIconProvider::class,
+                       'provider' => SvgIconProvider::class,
                        'options' => array(
-                               'name' => 'times-circle',
+                               'source' => 'EXT:backend/Resources/Public/Icons/Default/default-not-found.svg',
                        )
                ),
 
index 2105725..0e426bf 100644 (file)
@@ -7852,7 +7852,6 @@ button.close {
   line-height: 30px;
   font-size: 26px;
 }
-.icon-default-not-found,
 .icon-actions-edit-copy-release,
 .icon-actions-edit-cut-release,
 .icon-status-status-current,