From 8a226811dc86547ca5f79ffa35965c0f72e8fbb4 Mon Sep 17 00:00:00 2001 From: Julius Härtl Date: Wed, 3 Jan 2018 09:17:14 +0100 Subject: Invert app icons on IE11 as well MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- settings/js/apps.js | 41 +++++++++++++++++++++++------------------ 1 file changed, 23 insertions(+), 18 deletions(-) (limited to 'settings/js') diff --git a/settings/js/apps.js b/settings/js/apps.js index 0a6e86ed701..7ec7309db13 100644 --- a/settings/js/apps.js +++ b/settings/js/apps.js @@ -652,24 +652,29 @@ OC.Settings.Apps = OC.Settings.Apps || { } if ($('#appmenu').children('li[data-id="' + entry.id + '"]').length === 0) { - var li = $('
  • '); - li.attr('data-id', entry.id); - var img = ''; - var a = $('').attr('href', entry.href); - var filename = $(''); - var loading = $('
    ').css('display', 'none'); - filename.text(entry.name); - a.prepend(filename); - a.prepend(loading); - a.prepend(img); - li.append(a); - $('#appmenu li[data-id='+ previousEntry.id+']').after(li); - if(addedApps[entry.id]) { - li.animate({opacity: 0.5}) - .animate({opacity: 1}) - .animate({opacity: 0.5}) - .animate({opacity: 1}); - } + var li = $('
  • '); + li.attr('data-id', entry.id); + var img = ''; + if (OCA.Theming && OCA.Theming.inverted) { + img = ''; + img += ''; + img += ''; + } + var a = $('').attr('href', entry.href); + var filename = $(''); + var loading = $('
    ').css('display', 'none'); + filename.text(entry.name); + a.prepend(filename); + a.prepend(loading); + a.prepend(img); + li.append(a); + $('#appmenu li[data-id='+ previousEntry.id+']').after(li); + if(addedApps[entry.id]) { + li.animate({opacity: 0.5}) + .animate({opacity: 1}) + .animate({opacity: 0.5}) + .animate({opacity: 1}); + } } previousEntry = entry; } -- cgit v1.2.3