Add HalkyonPickerPaletteColor enum #3

Merged
raisondetredev merged 1 commit from refs/pull/3/head into main 2026-04-28 15:01:00 +02:00
raisondetredev commented 2026-04-28 15:00:34 +02:00 (Migrated from codeberg.org)

Provides a typed identifier for the 20 colors in HalkyonPickerPalette.
Used by features that persist a user-picked color (e.g. Halkyon Learn's
studysets.color_name).

The enum lives in the same file as HalkyonPickerPalette so any change
to one is visible alongside the other. A test exhaustively maps each
enum value to a (background, outline) palette pair via a sealed
switch, providing compile-time drift prevention.

Signed-off-by: Tizian 「ティツィアーン」 raisondetredev@pm.me

Provides a typed identifier for the 20 colors in HalkyonPickerPalette. Used by features that persist a user-picked color (e.g. Halkyon Learn's studysets.color_name). The enum lives in the same file as HalkyonPickerPalette so any change to one is visible alongside the other. A test exhaustively maps each enum value to a (background, outline) palette pair via a sealed switch, providing compile-time drift prevention. Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
project-halkyon/halkyon-shared!3
No description provided.