diff --git a/frontend/src/components/GeneDetails/ExpressionCard.vue b/frontend/src/components/GeneDetails/ExpressionCard.vue index 4e62d4ea..4348d865 100644 --- a/frontend/src/components/GeneDetails/ExpressionCard.vue +++ b/frontend/src/components/GeneDetails/ExpressionCard.vue @@ -167,7 +167,7 @@ const vegaLayer = [ Tissue-Specific Gene Expression from GTeX - + import { computed, onMounted, ref, watch } from 'vue' +import { useTheme } from 'vuetify' import DocsLink from '@/components/DocsLink.vue' import CriterionSwitch from '@/components/SeqvarDetails/ClinsigCard/CriterionSwitch.vue' @@ -33,6 +34,9 @@ interface Props { /** Define component's props. */ const props = defineProps() +/** Vuetify theme. */ +const theme = useTheme() + /** Define emits. */ const emit = defineEmits<{ /** Display error to user. */ @@ -150,6 +154,11 @@ const currentConflicts = computed(() => { return result }) +/** Return font color for genome build based on current theme. */ +const fontColor = computed(() => { + return theme.global.current.value.dark ? 'white' : 'black' +}) + /** Re-compute ACMG rating from InterVar when the sequence variant changed. */ watch( () => [props.seqvar, acmgRatingStore.storeState], @@ -239,7 +248,7 @@ onMounted(async () => { { {{ showTerse ? 'Hide' : 'Show' }} terse mode {
{ Save to Server { Load from Server +import { computed } from 'vue' +import { useTheme } from 'vuetify' + import { classColor } from '@/lib/utils' interface Props { @@ -12,7 +15,14 @@ const props = withDefaults(defineProps(), { interVaravailable: false }) +const theme = useTheme() + const emit = defineEmits(['clearAll', 'resetToAuto']) + +/** Return font color for genome build based on current theme. */ +const fontColor = computed(() => { + return theme.global.current.value.dark ? 'white' : 'black' +})