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

feat(ui)!: user-created tag colors #801

Merged
merged 17 commits into from
Feb 17, 2025
Merged

feat(ui)!: user-created tag colors #801

merged 17 commits into from
Feb 17, 2025

Conversation

CyanVoxel
Copy link
Member

@CyanVoxel CyanVoxel commented Feb 15, 2025

Summary

This PR adds the ability for users to create custom tag colors and groups (namespaces). Tag colors consist of a name, a primary color, and an optional secondary color for borders and text.

This PR also adds three new shade colors: Burgundy, Dark Teal, and Dark Lavender.

Creating Colors

In order to create custom colors, you must first create a new namespace group:
Screenshot 2025-02-16 at 17 33 35
From there, click the "+" button in the new namespace section to create new colors!
Screenshot 2025-02-16 at 17 34 22

Tag colors are created and edited within the new "Manage Tag Colors" window. While built-in colors are immutable, users can create and manage new colors by clicking the "New Namespace" button.
Screenshot 2025-02-16 at 17 32 56

Database Changes

This PR adds an additional column to the tag_colors table and thus bumps the DB_VERSION to 8. Libraries created with this version of TagStudio can still be opened in any existing v9.5.0 pre-release version, however the behavior of custom color borders will not be identical to the behavior in this PR. Otherwise it should still be possible to use any custom colors created in this version in those earlier pre-releases.


Closes #264

@CyanVoxel CyanVoxel added Type: Enhancement New feature or request Type: UI/UX User interface and/or user experience Priority: High An important issue requiring attention labels Feb 15, 2025
@CyanVoxel CyanVoxel added this to the Alpha v9.5 (Post-SQL) milestone Feb 15, 2025
The secondary color now acts as only the text color by default, with the new `color_border` bool serving to optionally restore the previous text + colored border behavior.
@CyanVoxel CyanVoxel added TagStudio: Library Relating to the TagStudio library system TagStudio: Tags Relating to the TagStudio tag system labels Feb 16, 2025
@CyanVoxel CyanVoxel changed the title feat: user-created tag colors feat(ui)!: user-created tag colors Feb 16, 2025
@CyanVoxel CyanVoxel marked this pull request as ready for review February 17, 2025 01:59
@CyanVoxel CyanVoxel added Status: Mergeable The code is ready to be merged and removed Status: Mergeable The code is ready to be merged labels Feb 17, 2025
@CyanVoxel CyanVoxel added the Status: Mergeable The code is ready to be merged label Feb 17, 2025
@CyanVoxel CyanVoxel merged commit 28de21a into main Feb 17, 2025
10 checks passed
@CyanVoxel CyanVoxel deleted the user-colors branch February 17, 2025 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: High An important issue requiring attention Status: Mergeable The code is ready to be merged TagStudio: Library Relating to the TagStudio library system TagStudio: Tags Relating to the TagStudio tag system Type: Enhancement New feature or request Type: UI/UX User interface and/or user experience
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

[Feature Request] Hex/RGB Color Values for Tags
1 participant