From 352681b60eda25ff75392cadce0740c795a5d403 Mon Sep 17 00:00:00 2001 From: dab246 Date: Wed, 8 Jan 2025 21:57:09 +0700 Subject: [PATCH] TF-3410 Update icon color & icon size of composer view Signed-off-by: dab246 --- .../extensions/color_extension.dart | 3 + core/lib/utils/html/html_utils.dart | 31 ++++++++-- .../presentation/composer_view_web.dart | 4 +- .../styles/app_bar_composer_widget_style.dart | 2 +- .../recipient_composer_widget_style.dart | 9 +-- .../recipient_tag_item_widget_style.dart | 2 +- .../styles/subject_composer_widget_style.dart | 5 -- .../web/bottom_bar_composer_widget_style.dart | 6 +- .../from_composer_drop_down_widget_style.dart | 6 -- .../widgets/mobile/mobile_editor_widget.dart | 5 +- .../widgets/recipient_composer_widget.dart | 6 +- .../widgets/recipient_tag_item_widget.dart | 2 +- .../widgets/subject_composer_widget.dart | 7 ++- .../widgets/title_composer_widget.dart | 1 - .../web/bottom_bar_composer_widget.dart | 4 +- .../web/desktop_app_bar_composer_widget.dart | 61 +++++++------------ .../web/from_composer_drop_down_widget.dart | 6 +- web/index.html | 1 + 18 files changed, 84 insertions(+), 77 deletions(-) diff --git a/core/lib/presentation/extensions/color_extension.dart b/core/lib/presentation/extensions/color_extension.dart index 6833c4f1c..dcff290df 100644 --- a/core/lib/presentation/extensions/color_extension.dart +++ b/core/lib/presentation/extensions/color_extension.dart @@ -245,6 +245,9 @@ extension AppColor on Color { static const blue700 = Color(0xFF208BFF); static const blue100 = Color(0xFFDFEEFF); static const blue400 = Color(0xFF80BDFF); + static const m3Tertiary = Color(0xFF8C9CAF); + static const m3Neutral70 = Color(0xFFAEAAAE); + static const colorF3F6F9 = Color(0xFFF3F6F9); static const mapGradientColor = [ [Color(0xFF21D4FD), Color(0xFFB721FF)], diff --git a/core/lib/utils/html/html_utils.dart b/core/lib/utils/html/html_utils.dart index 44b62900f..92d41b56b 100644 --- a/core/lib/utils/html/html_utils.dart +++ b/core/lib/utils/html/html_utils.dart @@ -38,10 +38,22 @@ class HtmlUtils { editor.parentNode.replaceChild(newEditor, editor);''', name: 'unregisterDropListener'); - static String customCssStyleHtmlEditor({TextDirection direction = TextDirection.ltr}) { + static String customCssStyleHtmlEditor({ + TextDirection direction = TextDirection.ltr, + bool useDefaultFont = false, + }) { if (PlatformInfo.isWeb) { return '''