[FEATURE] Migrate extension icon to svg 68/51168/2
authorStanislas Rolland <typo3@sjbr.ca>
Fri, 6 Jan 2017 22:09:45 +0000 (17:09 -0500)
committerStanislas Rolland <typo3@sjbr.ca>
Fri, 6 Jan 2017 22:10:53 +0000 (23:10 +0100)
Resolves: #79189
Change-Id: Ia1af4f5001bdac17a1130347d27ba5af354a42be
Reviewed-on: https://review.typo3.org/51168
Reviewed-by: Stanislas Rolland <typo3@sjbr.ca>
Tested-by: Stanislas Rolland <typo3@sjbr.ca>
ChangeLog
Resources/Public/Images/language.png [deleted file]
Resources/Public/Images/language.svg [new file with mode: 0644]
Resources/Public/StyleSheets/SrLanguageMenu.css
ext_icon.gif [deleted file]
ext_icon.png [deleted file]
ext_icon.svg [new file with mode: 0644]
ext_localconf.php

index 88376e7..75c77c8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,8 @@
 2017-01-06  Stanislas Rolland  <typo3(arobas)sjbr.ca>\r
 \r
        * Resolves #79187: Use TYPO3 8 DB API\r
+       * Resolves #79188: Use registered icon in frontend\r
+       * Resolves #79189: Migrate extension icon to svg\r
 \r
 2017-01-05  Stanislas Rolland  <typo3(arobas)sjbr.ca>\r
 \r
diff --git a/Resources/Public/Images/language.png b/Resources/Public/Images/language.png
deleted file mode 100644 (file)
index fa1ad0e..0000000
Binary files a/Resources/Public/Images/language.png and /dev/null differ
diff --git a/Resources/Public/Images/language.svg b/Resources/Public/Images/language.svg
new file mode 100644 (file)
index 0000000..f1f6f41
--- /dev/null
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   id="svg2652"
+   width="213"
+   height="213"
+   version="1.0">
+  <rect
+     style="fill:#c45677;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:2.32536936;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0"
+     id="rect2681"
+     width="210.79147"
+     height="210.79147"
+     x="0.89320815"
+     y="1.2462087"
+     rx="53.576298" />
+  <rect
+     style="fill:#c45677;fill-opacity:0.34117647;stroke:#ffffff;stroke-width:8.92397499;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+     id="rect4893"
+     width="105.62956"
+     height="104.32529"
+     x="52.139805"
+     y="55.393627"
+     rx="0" />
+  <rect
+     style="fill:#ffffff;fill-opacity:1;stroke:#ffffff;stroke-width:8.73866844;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+     id="rect4897"
+     width="45.13784"
+     height="45.13784"
+     x="82.199577"
+     y="107.29568" />
+</svg>
\ No newline at end of file
index b4bc7f5..baa9ad7 100644 (file)
@@ -60,7 +60,7 @@
 .tx-srlanguagemenu fieldset {
 }
 .tx-srlanguagemenu fieldset legend {
-       /*background: url(../Images/language.png) no-repeat 2px 50%;
+       /*background: url(../Images/language.svg) no-repeat 2px 50%;
        padding: 0 2px 2px 20px;*/
 }
 .tx-srlanguagemenu fieldset label {
diff --git a/ext_icon.gif b/ext_icon.gif
deleted file mode 100644 (file)
index d49b6fd..0000000
Binary files a/ext_icon.gif and /dev/null differ
diff --git a/ext_icon.png b/ext_icon.png
deleted file mode 100644 (file)
index fa1ad0e..0000000
Binary files a/ext_icon.png and /dev/null differ
diff --git a/ext_icon.svg b/ext_icon.svg
new file mode 100644 (file)
index 0000000..f1f6f41
--- /dev/null
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   id="svg2652"
+   width="213"
+   height="213"
+   version="1.0">
+  <rect
+     style="fill:#c45677;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:2.32536936;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0"
+     id="rect2681"
+     width="210.79147"
+     height="210.79147"
+     x="0.89320815"
+     y="1.2462087"
+     rx="53.576298" />
+  <rect
+     style="fill:#c45677;fill-opacity:0.34117647;stroke:#ffffff;stroke-width:8.92397499;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+     id="rect4893"
+     width="105.62956"
+     height="104.32529"
+     x="52.139805"
+     y="55.393627"
+     rx="0" />
+  <rect
+     style="fill:#ffffff;fill-opacity:1;stroke:#ffffff;stroke-width:8.73866844;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+     id="rect4897"
+     width="45.13784"
+     height="45.13784"
+     x="82.199577"
+     y="107.29568" />
+</svg>
\ No newline at end of file
index 4ef3ce0..8f45908 100644 (file)
@@ -21,9 +21,9 @@ defined('TYPO3_MODE') or die();
 // Register icon
 $iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
 $iconRegistry->registerIcon(
-  'tx-srlanguagemenu-language',
-  \TYPO3\CMS\Core\Imaging\IconProvider\BitmapIconProvider::class,
-  ['source' => 'EXT:' . $_EXTKEY . '/Resources/Public/Images/language.png']
+       'tx-srlanguagemenu-language',
+       \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
+       ['source' => 'EXT:' . $_EXTKEY . '/Resources/Public/Images/language.svg']
 );
 
 if (TYPO3_MODE === 'BE') {