Files
wekan/docs/Features/Swimlanes/Select-Color.md
T
Lauri Ojansivu 7e1f9e89eb Docs: every feature topic in one folder under docs/Features, each with README.md as its main page.
- The General/ level is gone: its 109 files moved up into the folders of the
  same name, and its topic table is the "Shared topics" section of
  Features.md.
- Accessibility is one folder, docs/Features/Accessibility/, with the Admin
  Panel's accessibility page in it.
- Every folder's main page is README.md (110 X/X.md pages renamed with git mv,
  five merged with an existing README.md, 26 index pages added for folders
  that had none), so a folder opened on GitHub shows its page.
- The 73 "# Moved" forwarding pages are deleted, with the folders that held
  only them; every link that went to one goes to its final page.
- docs/Features/README.md has the website's "Features in WeKan" overview,
  each feature linking to its page here.

1,129 Markdown links in 262 files and 352 doc paths in code, tests, compose,
snap and release files follow. tests/docsFeaturesLayout.test.cjs fails when
General/ or a "# Moved" page comes back, a folder has no README.md, or a
relative link in the docs or README.md does not resolve.

Thanks to xet7 !
2026-11-24 20:02:06 +02:00

5.5 KiB

Swimlane menu / Select Color

What it is

Swimlane menu (☰ in the swimlane header) → Select Color opens Choose a color (setSwimlaneColorPopup in client/components/swimlanes/swimlaneHeader.jade). It gives a swimlane's header a colour, so lanes for different teams or kinds of work can be told apart at a glance. Besides the named palette colours, any colour can be picked from the browser's colour wheel, and the header text is then made readable on it automatically.

Read more

How to use it

  1. Open the board in the Swimlanes view.
  2. Click ☰ (Swimlane Actions) in the swimlane header.
  3. Under Appearance, choose Select Color. The popup Choose a color opens.
  4. Click one of the palette colours (the current one has a check mark), or pick any colour with Custom color.
  5. Click Save. To take the colour away again, open the popup and click Remove.

Who sees it

Only a board admin. The swimlane menu itself is shown to a board member who is not Comment only, Read only, Read assigned only or Worker.

The popup

Control What it does
Palette picks one of the named colours (SWIMLANE_COLORS, models/metadata/colors.js); the current one has a check mark
Custom color the browser's colour wheel; the chosen #rrggbb value is kept as a custom colour (#5514)
Save saves the chosen colour
Remove removes the swimlane's colour

How the numbers are calculated

  • The palette has 25 named colours, the ALLOWED_COLORS of config/const.js (white, green, yellow, orange, red, purple, blue, sky, lime, pink, black, silver, peachpuff, crimson, plum, darkgreen, slateblue, magenta, gold, navy, gray, saddlebrown, paleturquoise, mistyrose, indigo).
  • A custom colour must be a full six-digit #rrggbb hex value (isHexColor in models/lib/contrastColor.js).
  • The text colour on a custom colour is contrastText() in the same file: each sRGB channel c = value / 255 is linearized (c / 12.92 when c <= 0.03928, otherwise ((c + 0.055) / 1.055) ^ 2.4), the relative luminance is 0.2126 R + 0.7152 G + 0.0722 B, and the text is black (#000000) when the luminance is above 0.179, otherwise white (#ffffff). 0.179 is the luminance at which black and white text have the same WCAG contrast ratio.

How it works in WeKan

Unlike List menu / Set Color there is no option for cards to follow the swimlane's colour.

Commits