Skip to content

Commit

Permalink
Merge pull request #1341 from nextcloud/backport/1339/stable25
Browse files Browse the repository at this point in the history
[stable25] Invert header icon on bright preset backgrounds
  • Loading branch information
szaimen authored Oct 20, 2022
2 parents 65bb084 + b171d3a commit d3d9aa1
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 d3d9aa1

Please sign in to comment.