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 authored and backportbot-nextcloud[bot] committed Oct 19, 2022
1 parent 65bb084 commit fe16e67
Showing 1 changed file with 6 additions and 0 deletions.
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 fe16e67

Please sign in to comment.