diff --git a/lib/features/mailbox_dashboard/presentation/mailbox_dashboard_view_web.dart b/lib/features/mailbox_dashboard/presentation/mailbox_dashboard_view_web.dart index 9c4c96adc..31c5a86a0 100644 --- a/lib/features/mailbox_dashboard/presentation/mailbox_dashboard_view_web.dart +++ b/lib/features/mailbox_dashboard/presentation/mailbox_dashboard_view_web.dart @@ -396,14 +396,34 @@ class MailboxDashBoardView extends BaseMailboxDashBoardView { ); }), const SizedBox(width: 16), - TMailButtonWidget( - key: const Key('select_all_emails_button'), - text: AppLocalizations.of(context).select_all, - icon: controller.imagePaths.icSelectAll, - borderRadius: 10, - iconSize: 16, - padding: const EdgeInsetsDirectional.symmetric(horizontal: 12, vertical: 8), - onTapActionCallback: controller.selectAllEmailAction, + Tooltip( + message: AppLocalizations.of(context).selectAllMessagesOfThisPage, + child: ElevatedButton.icon( + onPressed: controller.selectAllEmailAction, + icon: SvgPicture.asset( + controller.imagePaths.icSelectAll, + width: 16, + height: 16, + fit: BoxFit.fill, + ), + label: Text( + AppLocalizations.of(context).selectAllMessagesOfThisPage, + maxLines: 1, + overflow: TextOverflow.ellipsis + ), + style: ElevatedButton.styleFrom( + backgroundColor: AppColor.colorButtonHeaderThread, + shadowColor: Colors.transparent, + padding: const EdgeInsetsDirectional.symmetric(horizontal: 12, vertical: 8), + shape: const RoundedRectangleBorder( + borderRadius: BorderRadius.all(Radius.circular(10)), + ), + elevation: 0.0, + foregroundColor: AppColor.colorTextButtonHeaderThread, + maximumSize: const Size.fromWidth(250), + textStyle: const TextStyle(fontSize: 12), + ), + ), ), if (controller.isAbleMarkAllAsRead()) Padding( diff --git a/lib/l10n/intl_ar.arb b/lib/l10n/intl_ar.arb index d86c70184..e67589895 100644 --- a/lib/l10n/intl_ar.arb +++ b/lib/l10n/intl_ar.arb @@ -3048,5 +3048,11 @@ "type": "text", "placeholders_order": [], "placeholders": {} + }, + "selectAllMessagesOfThisPage": "اختر كافة رسائل هذه الصفحة", + "@selectAllMessagesOfThisPage": { + "type": "text", + "placeholders_order": [], + "placeholders": {} } } diff --git a/lib/l10n/intl_en.arb b/lib/l10n/intl_en.arb index 059cd20c8..79dfe21f9 100644 --- a/lib/l10n/intl_en.arb +++ b/lib/l10n/intl_en.arb @@ -3244,5 +3244,11 @@ "type": "text", "placeholders_order": [], "placeholders": {} + }, + "selectAllMessagesOfThisPage": "Select all messages of this page", + "@selectAllMessagesOfThisPage": { + "type": "text", + "placeholders_order": [], + "placeholders": {} } } \ No newline at end of file diff --git a/lib/l10n/intl_fr.arb b/lib/l10n/intl_fr.arb index c8fc94a8b..d44023a5d 100644 --- a/lib/l10n/intl_fr.arb +++ b/lib/l10n/intl_fr.arb @@ -3869,5 +3869,11 @@ "type": "text", "placeholders_order": [], "placeholders": {} + }, + "selectAllMessagesOfThisPage": "Sélectionnez tous les messages de cette page", + "@selectAllMessagesOfThisPage": { + "type": "text", + "placeholders_order": [], + "placeholders": {} } } diff --git a/lib/l10n/intl_it.arb b/lib/l10n/intl_it.arb index 0d0bbab89..40d5a601c 100644 --- a/lib/l10n/intl_it.arb +++ b/lib/l10n/intl_it.arb @@ -2678,5 +2678,11 @@ "type": "text", "placeholders_order": [], "placeholders": {} + }, + "selectAllMessagesOfThisPage": "Seleziona tutti i messaggi di questa pagina", + "@selectAllMessagesOfThisPage": { + "type": "text", + "placeholders_order": [], + "placeholders": {} } } diff --git a/lib/l10n/intl_messages.arb b/lib/l10n/intl_messages.arb index b9e68ffe9..14d61f40a 100644 --- a/lib/l10n/intl_messages.arb +++ b/lib/l10n/intl_messages.arb @@ -1,5 +1,5 @@ { - "@@last_modified": "2024-03-15T11:06:05.333495", + "@@last_modified": "2024-03-25T10:51:29.520399", "initializing_data": "Initializing data...", "@initializing_data": { "type": "text", @@ -3683,5 +3683,11 @@ "type": "text", "placeholders_order": [], "placeholders": {} + }, + "selectAllMessagesOfThisPage": "Select all messages of this page", + "@selectAllMessagesOfThisPage": { + "type": "text", + "placeholders_order": [], + "placeholders": {} } } \ No newline at end of file diff --git a/lib/l10n/intl_ru.arb b/lib/l10n/intl_ru.arb index adfffc5dd..ffe75026a 100644 --- a/lib/l10n/intl_ru.arb +++ b/lib/l10n/intl_ru.arb @@ -3887,5 +3887,11 @@ "type": "text", "placeholders_order": [], "placeholders": {} + }, + "selectAllMessagesOfThisPage": "Выбрать все сообщения на этой странице", + "@selectAllMessagesOfThisPage": { + "type": "text", + "placeholders_order": [], + "placeholders": {} } } diff --git a/lib/l10n/intl_vi.arb b/lib/l10n/intl_vi.arb index 56d2120dd..04b4d1965 100644 --- a/lib/l10n/intl_vi.arb +++ b/lib/l10n/intl_vi.arb @@ -3875,5 +3875,11 @@ "type": "text", "placeholders_order": [], "placeholders": {} + }, + "selectAllMessagesOfThisPage": "Chọn tất cả tin nhắn của trang này", + "@selectAllMessagesOfThisPage": { + "type": "text", + "placeholders_order": [], + "placeholders": {} } } diff --git a/lib/main/localizations/app_localizations.dart b/lib/main/localizations/app_localizations.dart index 76e3303b0..b58d622d2 100644 --- a/lib/main/localizations/app_localizations.dart +++ b/lib/main/localizations/app_localizations.dart @@ -3837,4 +3837,11 @@ class AppLocalizations { 'Always request read receipts with outgoing messages', name: 'emailReadReceiptsToggleDescription'); } + + String get selectAllMessagesOfThisPage { + return Intl.message( + 'Select all messages of this page', + name: 'selectAllMessagesOfThisPage', + ); + } } \ No newline at end of file