Skip to content

Commit

Permalink
fix dark theme support
Browse files Browse the repository at this point in the history
  • Loading branch information
kecnry committed Mar 7, 2022
1 parent 0f0db70 commit 710a22c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion jdaviz/components/toolbar_nested.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
>
<template v-slot:activator="{ on, attrs }">
<v-list-item v-bind="attrs" v-on="on" :input-value="primary" @click="() => select_primary([menu_ind, id])">
<v-list-item-title><img :src="img" width="20"/></v-list-item-title>
<v-list-item-title><img class='invert-if-dark' :src="img" width="20"/></v-list-item-title>
</v-list-item>
</template>
<span>{{ tooltip }}</span>
Expand Down Expand Up @@ -71,5 +71,12 @@
bottom: 0px;
right: 6px !important;
margin-right: -22px;
/* the parent button will invert everything anyways, so we need to override this to be black first,
regardless of light or dark theme */
color: black !important;
}
.theme--dark .invert-if-dark {
filter: invert(1) !important;
}
</style>

0 comments on commit 710a22c

Please # to comment.