mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-04-24 22:57:12 -04:00
fix: transparent color should be treated as a highlight color
This commit is contained in:
parent
d75645c4bc
commit
04e14c6bba
1 changed files with 3 additions and 1 deletions
|
@ -255,7 +255,9 @@ List<ToolbarItem> defaultToolbarItems = [
|
||||||
highlightCallback: (editorState) => _allSatisfy(
|
highlightCallback: (editorState) => _allSatisfy(
|
||||||
editorState,
|
editorState,
|
||||||
BuiltInAttributeKey.backgroundColor,
|
BuiltInAttributeKey.backgroundColor,
|
||||||
(value) => value != null,
|
(value) {
|
||||||
|
return value != null && value != '0x00000000'; // transparent color;
|
||||||
|
},
|
||||||
),
|
),
|
||||||
handler: (editorState, context) => formatHighlight(
|
handler: (editorState, context) => formatHighlight(
|
||||||
editorState,
|
editorState,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue