Skip to content

[FEATURE] Impl serde::Deserialize for theming types that support loading from TOML #854

Open

Description

@electricbrass

Is your feature request related to a problem? Please describe.
I am making an application that has some text that uses colors that come from outside of the palette. I want to support fully customizing the theme, and for everything but that text, I have it load a cursive theme toml file. I've added a section to the main application configuration that loads the remaining colors, but to use serde, I had to wrap the Color type in my own type to implement the traits, wrapping the existing parse method.

Describe the solution you'd like
Since cursive already depends on serde, it would be nice if the serde traits were implemented, so that it would be easier to load cursive types from custom toml configuration files.

Describe alternatives you've considered
I didn't see this originally, but #253 would also be a great solution, and would let me keep all the theming in one file instead of split between the two.

Additional context
Add any other context or screenshots about the feature request here.

Activity

  1. electricbrass commented on Feb 19, 2026

    @electricbrass
    ContributorAuthor

    I see a few TODO: do this with serde? comments on some of the deserialization bits. If this is something you're interested in, I may try making a PR.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions