Skip to content

feat: Make chat bar colors customizable#7

Closed
Brktrlw wants to merge 1 commit into
mainfrom
customizable-chat-colors
Closed

feat: Make chat bar colors customizable#7
Brktrlw wants to merge 1 commit into
mainfrom
customizable-chat-colors

Conversation

@Brktrlw

@Brktrlw Brktrlw commented May 22, 2025

Copy link
Copy Markdown
Owner

This commit introduces the ability to customize the chat bar colors.

The following new settings have been added to ADMIN_COLLABORATOR_OPTIONS:

  • CHAT_PRIMARY_COLOR
  • CHAT_PRIMARY_HOVER_COLOR
  • CHAT_BACKGROUND_COLOR
  • CHAT_TEXT_COLOR
  • CHAT_BORDER_COLOR

You can override these settings in your settings.py to change the appearance of the chat bar.

The implementation involves:

  • Adding the new color settings to django_admin_collaborator/defaults.py.
  • Creating a template tag load_chat_colors that generates CSS overrides.
  • Injecting these CSS overrides into the admin pages via the CollaborativeAdminMixin.
  • Adding documentation for the new feature in docs/usage.rst.
  • Adding unit tests to verify the functionality.

This commit introduces the ability to customize the chat bar colors.

The following new settings have been added to `ADMIN_COLLABORATOR_OPTIONS`:
- `CHAT_PRIMARY_COLOR`
- `CHAT_PRIMARY_HOVER_COLOR`
- `CHAT_BACKGROUND_COLOR`
- `CHAT_TEXT_COLOR`
- `CHAT_BORDER_COLOR`

You can override these settings in your `settings.py` to change the
appearance of the chat bar.

The implementation involves:
- Adding the new color settings to `django_admin_collaborator/defaults.py`.
- Creating a template tag `load_chat_colors` that generates CSS overrides.
- Injecting these CSS overrides into the admin pages via the `CollaborativeAdminMixin`.
- Adding documentation for the new feature in `docs/usage.rst`.
- Adding unit tests to verify the functionality.
@Brktrlw Brktrlw closed this May 22, 2025
@Brktrlw Brktrlw deleted the customizable-chat-colors branch May 22, 2025 17:24
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.

1 participant