Contributors mailing list archives

Browse archives


Re: Modify Theme colors

LasLabs, Dave Lasley
- 05/04/2017 17:59:16
Here’s how we did it in our theme, which adds another set of colors into the picker before the “Theme” picker:

    <template id="colorpicker" inherit_id="web_editor.colorpicker">
        <xpath expr="//div[@data-name='theme']" position="before">
            <div class="o_colorpicker_section" data-name="custom" data-icon-class="fa fa-exclamation">
                <button data-color="default">Default</button>
                <button data-color="default-50">Default 50%</button>
                <button data-color="default-translucent">Default Translucent</button>
                <button data-color="light">Light</button>
                <button data-color="dark">Dark</button>
                <button data-color="dark-translucent">Dark Translucent</button>


— Dave Lasley

On Apr 5, 2017, at 8:53 AM, Nemry, Jonathan <> wrote:

Into the website of Odoo there is a "theme colors" part section that is included into the website editor.
If I want to replace those colors with others: what 's the easiest way to do it?

I've seen that all the source code is into website.editor  and seems that the colorpicker is pretty hard to override.

Is there anyone with a great idea? :)

many thanks in advance!


Nemry Jonathan
Software Engineer

Tel : +352 20 21 10 20 23
GSM : +352 691 50 60 09

Acsone SA, Succursale de Luxembourg
22, Zone industrielle
L-8287 Kehlen, Luxembourg