aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2018-01-16 19:18:56 +0100
committerGitHub <noreply@github.com>2018-01-16 19:18:56 +0100
commit7a7e756b0ea7b9fc193967316bb170fb03e2fc6d (patch)
tree0b701abdb7c62892342d5e12e1a0afcc76bad7dc /core
parenta3059d0f1fda8ecd678cb61b93b0728270f86928 (diff)
parent394f1d89d3dd41fe931685f7143bb14b83da403f (diff)
downloadnextcloud-server-7a7e756b0ea7b9fc193967316bb170fb03e2fc6d.tar.gz
nextcloud-server-7a7e756b0ea7b9fc193967316bb170fb03e2fc6d.zip
Merge pull request #7817 from nextcloud/stable12-7767
[stable12] Fix preview when theming changes invertion of icons
Diffstat (limited to 'core')
-rw-r--r--core/templates/layout.user.php14
1 files changed, 6 insertions, 8 deletions
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php
index d54a6fe114f..2a413a4d958 100644
--- a/core/templates/layout.user.php
+++ b/core/templates/layout.user.php
@@ -60,20 +60,18 @@
<div class="icon-caret"></div>
</a>
- <ul id="appmenu">
+ <ul id="appmenu" <?php if ($_['themingInvertMenu']) { ?>class="inverted"<?php } ?>>
<?php foreach ($_['navigation'] as $entry): ?>
<li data-id="<?php p($entry['id']); ?>" class="hidden">
<a href="<?php print_unescaped($entry['href']); ?>"
tabindex="3"
<?php if ($entry['active']): ?> class="active"<?php endif; ?>>
- <?php if ($_['themingInvertMenu']) { ?>
<svg width="20" height="20" viewBox="0 0 20 20">
- <defs><filter id="invertMenuMain-<?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(#invertMenuMain-<?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 } ?>
+ <?php if ($_['themingInvertMenu']) { ?>
+ <defs><filter id="invertMenuMain-<?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>
+ <?php } ?>
+ <image x="0" y="0" width="20" height="20" preserveAspectRatio="xMinYMin meet"<?php if ($_['themingInvertMenu']) { ?> filter="url(#invertMenuMain-<?php p($entry['id']); ?>)"<?php } ?> xlink:href="<?php print_unescaped($entry['icon'] . '?v=' . $_['versionHash']); ?>" class="app-icon" />
+ </svg>
<div class="icon-loading-small-dark"
style="display:none;"></div>
</a>