mirror of
https://github.com/wekan/wekan.git
synced 2026-11-25 04:49:41 -05:00
Two fixes from feedback that picking clearblue "did not change" and the dropdowns were hard to use: 1) The global theme override now wins EVERYWHERE, including board pages. Before, the <body> autorun suppressed it whenever a board was open (onBoard gate), so changing the color while viewing a board did nothing. Now a set global override is applied regardless of board context, and #header / #header-quick-access (header.jade) and .board-wrapper (boardBody.jade) prefer the global override over the per-board color. Unset it to return to per-board colors. When no global is set, an open board still exposes its own custom colors. 2) The picker no longer uses category/theme dropdowns (colors were invisible). It now shows the actual color SWATCHES with their names, grouped by category, with the category name as a header above each group. The flat/clear color wheels still appear once such a color is selected; custom-capability is derived from the selected color. customTheme.css styles the group labels. Tests updated: themeColorPicker/globalThemeColor guards for grouped swatches and the global-wins-everywhere behaviour.