mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
chore: use page icon instead of document icon (#3952)
This commit is contained in:
parent
d190850f03
commit
19d9e7717c
@ -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),
|
||||
),
|
||||
|
@ -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,
|
||||
),
|
||||
|
@ -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;
|
||||
|
@ -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,
|
||||
),
|
||||
|
@ -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(
|
||||
|
@ -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');
|
||||
}
|
||||
|
@ -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:
|
||||
|
3
frontend/resources/flowy_icons/16x/document.svg
Normal file
3
frontend/resources/flowy_icons/16x/document.svg
Normal file
@ -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>
|
After Width: | Height: | Size: 658 B |
@ -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>
|
Before Width: | Height: | Size: 748 B |
@ -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>
|
Before Width: | Height: | Size: 423 B |
Loading…
Reference in New Issue
Block a user