[FEATURE] Introduce new Icon API
The logic for working with icons, icon sizes and icon overlays is now bundled into the new IconFactory class. The new IconFactory will replace the old icon skinning API step by step. All core icons will be registered directly in the IconRegistry class, third party extensions must use IconRegistry::registerIcon() to overwrite existing icons or add additional icons to the IconFactory. The IconFactory takes care of the correct icon and overlay sizes and the markup. Resolves: #68741 Releases: master Change-Id: I731e077290b58298c2c603eeb8961e8a3d4c62d3 Reviewed-on: http://review.typo3.org/41759 Reviewed-by:Christian Kuhn <lolli@schwarzbu.ch> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Benni Mack <benni@typo3.org> Tested-by:
Benni Mack <benni@typo3.org>
Showing
- Build/Resources/Public/Less/Component/icon.less 90 additions, 0 deletionsBuild/Resources/Public/Less/Component/icon.less
- Build/Resources/Public/Less/_minimal.less 1 addition, 0 deletionsBuild/Resources/Public/Less/_minimal.less
- typo3/sysext/core/Classes/Imaging/Dimension.php 74 additions, 0 deletionstypo3/sysext/core/Classes/Imaging/Dimension.php
- typo3/sysext/core/Classes/Imaging/Icon.php 177 additions, 0 deletionstypo3/sysext/core/Classes/Imaging/Icon.php
- typo3/sysext/core/Classes/Imaging/IconFactory.php 75 additions, 0 deletionstypo3/sysext/core/Classes/Imaging/IconFactory.php
- typo3/sysext/core/Classes/Imaging/IconProvider/BitmapIconProvider.php 45 additions, 0 deletions.../core/Classes/Imaging/IconProvider/BitmapIconProvider.php
- typo3/sysext/core/Classes/Imaging/IconProvider/FontawesomeIconProvider.php 43 additions, 0 deletions.../Classes/Imaging/IconProvider/FontawesomeIconProvider.php
- typo3/sysext/core/Classes/Imaging/IconProvider/SvgIconProvider.php 45 additions, 0 deletions...ext/core/Classes/Imaging/IconProvider/SvgIconProvider.php
- typo3/sysext/core/Classes/Imaging/IconProviderInterface.php 29 additions, 0 deletionstypo3/sysext/core/Classes/Imaging/IconProviderInterface.php
- typo3/sysext/core/Classes/Imaging/IconRegistry.php 142 additions, 0 deletionstypo3/sysext/core/Classes/Imaging/IconRegistry.php
- typo3/sysext/core/Classes/Utility/PathUtility.php 7 additions, 2 deletionstypo3/sysext/core/Classes/Utility/PathUtility.php
- typo3/sysext/core/Classes/ViewHelpers/IconViewHelper.php 66 additions, 0 deletionstypo3/sysext/core/Classes/ViewHelpers/IconViewHelper.php
- typo3/sysext/core/Documentation/Changelog/master/Feature-68741-IntroduceNewIconFactoryAsBaseForReplaceTheIconSkinningAPI.rst 84 additions, 0 deletions...oduceNewIconFactoryAsBaseForReplaceTheIconSkinningAPI.rst
- typo3/sysext/core/Tests/Unit/Imaging/DimensionTest.php 67 additions, 0 deletionstypo3/sysext/core/Tests/Unit/Imaging/DimensionTest.php
- typo3/sysext/core/Tests/Unit/Imaging/IconFactoryTest.php 166 additions, 0 deletionstypo3/sysext/core/Tests/Unit/Imaging/IconFactoryTest.php
- typo3/sysext/core/Tests/Unit/Imaging/IconProvider/BitmapIconProviderTest.php 62 additions, 0 deletions...ests/Unit/Imaging/IconProvider/BitmapIconProviderTest.php
- typo3/sysext/core/Tests/Unit/Imaging/IconProvider/FontawesomeIconProviderTest.php 62 additions, 0 deletions...Unit/Imaging/IconProvider/FontawesomeIconProviderTest.php
- typo3/sysext/core/Tests/Unit/Imaging/IconProvider/SvgIconProviderTest.php 62 additions, 0 deletions...e/Tests/Unit/Imaging/IconProvider/SvgIconProviderTest.php
- typo3/sysext/core/Tests/Unit/Imaging/IconRegistryTest.php 109 additions, 0 deletionstypo3/sysext/core/Tests/Unit/Imaging/IconRegistryTest.php
- typo3/sysext/core/Tests/Unit/Imaging/IconTest.php 77 additions, 0 deletionstypo3/sysext/core/Tests/Unit/Imaging/IconTest.php
Please register or sign in to comment