Skip to content

Commit e080a2b

Browse files
modebar controls
1 parent 45314ee commit e080a2b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/default_panels/StyleLayoutPanel.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
VisibilitySelect,
1414
HovermodeDropdown,
1515
Flaglist,
16+
Radio,
1617
} from '../components';
1718
import {HoverColor} from '../components/fields/derived';
1819

@@ -46,6 +47,17 @@ const StyleLayoutPanel = (props, {localize: _}) => (
4647
<ColorPicker label={_('Font Color')} attr="titlefont.color" />
4748
</PlotlySection>
4849
</PlotlyFold>
50+
51+
<PlotlyFold name={_('Modebar')}>
52+
<Radio
53+
label={_('Orientation')}
54+
attr="modebar.orientation"
55+
options={[{label: _('Horizontal'), value: 'h'}, {label: _('Vertical'), value: 'v'}]}
56+
/>
57+
<ColorPicker label={_('Icon Color')} attr="modebar.color" />
58+
<ColorPicker label={_('Active Icon Color')} attr="modebar.activecolor" />
59+
<ColorPicker label={_('Background Color')} attr="modebar.bgcolor" />
60+
</PlotlyFold>
4961
<PlotlyFold name={_('Layout')}>
5062
<VisibilitySelect
5163
attr="autosize"

0 commit comments

Comments
 (0)