Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] chart panel: wrongly aligned ColorPicker #2807

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@
<div>
<div class="o-section o-chart-background-color">
<div class="o-section-title">Background color</div>
Select a color...
<ColorPickerWidget
currentColor="props.definition.background"
toggleColorPicker="() => this.toggleColorPicker()"
showColorPicker="state.fillColorTool"
onColorPicked="(color) => this.updateBackgroundColor(color)"
title="env._t('Background Color')"
icon="'o-spreadsheet-Icon.FILL_COLOR'"
/>
<div class="d-flex align-items-center">
<span class="pe-1">Select a color...</span>
<ColorPickerWidget
currentColor="props.definition.background"
toggleColorPicker="() => this.toggleColorPicker()"
showColorPicker="state.fillColorTool"
onColorPicked="(color) => this.updateBackgroundColor(color)"
title="env._t('Background Color')"
icon="'o-spreadsheet-Icon.FILL_COLOR'"
/>
</div>
</div>
<div class="o-section o-chart-title">
<div class="o-section-title">Title</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@
<div>
<div class="o-section o-chart-background-color">
<div class="o-section-title">Background color</div>
Select a color...
<ColorPickerWidget
currentColor="props.definition.background"
toggleColorPicker="() => this.toggleMenu('backgroundColor', ev)"
showColorPicker="state.openedMenu === 'backgroundColor'"
onColorPicked="(color) => this.updateBackgroundColor(color)"
title="env._t('Background Color')"
icon="'o-spreadsheet-Icon.FILL_COLOR'"
/>
<div class="d-flex align-items-center">
<span class="pe-1">Select a color...</span>
<ColorPickerWidget
currentColor="props.definition.background"
toggleColorPicker="() => this.toggleMenu('backgroundColor', ev)"
showColorPicker="state.openedMenu === 'backgroundColor'"
onColorPicked="(color) => this.updateBackgroundColor(color)"
title="env._t('Background Color')"
icon="'o-spreadsheet-Icon.FILL_COLOR'"
/>
</div>
</div>

<div class="o-section o-chart-title">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@
<div>
<div class="o-section o-chart-background-color">
<div class="o-section-title">Background color</div>
Select a color...
<ColorPickerWidget
currentColor="props.definition.background"
toggleColorPicker="() => this.toggleColorPicker()"
showColorPicker="state.fillColorTool"
onColorPicked="(color) => this.updateBackgroundColor(color)"
title="env._t('Background Color')"
icon="'o-spreadsheet-Icon.FILL_COLOR'"
/>
<div class="d-flex align-items-center">
<span class="pe-1">Select a color...</span>
<ColorPickerWidget
currentColor="props.definition.background"
toggleColorPicker="() => this.toggleColorPicker()"
showColorPicker="state.fillColorTool"
onColorPicked="(color) => this.updateBackgroundColor(color)"
title="env._t('Background Color')"
icon="'o-spreadsheet-Icon.FILL_COLOR'"
/>
</div>
</div>
<div class="o-section o-chart-title">
<div class="o-section-title">Title</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@
<div>
<div class="o-section o-chart-background-color">
<div class="o-section-title">Background color</div>
Select a color...
<ColorPickerWidget
currentColor="props.definition.background"
toggleColorPicker="() => this.toggleColorPicker()"
showColorPicker="state.fillColorTool"
onColorPicked="(color) => this.updateBackgroundColor(color)"
title="env._t('Background Color')"
icon="'o-spreadsheet-Icon.FILL_COLOR'"
/>
<div class="d-flex align-items-center">
<span class="pe-1">Select a color...</span>
<ColorPickerWidget
currentColor="props.definition.background"
toggleColorPicker="() => this.toggleColorPicker()"
showColorPicker="state.fillColorTool"
onColorPicked="(color) => this.updateBackgroundColor(color)"
title="env._t('Background Color')"
icon="'o-spreadsheet-Icon.FILL_COLOR'"
/>
</div>
</div>
<div class="o-section o-chart-title">
<div class="o-section-title">Title</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@
<div>
<div class="o-section o-chart-background-color">
<div class="o-section-title">Background color</div>
Select a color...
<ColorPickerWidget
currentColor="props.definition.background"
toggleColorPicker="() => this.toggleColorPicker('backgroundColor')"
showColorPicker="state.openedColorPicker === 'backgroundColor'"
onColorPicked="(color) => this.setColor(color, 'backgroundColor')"
title="env._t('Background Color')"
icon="'o-spreadsheet-Icon.FILL_COLOR'"
/>
<div class="d-flex align-items-center">
<span class="pe-1">Select a color...</span>
<ColorPickerWidget
currentColor="props.definition.background"
toggleColorPicker="() => this.toggleColorPicker('backgroundColor')"
showColorPicker="state.openedColorPicker === 'backgroundColor'"
onColorPicked="(color) => this.setColor(color, 'backgroundColor')"
title="env._t('Background Color')"
icon="'o-spreadsheet-Icon.FILL_COLOR'"
/>
</div>
</div>

<div class="o-section o-chart-title">
Expand All @@ -36,25 +38,28 @@
</div>
<div class="o-section o-chart-baseline-color">
<div class="o-section-title">Baseline color</div>
Color on value increase
<ColorPickerWidget
currentColor="props.definition.baselineColorUp"
toggleColorPicker="() => this.toggleColorPicker('baselineColorUp')"
showColorPicker="state.openedColorPicker === 'baselineColorUp'"
onColorPicked="(color) => this.setColor(color, 'baselineColorUp')"
title="env._t('Color Up')"
icon="'o-spreadsheet-Icon.FILL_COLOR'"
/>
<br/>
Color on value decrease
<ColorPickerWidget
currentColor="props.definition.baselineColorDown"
toggleColorPicker="() => this.toggleColorPicker('baselineColorDown')"
showColorPicker="state.openedColorPicker === 'baselineColorDown'"
onColorPicked="(color) => this.setColor(color, 'baselineColorDown')"
title="env._t('Color Down')"
icon="'o-spreadsheet-Icon.FILL_COLOR'"
/>
<div class="d-flex align-items-center">
<span class="pe-1">Color on value increase</span>
<ColorPickerWidget
currentColor="props.definition.baselineColorUp"
toggleColorPicker="() => this.toggleColorPicker('baselineColorUp')"
showColorPicker="state.openedColorPicker === 'baselineColorUp'"
onColorPicked="(color) => this.setColor(color, 'baselineColorUp')"
title="env._t('Color Up')"
icon="'o-spreadsheet-Icon.FILL_COLOR'"
/>
</div>
<div class="d-flex align-items-center">
<span class="pe-1">Color on value decrease</span>
<ColorPickerWidget
currentColor="props.definition.baselineColorDown"
toggleColorPicker="() => this.toggleColorPicker('baselineColorDown')"
showColorPicker="state.openedColorPicker === 'baselineColorDown'"
onColorPicked="(color) => this.setColor(color, 'baselineColorDown')"
title="env._t('Color Down')"
icon="'o-spreadsheet-Icon.FILL_COLOR'"
/>
</div>
</div>
</t>
</templates>