From 0bc63a6528542b8b5a821dbf00d3a7bdb0732616 Mon Sep 17 00:00:00 2001 From: abhix4 Date: Tue, 17 Jun 2025 07:34:35 +0530 Subject: [PATCH] Add opacity to icons and fix separator colors in mail context menu (#1296) --- .../components/context/thread-context.tsx | 46 +++++++++---------- apps/mail/components/mail/mail.tsx | 2 +- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/apps/mail/components/context/thread-context.tsx b/apps/mail/components/context/thread-context.tsx index 63000972b..7485bde50 100644 --- a/apps/mail/components/context/thread-context.tsx +++ b/apps/mail/components/context/thread-context.tsx @@ -255,21 +255,21 @@ export function ThreadContextMenu({ { id: 'reply', label: t('common.mail.reply'), - icon: , + icon: , action: handleThreadReply, disabled: false, }, { id: 'reply-all', label: t('common.mail.replyAll'), - icon: , + icon: , action: handleThreadReplyAll, disabled: false, }, { id: 'forward', label: t('common.mail.forward'), - icon: , + icon: , action: handleThreadForward, disabled: false, }, @@ -299,14 +299,14 @@ export function ThreadContextMenu({ { id: 'move-to-inbox', label: t('common.mail.moveToInbox'), - icon: , + icon: , action: handleMove(LABELS.SPAM, LABELS.INBOX), disabled: false, }, { id: 'move-to-bin', label: t('common.mail.moveToBin'), - icon: , + icon: , action: handleMove(LABELS.SPAM, LABELS.TRASH), disabled: false, }, @@ -318,14 +318,14 @@ export function ThreadContextMenu({ { id: 'restore-from-bin', label: t('common.mail.restoreFromBin'), - icon: , + icon: , action: handleMove(LABELS.TRASH, LABELS.INBOX), disabled: false, }, { id: 'delete-from-bin', label: t('common.mail.deleteFromBin'), - icon: , + icon: , action: handleDelete(), disabled: true, }, @@ -337,14 +337,14 @@ export function ThreadContextMenu({ { id: 'move-to-inbox', label: t('common.mail.unarchive'), - icon: , + icon: , action: handleMove('', LABELS.INBOX), disabled: false, }, { id: 'move-to-bin', label: t('common.mail.moveToBin'), - icon: , + icon: , action: handleMove('', LABELS.TRASH), disabled: false, }, @@ -356,14 +356,14 @@ export function ThreadContextMenu({ { id: 'archive', label: t('common.mail.archive'), - icon: , + icon: , action: handleMove(LABELS.SENT, ''), disabled: false, }, { id: 'move-to-bin', label: t('common.mail.moveToBin'), - icon: , + icon: , action: handleMove(LABELS.SENT, LABELS.TRASH), disabled: false, }, @@ -374,21 +374,21 @@ export function ThreadContextMenu({ { id: 'archive', label: t('common.mail.archive'), - icon: , + icon: , action: handleMove(LABELS.INBOX, ''), disabled: false, }, { id: 'move-to-spam', label: t('common.mail.moveToSpam'), - icon: , + icon: , action: handleMove(LABELS.INBOX, LABELS.SPAM), disabled: !isInbox, }, { id: 'move-to-bin', label: t('common.mail.moveToBin'), - icon: , + icon: , action: handleMove(LABELS.INBOX, LABELS.TRASH), disabled: false, }, @@ -402,7 +402,7 @@ export function ThreadContextMenu({ icon: !isUnread ? ( ) : ( - + ), action: handleReadUnread, disabled: false, @@ -410,16 +410,16 @@ export function ThreadContextMenu({ { id: 'toggle-important', label: isImportant ? t('common.mail.removeFromImportant') : t('common.mail.markAsImportant'), - icon: , + icon: , action: handleToggleImportant, }, { id: 'favorite', label: isStarred ? t('common.mail.removeFavorite') : t('common.mail.addFavorite'), icon: isStarred ? ( - + ) : ( - + ), action: handleFavorites, }, @@ -446,16 +446,16 @@ export function ThreadContextMenu({ {children} e.preventDefault()} > {primaryActions.map(renderAction)} - + - + {t('common.mail.labels')} @@ -463,11 +463,11 @@ export function ThreadContextMenu({ - + {getActions().map(renderAction as any)} - + {otherActions.map(renderAction)} diff --git a/apps/mail/components/mail/mail.tsx b/apps/mail/components/mail/mail.tsx index bd365722b..8435b8a91 100644 --- a/apps/mail/components/mail/mail.tsx +++ b/apps/mail/components/mail/mail.tsx @@ -559,7 +559,7 @@ export function MailLayout() {