How naru-kami/backgroundmanager-plugin works
Background Manager is a single-file Discord client plugin for managing theme background images. Users open its popup, add images, select a background, and configure slideshow and transition behavior. The plugin also persists images in IndexedDB and exposes CSS variables for themes, including an optional accent color derived from the active image. The source is one large monolithic file, so the component boundaries below are logical responsibilities, not separate modules; links rely on README statements or the shown source excerpts.
Main entry points: BackgroundManager.plugin.js Background selection
Components 12
Plugin interface
- Background Manager
BackgroundManager.plugin.js - Image gallery popup
BackgroundManager.plugin.js - Image adding
BackgroundManager.plugin.js - Plugin settings
BackgroundManager.plugin.js
Background behavior
- Background selection
BackgroundManager.plugin.js - Slideshow and shuffle
BackgroundManager.plugin.js - Image transitions
BackgroundManager.plugin.js
Image storage
- IndexedDB image store
BackgroundManager.plugin.js
Theme integration
- Compatible Discord theme
- Exported CSS variables
BackgroundManager.plugin.js - Image accent color
BackgroundManager.plugin.js
Other components
- Discord user
Connections 16
- Discord user → Image gallery popup: opens popup
README.md - Image gallery popup → Image adding: adds images
README.md - Image gallery popup → Background selection: selects image
README.md - Discord user → Plugin settings: adjusts timings
README.md - Image adding → IndexedDB image store: stores images
README.md - Background selection → IndexedDB image store: persists selection
BackgroundManager.plugin.js - Plugin settings → Slideshow and shuffle: configures
README.md - Plugin settings → Image transitions: configures
README.md - Slideshow and shuffle → Background selection: switches images
BackgroundManager.plugin.js - Background selection → Image transitions: animates swap
README.md - Background selection → Exported CSS variables: updates image URL
README.md - Background selection → Image accent color: provides active image
README.md - Image accent color → Exported CSS variables: exports accent color
README.md - Exported CSS variables → Compatible Discord theme: supplies CSS values
README.md - Background Manager → Image gallery popup: provides popup
BackgroundManager.plugin.js - Background Manager → IndexedDB image store: opens database
BackgroundManager.plugin.js