Skip to content

Commit

Permalink
Compactixze toolbar buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
CyclingNinja committed Jan 10, 2025
1 parent 4c856eb commit 52a3c29
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion glue_jupyter/common/state_widgets/viewer_histogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ def __init__(self, viewer_state):

link_glue_choices(self, viewer_state, 'x_att')

def vue_axis_to_bins(self, *args):
def vue_bins_to_axis(self, *args):
self.glue_state.update_bins_to_view()
11 changes: 5 additions & 6 deletions glue_jupyter/common/state_widgets/viewer_histogram.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,28 @@
<glue-float-field label="x-max" :value.sync="glue_state.hist_x_max" />-->
</div>
<div>
<v-toolbar title="Toolbar">
<v-toolbar-items>
<v-toolbar density="compact" >
<v-tooltip>
<template v-slot:activator="{ on }">
<v-btn v-on="on" small value="normalize">
<v-btn v-on="on" size="x-small" value="normalize">
<v-icon>unfold_more</v-icon>
</v-btn>
</template>
<span>normalize</span>
</v-tooltip>
<v-tooltip bottom>
<template v-slot:activator="{ on }">
<v-btn v-on="on" small value="cumulative">
<v-btn v-on="on" size="x-small" value="cumulative">
<v-icon>trending_up</v-icon>
</v-btn>
</template>
<span>cumulative</span>
</v-tooltip>

<v-btn variant="outlined" small @click="bins_to_axes">
<v-btn variant="outlined" size="x-small" @click="bins_to_axes">
Fit Bins to Axes
</v-btn>
</v-toolbar-items>
</v-toolbar>
</div>
<v-switch v-model="glue_state.show_axes" label="Show axes" hide-details/>
</div>
Expand Down

0 comments on commit 52a3c29

Please # to comment.