feat: add per-tag category display options#1336
Open
Sola-ris wants to merge 12 commits intoTagStudioDev:mainfrom
Open
feat: add per-tag category display options#1336Sola-ris wants to merge 12 commits intoTagStudioDev:mainfrom
Sola-ris wants to merge 12 commits intoTagStudioDev:mainfrom
Conversation
Sola-ris
commented
Apr 2, 2026
Comment on lines
+389
to
+398
| def __find_category_tag_widget(panel: BuildTagPanel, index: int = 0) -> TagWidget | None: | ||
| item = panel.category_scroll_layout.itemAt(0).widget().layout().itemAt(index) | ||
| while item is not None: | ||
| if isinstance(item.widget(), TagWidget): | ||
| break | ||
| item = item.widget().layout().itemAt(0) | ||
|
|
||
| if item is not None: | ||
| return item.widget() | ||
| return None |
Contributor
Author
There was a problem hiding this comment.
I'm not really sure if this is the best way to test the individual TagPanels, especially in regards to doing the MVC split, but it's the best I could think of
|
|
||
|  | ||
|
|
||
| If you don't want a tag to appear in one, more, or even all the applicable categories, simply uncheck the category in the "Edit Tag" panel. |
Contributor
Author
There was a problem hiding this comment.
I Haven't added an example image, since it would look inconsistent, with all the other ones being taken on macOS which I don't have access to
| self.root_layout.addWidget(self.category_widget) | ||
| self.root_layout.addWidget(self.color_widget) | ||
| self.root_layout.addWidget(QLabel("<h3>Properties</h3>")) | ||
| self.root_layout.addWidget(QLabel(f"<h3>{Translations['tag.properties']}</h3>")) |
Contributor
Author
There was a problem hiding this comment.
Drive-by fix for a missing translation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add per-tag category display options
Resolves #1335
By default, tags are displayed in all inherited categories, leaving the current behavior unchanged.
This extends the
BuildTagPanelwith the options to exclude a tag from being displayed in one, multiple or all possible categories.The exclusions are stored in the new
category_exclusionsjoin table.Also bumps the database version to 104.
Demo
2026-04-02.21-12-53.mp4
Tasks Completed