diff --git a/img/notifications-new-dark.svg b/img/notifications-new-dark.svg new file mode 100644 index 000000000..bc00d61f7 --- /dev/null +++ b/img/notifications-new-dark.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/js/app.js b/js/app.js index 3f2412fb1..d91967d0b 100644 --- a/js/app.js +++ b/js/app.js @@ -289,8 +289,14 @@ */ _onHaveNotifications: function() { // Add the button, title, etc + var icon; + if (OCA.Theming && OCA.Theming.inverted) { + icon = 'notifications-new-dark'; + } else { + icon = 'notifications-new'; + } this.$button.addClass('hasNotifications'); - this.$button.find('img').attr('src', OC.imagePath('notifications', 'notifications-new')) + this.$button.find('img').attr('src', OC.imagePath('notifications', icon)) .animate({opacity: 0.5}, 600) .animate({opacity: 1}, 600) .animate({opacity: 0.5}, 600)