Skip to content

feat: Add predefined label icons for common torrent categories (#108)#197

Open
ananyaaa66 wants to merge 1 commit intoCCExtractor:mainfrom
ananyaaa66:fix/issue-108-label-icons
Open

feat: Add predefined label icons for common torrent categories (#108)#197
ananyaaa66 wants to merge 1 commit intoCCExtractor:mainfrom
ananyaaa66:fix/issue-108-label-icons

Conversation

@ananyaaa66
Copy link
Copy Markdown

Closes #108

Summary

Adds context-specific icons for predefined torrent label names (video, audio, games, books, software, tv, anime, etc.) in the drawer's Labels section, matching the ruTorrent web interface.

Changes

  • [NEW] label_icon_mapper.dart: Utility mapping 40+ common label names to Material Icons
    • label_tile_widget.dart: Uses getLabelIcon(label) instead of hardcoded Icons.label_important_outline
      Unrecognized custom labels fall back to the default label icon.

…ractor#108)

- Create label_icon_mapper.dart with mappings for video, audio, games, books, software, tv, anime, etc.
- Update LabelTile to use getLabelIcon() for context-specific icons
- Falls back to default label icon for custom/unrecognized labels

Closes CCExtractor#108
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.

Label icons can be added to specific set of predefined labels

1 participant