-
Notifications
You must be signed in to change notification settings - Fork 63
Add icon without red dot for red theming colors #135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Julius Härtl <[email protected]>
|
By testing this PR, I saw we are not showing the notification icon permanently ... is this by intention? I thought we wanted to change this behavior? @nickvergessen |
|
@MariusBluem Works fine for me here. |
|
Hmm, should we really pick white? Or use another color or black for the dot, so it's better spotable? |
|
The issue with a black dot is that it might not be nicely visible on the various brightness levels of red colors we can have there: @MariusBluem Complementary colors also don't work nicely in terms of contrast: The white one still seems to be the most obvious one to me, that is clearly visible though all red color values. In cases when the theming color is bright enough, we still use the regular black icon with the red dot, which also looks good then: |
I'd say yes, since the icon also doesn't have any opacity as the other icons, but I welcome other ideas on how we can make it a more obvious. |
|
Or we make it flashing ... |
|
We have a little animation, but only for ~3secs. If you load the app in the background you miss it, anyway... lets continue with being productive |
|
I’d say it’s a good enhancement already. In addition, in #104 (comment), @j-ed did a mockup with a blue notification bubble color (we could use Nextcloud blue) which would be used in these cases. Maybe worth a try @juliushaertl? But I’m also fine with it being just white there, as mentioned the opacity is also different. |
|
let's make the dot pulse? |
|
Nothing in the interface should pulse consistently, that's irritating. We do have the form (dot), we simply need to add the color here too. |
jancborchardt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine by me with the white dot. :)
| .notifications-button.hasNotifications { | ||
| background-repeat: no-repeat; | ||
| background-position: center center; | ||
| background-image: url('../img/notifications-new-fallback.svg?v=1'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file does not exist 🙈
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, we are not using background images, but a normal image.
The path is calculated in
notifications/js-src/components/root.vue
Lines 38 to 49 in 94309c8
| iconPath: function() { | |
| var iconPath = 'notifications'; | |
| if (/*this.backgroundFetching &&*/ this.notifications.length) { | |
| iconPath += '-new'; | |
| } | |
| if (this.invertedTheme) { | |
| iconPath += '-dark'; | |
| } | |
| return OC.imagePath('notifications', iconPath); |
Can we do this calculation properly there as well?
|
Beside that I'm fine with the white one 👍 |
Signed-off-by: Julius Härtl <[email protected]>
|
Replaced by #156 |











This adds a fallback icon for primary colors that are red.
The fallback is not used on bright redish colors and on to dark colors where the red dot is clearly visible.
fixes #104
@nextcloud/designers