TF-2520 Add print icon in email view

Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
dab246
2024-02-28 08:50:34 +07:00
committed by Dat H. Pham
parent f35a6620d5
commit a5446b8417
6 changed files with 36 additions and 2 deletions
+8
View File
@@ -0,0 +1,8 @@
<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
d="M20.337 11.65C19.7775 11.65 19.324 12.1036 19.324 12.6631C19.324 13.2226 19.7775 13.6761 20.337 13.6761C20.8965 13.6761 21.3501 13.2226 21.3501 12.6631C21.3501 12.1036 20.8965 11.65 20.337 11.65Z"
fill="#007AFF" />
<path fill-rule="evenodd" clip-rule="evenodd"
d="M8.00048 8C8.00442 6.43145 8.04107 5.57911 8.38148 4.91103C8.71703 4.25247 9.25247 3.71703 9.91103 3.38148C10.6597 3 11.6398 3 13.6 3H14.4C16.3602 3 17.3403 3 18.089 3.38148C18.7475 3.71703 19.283 4.25247 19.6185 4.91103C19.9589 5.57911 19.9956 6.43145 19.9995 8C21.5684 8.00394 22.4208 8.04104 23.089 8.38148C23.7475 8.71703 24.283 9.25247 24.6185 9.91103C25 10.6597 25 11.6398 25 13.6V14.4C25 16.3602 25 17.3403 24.6185 18.089C24.283 18.7475 23.7475 19.283 23.089 19.6185C22.421 19.9589 21.5688 19.9956 20.0007 19.9995C19.9967 21.5684 19.9601 22.4208 19.6197 23.089C19.2841 23.7475 18.7487 24.283 18.0901 24.6185C17.3414 25 16.3613 25 14.4011 25H13.6011C11.6409 25 10.6609 25 9.91216 24.6185C9.2536 24.283 8.71816 23.7475 8.38261 23.089C8.04217 22.4208 8.00555 21.5684 8.00161 19.9995C6.43203 19.9956 5.57934 19.959 4.91103 19.6185C4.25247 19.283 3.71703 18.7475 3.38148 18.089C3 17.3403 3 16.3602 3 14.4V13.6C3 11.6398 3 10.6597 3.38148 9.91103C3.71703 9.25247 4.25247 8.71703 4.91103 8.38148C5.57918 8.04104 6.43162 8.00394 8.00048 8ZM13.6 5H14.4C15.4131 5 16.0526 5.00156 16.5359 5.04104C16.9959 5.07862 17.1356 5.14035 17.181 5.16349C17.4632 5.3073 17.6927 5.53677 17.8365 5.81901C17.8596 5.86442 17.9214 6.00412 17.959 6.46407C17.99 6.84417 17.9976 7.32091 17.9994 8H10.0006C10.0024 7.32091 10.01 6.84417 10.041 6.46407C10.0786 6.00412 10.1404 5.86442 10.1635 5.81901C10.3073 5.53677 10.5368 5.3073 10.819 5.16349C10.8644 5.14035 11.0041 5.07862 11.4641 5.04104C11.9474 5.00156 12.5869 5 13.6 5ZM21.5359 17.959C21.156 17.99 20.6796 17.9976 20.0011 17.9994V17.1C20.0011 16.5399 20.0011 16.2599 19.8921 16.046C19.7963 15.8578 19.6433 15.7049 19.4551 15.609C19.2412 15.5 18.9612 15.5 18.4011 15.5H9.60113C9.04108 15.5 8.76105 15.5 8.54714 15.609C8.35898 15.7049 8.206 15.8578 8.11012 16.046C8.00113 16.2599 8.00113 16.5399 8.00113 17.1V17.9994C7.32144 17.9976 6.84438 17.99 6.46407 17.959C6.00412 17.9214 5.86442 17.8596 5.81901 17.8365C5.53677 17.6927 5.3073 17.4632 5.16349 17.181C5.14035 17.1356 5.07862 16.9959 5.04104 16.5359C5.00156 16.0526 5 15.4131 5 14.4V13.6C5 12.5869 5.00156 11.9474 5.04104 11.4641C5.07862 11.0041 5.14035 10.8644 5.16349 10.819C5.3073 10.5368 5.53677 10.3073 5.81901 10.1635C5.86442 10.1404 6.00412 10.0786 6.46407 10.041C6.94737 10.0016 7.58691 10 8.6 10H19.4C20.4131 10 21.0526 10.0016 21.5359 10.041C21.9959 10.0786 22.1356 10.1404 22.181 10.1635C22.4632 10.3073 22.6927 10.5368 22.8365 10.819C22.8596 10.8644 22.9214 11.0041 22.959 11.4641C22.9984 11.9474 23 12.5869 23 13.6V14.4C23 15.4131 22.9984 16.0526 22.959 16.5359C22.9214 16.9959 22.8596 17.1356 22.8365 17.181C22.6927 17.4632 22.4632 17.6927 22.181 17.8365C22.1356 17.8596 21.9959 17.9214 21.5359 17.959ZM10.0011 17.5V19.4C10.0011 20.4131 10.0027 21.0526 10.0422 21.5359C10.0798 21.9959 10.1415 22.1356 10.1646 22.181C10.3084 22.4632 10.5379 22.6927 10.8201 22.8365C10.8656 22.8596 11.0052 22.9214 11.4652 22.959C11.9485 22.9984 12.588 23 13.6011 23H14.4011C15.4142 23 16.0538 22.9984 16.5371 22.959C16.997 22.9214 17.1367 22.8596 17.1821 22.8365C17.4644 22.6927 17.6938 22.4632 17.8376 22.181C17.8608 22.1356 17.9225 21.9959 17.9601 21.5359C17.9996 21.0526 18.0011 20.4131 18.0011 19.4V17.5H10.0011Z"
fill="#007AFF" />
</svg>

