summaryrefslogtreecommitdiffstats
path: root/core/templates
diff options
context:
space:
mode:
authorJulius Haertl <jus@bitgrid.net>2016-07-28 22:33:17 +0200
committerJulius Haertl <jus@bitgrid.net>2016-07-28 22:33:17 +0200
commitf55ba62a00a9256b8879d373c4a1460581b22eb1 (patch)
tree92a5568454d574f63de7c619c07203e34349b84a /core/templates
parent319449434e5ad4164647bfe211467a0995e9c067 (diff)
downloadnextcloud-server-f55ba62a00a9256b8879d373c4a1460581b22eb1.tar.gz
nextcloud-server-f55ba62a00a9256b8879d373c4a1460581b22eb1.zip
Move to svg filter on app menu to support IE9+
Diffstat (limited to 'core/templates')
-rw-r--r--core/templates/layout.user.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php
index b3b492ecac4..37e03b692c5 100644
--- a/core/templates/layout.user.php
+++ b/core/templates/layout.user.php
@@ -113,7 +113,10 @@
<li data-id="<?php p($entry['id']); ?>">
<a href="<?php print_unescaped($entry['href']); ?>" tabindex="3"
<?php if( $entry['active'] ): ?> class="active"<?php endif; ?>>
- <img class="app-icon" alt="" src="<?php print_unescaped($entry['icon']); ?>">
+ <svg width="32" height="32" viewBox="0 0 32 32">
+ <defs><filter id="invert"><feColorMatrix in="SourceGraphic" type="matrix" values="-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0" /></filter></defs>
+ <image x="0" y="0" width="32" height="32" preserveAspectRatio="true" filter="url(#invert)" xlink:href="<?php print_unescaped($entry['icon']); ?>" class="app-icon"/>
+ </svg>
<div class="icon-loading-dark" style="display:none;"></div>
<span>
<?php p($entry['name']); ?>
@@ -128,7 +131,10 @@
<li id="apps-management">
<a href="<?php print_unescaped(\OC::$server->getURLGenerator()->linkToRoute('settings.AppSettings.viewApps')); ?>" tabindex="4"
<?php if( $_['appsmanagement_active'] ): ?> class="active"<?php endif; ?>>
- <img class="app-icon" alt="" src="<?php print_unescaped(image_path('settings', 'apps.svg')); ?>">
+ <svg width="32" height="32" viewBox="0 0 32 32" class="app-icon">
+ <defs><filter id="invert"><feColorMatrix in="SourceGraphic" type="matrix" values="-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0" /></filter></defs>
+ <image x="0" y="0" width="32" height="32" preserveAspectRatio="true" filter="url(#invert)" xlink:href="<?php print_unescaped(image_path('settings', 'apps.svg')); ?>"/>
+ </svg>
<div class="icon-loading-dark" style="display:none;"></div>
<span>
<?php p($l->t('Apps')); ?>