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

github.com/nextcloud/notifications.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorJulius Haertl <jus@bitgrid.net>2016-08-10 04:19:02 +0300
committerJulius Haertl <jus@bitgrid.net>2016-08-10 12:59:30 +0300
commit0b0340b41dec97661f0e5b36b3a1152d6a562575 (patch)
treedb90984b2bf04517ff85bb7a1f71a8aab49297c4 /js
parentbc457fce2b1cf649cccdb26a6255d95e806d9e97 (diff)
Switch notification icon to dark if theming app is using bright colors
Diffstat (limited to 'js')
-rw-r--r--js/app.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/js/app.js b/js/app.js
index 3f2412f..d91967d 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)