Просмотр исходного кода

fix: update the color of the selection menu item

Lucas.Xu 2 лет назад
Родитель
Сommit
84ea888c73
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      frontend/app_flowy/lib/plugins/document/editor_styles.dart

+ 4 - 1
frontend/app_flowy/lib/plugins/document/editor_styles.dart

@@ -23,7 +23,10 @@ EditorStyle customEditorTheme(BuildContext context) {
       fontFamily: 'poppins-Bold',
     ),
     backgroundColor: Theme.of(context).colorScheme.surface,
-    selectionMenuItemSelectedIconColor: Theme.of(context).colorScheme.primary,
+    selectionMenuItemSelectedIconColor:
+        Theme.of(context).textTheme.bodyMedium?.color,
+    selectionMenuItemSelectedTextColor:
+        Theme.of(context).textTheme.bodyMedium?.color,
   );
   return editorStyle;
 }