feat: text and background color in mobile toolbar (#233)

* refactor: move shared code out of desktop

* refactor: fix double exist error and extract color option

* feat: update color icon

* refactor: refactor MobileToolbarItemMenuBtn to be more flexiable

* feat: add textAndBackgroundColorMobileToolbarItem

* chore: dart fix

* refactor: extract MobileToolbarMenuGridDelegate

* chore: update UI parameters

* refactor: delete format color in format_rich_text_style.dart and refactor the code

* chore: remove the bottom line of tabbar

* refactor: set color opitions to be customizable

* chore: add scrollbar in opitions grid view

* test: update code to pass the previous tests

* chore: add Material in testing

* chore: unify text and background default color opitions

* test: add textAndBackgroundColorMobileToolbarItem test

* chore: update AppFlowyEditorLocalizations

* chore: replace string by components' key in tests

* test: add color options widgets tests

* chore: dart fix

* chore: dart format
This commit is contained in:
Yijing Huang 2023-06-25 02:06:52 -05:00 • committed by GitHub
commit 09fd4c8d56
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,7 +2,7 @@
"@@locale": "en",
"bold": "Bold",
"@bold": {},
"bulletedList": "Bulleted list",
"bulletedList": "Bulleted List",
"@bulletedList": {},
"checkbox": "Checkbox",
"@checkbox": {},
@ -24,7 +24,7 @@
"@italic": {},
"link": "Link",
"@link": {},
"numberedList": "Numbered list",
"numberedList": "Numbered List",
"@numberedList": {},
"quote": "Quote",
"@quote": {},
@ -74,6 +74,7 @@
"@backgroundColorPink": {},
"backgroundColorRed": "Red background",
"@backgroundColorRed": {},
"done": "Done",
"tint1": "Tint 1",
"tint2": "Tint 2",
"tint3": "Tint 3",
@ -92,7 +93,11 @@
"lightLightTint7": "Green",
"lightLightTint8": "Aqua",
"lightLightTint9": "Blue",
"textColor": "Text color",
"mobileHeading1": "Heading 1",
"mobileHeading2": "Heading 2",
"mobileHeading3": "Heading 3",
"textColor": "Text Color",
"backgroundColor": "Background Color",
"addYourLink": "Add your link",
"openLink": "Open link",
"copyLink": "Copy link",