Skip to content

Commit

Permalink
Invert header icon on bright preset backgrounds
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Ng <chrng8@gmail.com>
  • Loading branch information
Pytal committed Oct 19, 2022
1 parent d64e241 commit 873120d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions js/notifications-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/notifications-main.js.map

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions src/NotificationsApp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@
@open="onOpen">
<template #trigger>
<Bell v-if="notifications.length === 0 && webNotificationsGranted !== null && !hasThrottledPushNotifications"
class="notifications-button__icon"
:size="20"
:title="t('notifications', 'Notifications')"
fill-color="var(--color-primary-text)" />
<!-- From material design icons -->
<svg v-else
class="notifications-button__icon"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
version="1.1"
Expand Down Expand Up @@ -479,6 +481,10 @@ export default {
</script>
<style scoped lang="scss">
.notifications-button__icon {
filter: var(--background-image-invert-if-bright);
}
.notification-container {
/* Prevent slide animation to go out of the div */
overflow: hidden;
Expand Down

0 comments on commit 873120d

Please sign in to comment.