Skip to content

fix: dark mode support for mailbox settings UI#2064

Merged
rnwood merged 1 commit intornwood:copilot/fix-order-of-deliver-messagesfrom
paszczus:fix/dark-mode-mailbox-settings
Mar 3, 2026
Merged

fix: dark mode support for mailbox settings UI#2064
rnwood merged 1 commit intornwood:copilot/fix-order-of-deliver-messagesfrom
paszczus:fix/dark-mode-mailbox-settings

Conversation

@paszczus
Copy link
Copy Markdown
Contributor

Summary

We tested PR #2061 (AuthenticatedUsers mailbox property) on our deployment and the functionality works correctly - routing by authenticated user, header filters, and source filters all work as expected.

However, we noticed that the Mailboxes tab in Settings dialog has hardcoded light-mode colors in inline styles, which makes it look broken in dark mode (white cards on dark background, unreadable text).

This PR replaces hardcoded color values with Element Plus CSS variables that automatically adapt to the current theme:

  • #fafafa / #f5f7favar(--el-fill-color-light)
  • #e4e7ed / #dcdfe6var(--el-border-color) / var(--el-border-color-light)
  • #606266 / #909399var(--el-text-color-secondary) / var(--el-text-color-placeholder)
  • #ecf5ffvar(--el-color-primary-light-9) (header filter cards)
  • #f0f9ffvar(--el-color-success-light-9) (source filter cards)
  • #409eff / #67c23avar(--el-color-primary) / var(--el-color-success)

Inline styles were extracted to scoped CSS classes for cleaner code.

Before (dark mode):
Cards appear as white boxes on dark background with unreadable text.

After (dark mode):
Cards properly adapt to the dark theme using Element Plus built-in dark mode variables.

Related

Test plan

  • Verify mailbox cards render correctly in dark mode
  • Verify mailbox cards still render correctly in light mode
  • Verify header filter items (blue accent) visible in both modes
  • Verify source filter items (green accent) visible in both modes
  • Verify hint text and empty state placeholders readable in both modes

Replace hardcoded light-mode colors in mailbox card inline styles
with Element Plus CSS variables that automatically adapt to dark mode.

Affected elements: mailbox cards, header/source filter items,
hint text, and empty state placeholders.
@sonarqubecloud
Copy link
Copy Markdown

@rnwood rnwood changed the base branch from master to copilot/fix-order-of-deliver-messages March 3, 2026 06:27
@rnwood rnwood merged commit e4f87a8 into rnwood:copilot/fix-order-of-deliver-messages Mar 3, 2026
17 of 19 checks passed
rnwood added a commit that referenced this pull request Mar 3, 2026
…enticated user routing (#2061)

* Initial plan

* Add AuthenticatedUsers recipient pattern for flexible mailbox routing

Co-authored-by: rnwood <1327895+rnwood@users.noreply.github.com>

* Update UI and documentation for AuthenticatedUsers pattern

Co-authored-by: rnwood <1327895+rnwood@users.noreply.github.com>

* Add comprehensive tests for AuthenticatedUsers pattern

Co-authored-by: rnwood <1327895+rnwood@users.noreply.github.com>

* Clarify AuthenticatedUsers pattern documentation

Co-authored-by: rnwood <1327895+rnwood@users.noreply.github.com>

* Implement AuthenticatedUsers as mailbox property with comprehensive tests

Co-authored-by: rnwood <1327895+rnwood@users.noreply.github.com>

* Changes before error encountered

Co-authored-by: rnwood <1327895+rnwood@users.noreply.github.com>

* fix: dark mode support for mailbox settings UI (#2064)

Replace hardcoded light-mode colors in mailbox card inline styles
with Element Plus CSS variables that automatically adapt to dark mode.

Affected elements: mailbox cards, header/source filter items,
hint text, and empty state placeholders.

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: rnwood <1327895+rnwood@users.noreply.github.com>
Co-authored-by: paszczus <paszczus@gmail.com>
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.

2 participants