mirror of
https://github.com/wekan/wekan.git
synced 2026-11-25 04:49:41 -05:00
Feedback fixes to the Select Color picker:
- Apply IMMEDIATELY on clicking a swatch (and when a custom-color wheel is
committed) via a shared applySelection(); removed the Save button/handler.
- Category titles (Flat/Clear/Dark/Special) are left-aligned and clear: both,
so they drop below the previous group swatches (which float: inline-start)
instead of the 2nd/3rd/4th title sitting mid-row.
- Remove the empty band above the first (Flat) title (first-child margin-top:0)
and tighten the Default row.
- Member Settings Change Color popup now has a header: added changeColorPopup-title
("Change Color" / fi "Vaihda väri"), matching Board Settings.
Tests updated in tests/themeColorPicker.test.cjs.
34 lines
1.4 KiB
Plaintext
34 lines
1.4 KiB
Plaintext
//- Shared "Select Color" picker (docs/Theme/Theme.md), used by both Board Settings
|
|
and Member Settings. Colors are shown as VISIBLE swatches grouped by category, with
|
|
the category name as a header above each group; the native color wheel(s) appear
|
|
for the flat (1) / clear (2) categories once such a color is selected. `data.scope`
|
|
is 'board' or 'global'.
|
|
template(name="themeColorPicker")
|
|
form.theme-color-picker.edit-label
|
|
if isGlobal
|
|
ul.pop-over-list
|
|
li(class="{{#if isNoneSelected}}active{{/if}}")
|
|
a.js-theme-none
|
|
i.fa.fa-ban
|
|
| {{_ 'theme-default'}}
|
|
if isNoneSelected
|
|
i.fa.fa-check
|
|
each themeGroups
|
|
.theme-category-group
|
|
.theme-category-label {{label}}
|
|
.board-backgrounds-list.clearfix
|
|
each colors
|
|
.board-background-select.js-select-theme(data-color="{{name}}")
|
|
span.background-box(class="board-color-{{name}}")
|
|
span {{name}}
|
|
if selected
|
|
i.fa.fa-check
|
|
if showCustom
|
|
.color-wheel-wrap
|
|
label {{_ 'custom-color'}}
|
|
each customWheels
|
|
input.js-theme-wheel(type="color" data-index="{{index}}" value="{{value}}" title="{{_ 'custom-color'}}")
|
|
.theme-preview
|
|
span.background-box(class="{{previewClass}}" style="{{previewStyle}}")
|
|
span {{_ 'preview'}}
|