Skip to content

Commit

Permalink
Streamline tooltip to toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
CyclingNinja committed Jul 29, 2024
1 parent 0c1a3c7 commit 139a5b6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 20 deletions.
3 changes: 1 addition & 2 deletions glue_jupyter/common/state_widgets/viewer_histogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ def __init__(self, viewer_state):

link_glue_choices(self, viewer_state, 'x_att')

def vue_axis_to_bins(self):
def vue_axis_to_bins(self, *args):
self.glue_state.x_axislabel = "Updated Bins"
self.glue_state.update_bins_to_view()
print('Triggered axis to bins')
pass
32 changes: 14 additions & 18 deletions glue_jupyter/common/state_widgets/viewer_histogram.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,34 +13,30 @@
<glue-float-field label="x-max" :value.sync="glue_state.hist_x_max" />-->
</div>
<div>
<v-btn-toggle dense multiple :value="modeSet" @change="modeSetChange">

<v-tooltip bottom>
<v-toolbar title="Toolbar">
<v-toolbar-items>
<v-tooltip>
<template v-slot:activator="{ on }">
<v-btn v-on="on" small value="normalize">
<v-icon>unfold_more</v-icon>
</v-btn>
</template>
<v-btn v-on="on" small value="normalize">
<v-icon>unfold_more</v-icon>
</v-btn>
</template>
<span>normalize</span>
</v-tooltip>

<v-tooltip bottom>
</v-tooltip>
<v-tooltip bottom>
<template v-slot:activator="{ on }">
<v-btn v-on="on" small value="cumulative">
<v-icon>trending_up</v-icon>
</v-btn>
</template>
<span>cumulative</span>
</v-tooltip>
</v-btn-toggle>
</div>
</v-tooltip>

<div>
<v-btn icon color="primary" text small @click="axis_to_bins">
<v-icon>Fit Axes to Bins</v-icon>
</v-btn>
<v-btn variant="outlined" small @click="axis_to_bins">
Fit Axes to Bins
</v-btn>
</v-toolbar-items>
</div>

<v-switch v-model="glue_state.show_axes" label="Show axes" hide-details/>
</div>
</template>
Expand Down

0 comments on commit 139a5b6

Please sign in to comment.