blob: 23b35846bcf50830a4bf7b25acf9e22f3e06c9ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<t t-name="Colorpicker">
<div class="o_colorpicker_widget">
<div class="d-flex justify-content-between align-items-stretch mb-2">
<div class="o_color_pick_area position-relative w-75" t-att-style="widget.options.noTransparency ? 'width: 89%;' : None">
<div class="o_picker_pointer rounded-circle p-1 position-absolute" tabindex="-1"/>
</div>
<div class="o_color_slider position-relative">
<div class="o_slider_pointer" tabindex="-1"/>
</div>
<div class="o_opacity_slider position-relative" t-if="!widget.options.noTransparency">
<div class="o_opacity_pointer" tabindex="-1"/>
</div>
</div>
<div t-if="widget.options.colorPreview" class="o_color_preview mb-1 w-100 p-2"/>
<div class="o_color_picker_inputs d-flex justify-content-between mb-2">
<t t-set="input_classes" t-value="'p-0 border-0 text-center text-monospace bg-transparent text-white'" />
<div class="o_hex_div bg-black-50 px-1 d-flex align-items-baseline">
<input type="text" t-attf-class="o_hex_input {{input_classes}}" data-color-method="hex" size="1"/>
<span class="flex-grow-0 ml-1 text-white-50">hex</span>
</div>
<div class="o_rgba_div bg-black-50 px-1 d-flex align-items-baseline">
<input type="text" t-attf-class="o_red_input {{input_classes}}" data-color-method="rgb" size="1"/>
<input type="text" t-attf-class="o_green_input {{input_classes}}" data-color-method="rgb" size="1"/>
<input type="text" t-attf-class="o_blue_input mr-0 {{input_classes}}" data-color-method="rgb" size="1"/>
<t t-if="!widget.options.noTransparency">
<input type="text" t-attf-class="o_opacity_input {{input_classes}}" data-color-method="opacity" size="1"/>
<span class="flex-grow-0 ml-1 text-white-50">
RGBA
</span>
</t>
<span t-else="" class="flex-grow-0 ml-1 text-white-50">
RGB
</span>
</div>
</div>
</div>
</t>
</templates>
|