forge
Clone
https://git.tahinli.com/Tahinli/forge.git
0 watching0 forksRustAGPL-3.07.1 MiB490f099Tahinli7 hours ago322 commits
| 1 | -- Colour choices per user: the accent and base palettes for the light and the dark theme. The |
| 2 | -- ids are those of forge-web's accent_palette.rs, which decides what exists, so there is no |
| 3 | -- CHECK list here. Applied by store/migrate.rs. |
| 4 | -- |
| 5 | -- `accent` now means the light-theme accent. The dark accent starts as a copy of it, so an |
| 6 | -- existing user sees the same colours in both themes until they choose otherwise. |
| 7 | |
| 8 | users ADD COLUMN accent_dark TEXT NOT NULL DEFAULT 'sage'; |
| 9 | users ADD COLUMN base_light TEXT NOT NULL DEFAULT 'fern'; |
| 10 | users ADD COLUMN base_dark TEXT NOT NULL DEFAULT 'fern'; |
| 11 | |
| 12 | UPDATE users SET accent_dark = accent; |