Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

chore: use page icon instead of document icon (#3952)

Richard Shiue19d9e7717ced
diff --git a/frontend/appflowy_flutter/lib/mobile/presentation/bottom_sheet/bottom_sheet_add_new_page.dart b/frontend/appflowy_flutter/lib/mobile/presentation/bottom_sheet/bottom_sheet_add_new_page.dart
index a89cf44f7b..d9c5e7c1e5 100644
--- a/frontend/appflowy_flutter/lib/mobile/presentation/bottom_sheet/bottom_sheet_add_new_page.dart
+++ b/frontend/appflowy_flutter/lib/mobile/presentation/bottom_sheet/bottom_sheet_add_new_page.dart
@@ -25,7 +25,7 @@ class AddNewPageWidgetBottomSheet extends StatelessWidget {
children: [
Expanded(
child: BottomSheetActionWidget(
- svg: FlowySvgs.documents_s,
+ svg: FlowySvgs.document_s,
text: LocaleKeys.document_menuName.tr(),
onTap: () => onAction(ViewLayoutPB.Document),
),
diff --git a/frontend/appflowy_flutter/lib/mobile/presentation/home/mobile_home_trash_page.dart b/frontend/appflowy_flutter/lib/mobile/presentation/home/mobile_home_trash_page.dart
index 569e50eb8c..ecd79c85f9 100644
--- a/frontend/appflowy_flutter/lib/mobile/presentation/home/mobile_home_trash_page.dart
+++ b/frontend/appflowy_flutter/lib/mobile/presentation/home/mobile_home_trash_page.dart
@@ -162,7 +162,7 @@ class _DeletedFilesListView extends StatelessWidget {
child: ListTile(
// TODO(Yijing): implement file type after TrashPB has file type
leading: FlowySvg(
- FlowySvgs.documents_s,
+ FlowySvgs.document_s,
size: const Size.square(24),
color: theme.colorScheme.onSurface,
),
diff --git a/frontend/appflowy_flutter/lib/plugins/document/document.dart b/frontend/appflowy_flutter/lib/plugins/document/document.dart
index 23b4ae88b8..bc0b6fe2eb 100644
--- a/frontend/appflowy_flutter/lib/plugins/document/document.dart
+++ b/frontend/appflowy_flutter/lib/plugins/document/document.dart
@@ -30,7 +30,7 @@ class DocumentPluginBuilder extends PluginBuilder {
String get menuName => LocaleKeys.document_menuName.tr();
@override
- FlowySvgData get icon => FlowySvgs.documents_s;
+ FlowySvgData get icon => FlowySvgs.document_s;
@override
PluginType get pluginType => PluginType.editor;
diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/database/referenced_database_menu_item.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/database/referenced_database_menu_item.dart
index 976a0186dd..5c7ca42d3f 100644
--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/database/referenced_database_menu_item.dart
+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/database/referenced_database_menu_item.dart
@@ -12,7 +12,7 @@ import 'package:flutter/material.dart';
SelectionMenuItem referencedDocumentMenuItem = SelectionMenuItem(
name: LocaleKeys.document_plugins_referencedDocument.tr(),
icon: (editorState, onSelected, style) => SelectableSvgWidget(
- data: FlowySvgs.documents_s,
+ data: FlowySvgs.document_s,
isSelected: onSelected,
style: style,
),
diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/custom_cover_picker.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/custom_cover_picker.dart
index 3dade8ae1a..1738acf4c1 100644
--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/custom_cover_picker.dart
+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/custom_cover_picker.dart
@@ -243,7 +243,7 @@ class _CoverImagePreviewWidgetState extends State<CoverImagePreviewWidget> {
},
useIntrinsicWidth: true,
leftIcon: const FlowySvg(
- FlowySvgs.page_s,
+ FlowySvgs.document_s,
size: Size(20, 20),
),
text: FlowyText(
diff --git a/frontend/appflowy_flutter/lib/workspace/application/view/view_ext.dart b/frontend/appflowy_flutter/lib/workspace/application/view/view_ext.dart
index 6958eadd99..0cd995847b 100644
--- a/frontend/appflowy_flutter/lib/workspace/application/view/view_ext.dart
+++ b/frontend/appflowy_flutter/lib/workspace/application/view/view_ext.dart
@@ -40,7 +40,7 @@ extension FlowyPluginExtension on FlowyPlugin {
extension ViewExtension on ViewPB {
Widget renderThumbnail({Color? iconColor}) {
- const Widget widget = FlowySvg(FlowySvgs.page_s);
+ const Widget widget = FlowySvg(FlowySvgs.document_s);
return widget;
}
@@ -50,8 +50,8 @@ extension ViewExtension on ViewPB {
ViewLayoutPB.Board => FlowySvgs.board_s,
ViewLayoutPB.Calendar => FlowySvgs.date_s,
ViewLayoutPB.Grid => FlowySvgs.grid_s,
- ViewLayoutPB.Document => FlowySvgs.documents_s,
- _ => FlowySvgs.documents_s,
+ ViewLayoutPB.Document => FlowySvgs.document_s,
+ _ => FlowySvgs.document_s,
},
);
}
@@ -139,7 +139,7 @@ extension ViewLayoutExtension on ViewLayoutPB {
case ViewLayoutPB.Calendar:
return FlowySvgs.date_s;
case ViewLayoutPB.Document:
- return FlowySvgs.documents_s;
+ return FlowySvgs.document_s;
default:
throw Exception('Unknown layout type');
}
diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/import/import_type.dart b/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/import/import_type.dart
index 86a2797f1a..3728cbee7b 100644
--- a/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/import/import_type.dart
+++ b/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/import/import_type.dart
@@ -31,7 +31,7 @@ enum ImportType {
final FlowySvgData svg;
switch (this) {
case ImportType.historyDatabase:
- svg = FlowySvgs.documents_s;
+ svg = FlowySvgs.document_s;
case ImportType.historyDocument:
case ImportType.databaseCSV:
case ImportType.databaseRawData:
diff --git a/frontend/resources/flowy_icons/16x/document.svg b/frontend/resources/flowy_icons/16x/document.svg
new file mode 100644
index 0000000000..abb59d5c14
--- /dev/null
+++ b/frontend/resources/flowy_icons/16x/document.svg
@@ -0,0 +1,3 @@
+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path fill-rule="evenodd" clip-rule="evenodd" d="M4.5 2C3.67157 2 3 2.67157 3 3.5V12.5C3 13.3284 3.67157 14 4.5 14H11.5C12.3284 14 13 13.3284 13 12.5V7.16667C13 6.62574 12.8246 6.09941 12.5 5.66667L10.5 3C10.0279 2.37049 9.28689 2 8.5 2H4.5ZM4 3.5C4 3.22386 4.22386 3 4.5 3H8.5V6C8.5 6.82843 9.17157 7.5 10 7.5H12V12.5C12 12.7761 11.7761 13 11.5 13H4.5C4.22386 13 4 12.7761 4 12.5V3.5ZM11.8437 6.5C11.8032 6.41843 11.7552 6.34029 11.7 6.26667L9.7 3.6C9.64012 3.52016 9.57303 3.44726 9.5 3.38194V6C9.5 6.27614 9.72386 6.5 10 6.5H11.8437Z" fill="#333333"/>
+</svg>
diff --git a/frontend/resources/flowy_icons/16x/documents.svg b/frontend/resources/flowy_icons/16x/documents.svg
deleted file mode 100644
index e232eba85d..0000000000
--- a/frontend/resources/flowy_icons/16x/documents.svg
+++ /dev/null
@@ -1,4 +0,0 @@
-<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
-<path d="M10.5 3H11.5C11.8315 3 12.1495 3.12877 12.3839 3.35798C12.6183 3.58719 12.75 3.89807 12.75 4.22222V12.7778C12.75 13.1019 12.6183 13.4128 12.3839 13.642C12.1495 13.8712 11.8315 14 11.5 14H4.5C4.16848 14 3.85054 13.8712 3.61612 13.642C3.3817 13.4128 3.25 13.1019 3.25 12.7778V4.22222C3.25 3.89807 3.3817 3.58719 3.61612 3.35798C3.85054 3.12877 4.16848 3 4.5 3H5.5" stroke="#333333" stroke-linecap="round" stroke-linejoin="round"/>
-<path d="M9.5 2H6.5C6.22386 2 6 2.22386 6 2.5V3.5C6 3.77614 6.22386 4 6.5 4H9.5C9.77614 4 10 3.77614 10 3.5V2.5C10 2.22386 9.77614 2 9.5 2Z" stroke="#333333" stroke-linecap="round" stroke-linejoin="round"/>
-</svg>
diff --git a/frontend/resources/flowy_icons/16x/page.svg b/frontend/resources/flowy_icons/16x/page.svg
deleted file mode 100644
index f0fb8ce9ce..0000000000
--- a/frontend/resources/flowy_icons/16x/page.svg
+++ /dev/null
@@ -1,4 +0,0 @@
-<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
-<path d="M9 2.5V6C9 6.55228 9.44772 7 10 7H12" stroke="#333333"/>
-<path d="M3.5 3.5C3.5 2.94771 3.94772 2.5 4.5 2.5H8H8.5C9.12951 2.5 9.72229 2.79639 10.1 3.3L12.1 5.96667C12.3596 6.31286 12.5 6.73393 12.5 7.16667V8V12.5C12.5 13.0523 12.0523 13.5 11.5 13.5H4.5C3.94772 13.5 3.5 13.0523 3.5 12.5V3.5Z" stroke="#333333"/>
-</svg>