After

Width:  |  Height:  |  Size: 3.5 KiB

@@ -209,6 +209,7 @@ class ImagePaths {
String get icFilterSB => _getImagePath('ic_filter_sb.svg');
String get icUnsubscribe => _getImagePath('ic_unsubscribe.svg');
String get icRecoverDeletedMessages => _getImagePath('ic_recover_deleted_messages.svg');
String get icPrinter => _getImagePath('ic_printer.svg');
String _getImagePath(String imageName) {
return AssetsPaths.images + imageName;
@@ -100,6 +100,18 @@ class EmailViewAppBarWidget extends StatelessWidget {
)
),
const SizedBox(width: EmailViewAppBarWidgetStyles.space),
TMailButtonWidget.fromIcon(
icon: _imagePaths.icPrinter,
iconSize: EmailViewAppBarWidgetStyles.deleteButtonIconSize,
backgroundColor: Colors.transparent,
padding: EmailViewAppBarWidgetStyles.buttonPadding,
tooltipMessage: AppLocalizations.of(context).printAll,
onTapActionCallback: () => onEmailActionClick?.call(
presentationEmail,
EmailActionType.printAll
)
),
const SizedBox(width: EmailViewAppBarWidgetStyles.space),
TMailButtonWidget.fromIcon(
icon: _imagePaths.icDeleteComposer,
iconSize: EmailViewAppBarWidgetStyles.deleteButtonIconSize,
+7 -1
View File
@@ -1,5 +1,5 @@
{
"@@last_modified": "2024-02-29T15:17:25.888801",
"@@last_modified": "2024-02-28T08:48:33.734928",
"initializing_data": "Initializing data...",
"@initializing_data": {
"type": "text",
@@ -3653,5 +3653,11 @@
"type": "text",
"placeholders_order": [],
"placeholders": {}
},
"printAll": "Print all",
"@printAll": {
"type": "text",
"placeholders_order": [],
"placeholders": {}
}
}
@@ -3806,4 +3806,10 @@ class AppLocalizations {
'External domain',
name: 'externalDomain');
}
String get printAll {
return Intl.message(
'Print all',
name: 'printAll');
}
}
+2 -1
View File
@@ -26,5 +26,6 @@ enum EmailActionType {
createRule,
unsubscribe,
composeFromUnsubscribeMailtoLink,
archiveMessage
archiveMessage,
printAll
}