Skip to content

Commit

Permalink
Change splitpane colors with the theme
Browse files Browse the repository at this point in the history
  • Loading branch information
haticekaratay committed Mar 19, 2024
1 parent ee5de24 commit 9851c15
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions jdaviz/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
'width': '100%',
'height': !state.settings.dense_toolbar ? 'calc(100% - 64px)' : 'calc(100% - 48px)',
'overflow-y': 'scroll',
'border-top': '6px solid #C75109',
'border-top': '6px solid ${themeAccentColor}',
'padding-left': '15%',
'padding-top': '20px'}"
@click="state.logger_overlay = false">
Expand Down Expand Up @@ -100,7 +100,7 @@
</gl-row>
</golden-layout>
</pane>
<pane size="25" min-size="25" v-if="state.drawer" style="background-color: #fafbfc; border-top: 6px solid #C75109; min-width: 250px">
<pane size="25" min-size="25" v-if="state.drawer" :style="{'background-color': '#fafbfc', 'border-top': `6px solid ${themeAccentColor}`, 'min-width': '250px'}">
<v-card flat tile class="overflow-y-auto fill-height" style="overflow-x: hidden" color="gray">
<v-text-field
v-model='state.tray_items_filter'
Expand Down Expand Up @@ -188,6 +188,11 @@ export default {
if (jpOutputElem) {
jpOutputElem.classList.remove('jupyter-widgets');
}
},
computed: {
themeAccentColor() {
return this.$vuetify.theme.dark ? this.$vuetify.theme.themes.dark.accent : this.$vuetify.theme.themes.light.accent;
}
}
};
</script>

0 comments on commit 9851c15

Please sign in to comment.