[IMP] web_editor: rename colorpicker tabs
The first tab of the colorpicker can, depending on the context: - display a selection of color combinations for the current **theme** (when launched as a snippet option, for example, in the website builder); or - display a selection of **solid** colors (when lauched from the toolbar). The commit changes the tab's name to conditionally reflect its content: "Theme" or "Solid". The second tab allows the user to pick a **custom** RGBA color. This commit renames it to "Custom", replacing the inaccurate "Solid" name, now in use for the first tab. task-3274225 closes odoo/odoo#118852 Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
This commit is contained in:
@@ -59,11 +59,13 @@
|
||||
<!-- options -->
|
||||
<div t-name="web_editor.snippet.option.colorpicker" class="colorpicker">
|
||||
<div class="o_we_colorpicker_switch_panel d-flex justify-content-end px-2">
|
||||
<button type="button" tabindex="1" class="o_we_colorpicker_switch_pane_btn" t-attf-data-target="#{widget.withCombinations? 'color-combinations' : 'theme-colors'}" title="Theme">
|
||||
<span>Theme</span>
|
||||
<t t-set="first_button_name"><t t-if="widget.withCombinations">Theme</t><t t-else="">Solid</t></t>
|
||||
<button type="button" tabindex="1" class="o_we_colorpicker_switch_pane_btn" t-attf-data-target="#{widget.withCombinations? 'color-combinations' : 'theme-colors'}"
|
||||
t-att-title="first_button_name">
|
||||
<span t-out="first_button_name"/>
|
||||
</button>
|
||||
<button type="button" tabindex="2" class="o_we_colorpicker_switch_pane_btn" data-target="custom-colors" title="Solid">
|
||||
<span>Solid</span>
|
||||
<button type="button" tabindex="2" class="o_we_colorpicker_switch_pane_btn" data-target="custom-colors" title="Custom">
|
||||
<span>Custom</span>
|
||||
</button>
|
||||
<button type="button" tabindex="3" class="o_we_colorpicker_switch_pane_btn" data-target="gradients" title="Gradient">
|
||||
<span>Gradient</span>
|
||||
|
||||
Reference in New Issue
Block a user