Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-01-03 11:17:14 +0300
committerJulius Härtl <jus@bitgrid.net>2018-01-03 16:42:07 +0300
commit8a226811dc86547ca5f79ffa35965c0f72e8fbb4 (patch)
tree80790a3013c6295a53fa5be49870b8dfbb303273 /core/templates
parentee0653d68b117ac586841465840e629a7c1a487f (diff)
Invert app icons on IE11 as well
Signed-off-by: Julius Härtl <jus@bitgrid.net>
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 5008392d2a3..690c3ed2e14 100644
--- a/core/templates/layout.user.php
+++ b/core/templates/layout.user.php
@@ -46,8 +46,14 @@
<li data-id="<?php p($entry['id']); ?>" class="hidden">
<a href="<?php print_unescaped($entry['href']); ?>"
<?php if ($entry['active']): ?> class="active"<?php endif; ?>>
- <img src="<?php print_unescaped($entry['icon'] . '?v=' . $_['versionHash']); ?>"
- class="app-icon" alt="<?php p($entry['name']); ?>" />
+ <?php if ($_['themingInvertMenu']) { ?>
+ <svg width="20" height="20" viewBox="0 0 20 20">
+ <defs><filter id="invert-<?php p($entry['id']); ?>"><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="20" height="20" preserveAspectRatio="xMinYMin meet" filter="url(#invert-<?php p($entry['id']); ?>)" xlink:href="<?php print_unescaped($entry['icon'] . '?v=' . $_['versionHash']); ?>" class="app-icon" /></svg>
+ <?php } else { ?>
+ <img src="<?php print_unescaped($entry['icon'] . '?v=' . $_['versionHash']); ?>"
+ class="app-icon" alt="<?php p($entry['name']); ?>" />
+ <?php } ?>
<div class="icon-loading-small-dark"
style="display:none;"></div>
</a>