diff options
author | Julius Haertl <jus@bitgrid.net> | 2016-08-10 04:19:02 +0300 |
---|---|---|
committer | Julius Haertl <jus@bitgrid.net> | 2016-08-10 12:59:30 +0300 |
commit | 0b0340b41dec97661f0e5b36b3a1152d6a562575 (patch) | |
tree | db90984b2bf04517ff85bb7a1f71a8aab49297c4 /js | |
parent | bc457fce2b1cf649cccdb26a6255d95e806d9e97 (diff) |
Switch notification icon to dark if theming app is using bright colors
Diffstat (limited to 'js')
-rw-r--r-- | js/app.js | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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) |