Skip to content

Overhaul color-schemes for v5X#1600

Open
Moth-Tolias wants to merge 1 commit into
DFHack:masterfrom
Moth-Tolias:color-schemes-overhaul
Open

Overhaul color-schemes for v5X#1600
Moth-Tolias wants to merge 1 commit into
DFHack:masterfrom
Moth-Tolias:color-schemes-overhaul

Conversation

@Moth-Tolias

Copy link
Copy Markdown
Contributor

Obsoletes #1599.
Cuts out an overwhelming majority of the old script in favour of dfhack-native implementations and a simpler interface. Uses Milo Christiansen's implementation of parsing the color files, because we think it's more elegant.

Removes the in-file help text in favour of the .rst documentation.
Removes registration as a concept.
Stores the default scheme in prefs/color.txt instead of a dedicated file.

Anything that uses this script expecting it to work the same as before will break. But then, v5x broke it anyway, so i think that's fine.
Only really works with the ASCII interface.
We haven't written a changelog entry yet. I wanted to get feedback on this first.

If this looks good to you [barring a changelog entry, and any other changes], we'll move on to season-palette.

Obsoletes DFHack#1599.
Cuts out an overwhelming majority of the old script in favour of dfhack-native implementations and a simpler interface.
Uses Milo Christiansen's implementation of parsing the color files, because we think it's more elegant.

Removes the in-file help text in favour of the .rst documentation.
Removes registration as a concept.
Stores the default scheme in prefs/color.txt instead of a dedicated file.

Anything that uses this script expecting it to work the same as before will break. But then, v5x broke it anyway, so i think that's fine.
Only really works with the ASCII interface.
We haven't written a changelog entry yet.

If this looks good to you [barring a changelog entry, and other changes], we'll move on to season-palette.
@Moth-Tolias
Moth-Tolias force-pushed the color-schemes-overhaul branch from 653a6a7 to 83e5214 Compare July 18, 2026 07:33
@Moth-Tolias

Moth-Tolias commented Jul 18, 2026

Copy link
Copy Markdown
Contributor Author

replaced tabs with spaces, and configured our editor so it won't happen again. whoops!

oh, and we forgot to mention, too. the format of the in-memory scheme is local, as are the functions that take said scheme. but if for some reason people want to edit schemes programmatically - that's something that could be changed, i suppose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant