Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Get Theme' endpoint and Theme loading on Backend #30

Open
7 tasks
MrVintage710 opened this issue Sep 9, 2024 · 0 comments
Open
7 tasks

'Get Theme' endpoint and Theme loading on Backend #30

MrVintage710 opened this issue Sep 9, 2024 · 0 comments
Labels
backend Work that is on the rust backend. enhancement New feature or request good first issue Good for newcomers

Comments

@MrVintage710
Copy link
Collaborator

MrVintage710 commented Sep 9, 2024

Proposed Feature

Add the ability for the backend to automatically load in json files that are stored near the app, and make an endpoint for the front end to get a list of themes.

There are dummy versions of these endpoints as well as the VitruvianTheme type are being added with PR #31. I would recommend waiting for that PR to land, then starting this ticket.

Acceptance Criteria

  • Make sure all features are well documented with JSDoc. Here is a guide for more info.
  • Add all commands to the following file : /src-tauri/src/commands/themes.rs
  • Add the following tauri commands
    • get_current_theme() -> VitruvianTheme gets the current theme selected by the user. If not set, should default to the red theme.
    • set_current_theme(theme : VitruvianTheme) should set the theme and persist it between loads
    • get_available_themes() -> Vec<String> Returns a list of theme names that are available for the frontend to use.
    • get_theme(theme_id : String) -> VitruvianTheme Returns a specific theme based on the theme ID
@MrVintage710 MrVintage710 added enhancement New feature or request backend Work that is on the rust backend. labels Sep 9, 2024
@MrVintage710 MrVintage710 added this to the Character Sheet Menu milestone Sep 9, 2024
@MrVintage710 MrVintage710 added the good first issue Good for newcomers label Sep 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Work that is on the rust backend. enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant