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.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
chore: update chat icon (#5476)
Lucas.Xu6e7d044208ff
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.dartindex bc8706f8b8..1a8ff64f2b 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@@ -23,7 +23,7 @@ class AddNewPageWidgetBottomSheet extends StatelessWidget {text: LocaleKeys.document_menuName.tr(),height: 52.0,leftIcon: const FlowySvg(- FlowySvgs.document_s,+ FlowySvgs.icon_document_s,size: Size.square(18),),showTopBorder: false,@@ -33,7 +33,7 @@ class AddNewPageWidgetBottomSheet extends StatelessWidget {text: LocaleKeys.grid_menuName.tr(),height: 52.0,leftIcon: const FlowySvg(- FlowySvgs.grid_s,+ FlowySvgs.icon_grid_s,size: Size.square(18),),showTopBorder: false,@@ -43,7 +43,7 @@ class AddNewPageWidgetBottomSheet extends StatelessWidget {text: LocaleKeys.board_menuName.tr(),height: 52.0,leftIcon: const FlowySvg(- FlowySvgs.board_s,+ FlowySvgs.icon_board_s,size: Size.square(18),),showTopBorder: false,@@ -53,7 +53,7 @@ class AddNewPageWidgetBottomSheet extends StatelessWidget {text: LocaleKeys.calendar_menuName.tr(),height: 52.0,leftIcon: const FlowySvg(- FlowySvgs.calendar_s,+ FlowySvgs.icon_calendar_s,size: Size.square(18),),showTopBorder: false,diff --git a/frontend/appflowy_flutter/lib/mobile/presentation/bottom_sheet/bottom_sheet_view_page.dart b/frontend/appflowy_flutter/lib/mobile/presentation/bottom_sheet/bottom_sheet_view_page.dartindex de9d51311c..62d471a093 100644--- a/frontend/appflowy_flutter/lib/mobile/presentation/bottom_sheet/bottom_sheet_view_page.dart+++ b/frontend/appflowy_flutter/lib/mobile/presentation/bottom_sheet/bottom_sheet_view_page.dart@@ -89,7 +89,7 @@ class MobileViewBottomSheetBody extends StatelessWidget {children: [MobileQuickActionButton(text: LocaleKeys.button_rename.tr(),- icon: FlowySvgs.m_rename_s,+ icon: FlowySvgs.view_item_rename_s,onTap: () => onAction(MobileViewBottomSheetBodyAction.rename,),@@ -99,10 +99,7 @@ class MobileViewBottomSheetBody extends StatelessWidget {text: isFavorite? LocaleKeys.button_removeFromFavorites.tr(): LocaleKeys.button_addToFavorites.tr(),- icon: isFavorite- ? FlowySvgs.m_favorite_selected_lg- : FlowySvgs.m_favorite_unselected_lg,- iconColor: isFavorite ? Colors.yellow : null,+ icon: isFavorite ? FlowySvgs.unfavorite_s : FlowySvgs.favorite_s,onTap: () => onAction(isFavorite? MobileViewBottomSheetBodyAction.removeFromFavorites@@ -112,7 +109,7 @@ class MobileViewBottomSheetBody extends StatelessWidget {_divider(),MobileQuickActionButton(text: LocaleKeys.button_duplicate.tr(),- icon: FlowySvgs.m_duplicate_s,+ icon: FlowySvgs.duplicate_s,onTap: () => onAction(MobileViewBottomSheetBodyAction.duplicate,),@@ -121,7 +118,7 @@ class MobileViewBottomSheetBody extends StatelessWidget {MobileQuickActionButton(text: LocaleKeys.button_delete.tr(),textColor: Theme.of(context).colorScheme.error,- icon: FlowySvgs.m_delete_s,+ icon: FlowySvgs.trash_s,iconColor: Theme.of(context).colorScheme.error,onTap: () => onAction(MobileViewBottomSheetBodyAction.delete,diff --git a/frontend/appflowy_flutter/lib/mobile/presentation/bottom_sheet/default_mobile_action_pane.dart b/frontend/appflowy_flutter/lib/mobile/presentation/bottom_sheet/default_mobile_action_pane.dartindex 022d0c224c..ad489a5645 100644--- a/frontend/appflowy_flutter/lib/mobile/presentation/bottom_sheet/default_mobile_action_pane.dart+++ b/frontend/appflowy_flutter/lib/mobile/presentation/bottom_sheet/default_mobile_action_pane.dart@@ -74,13 +74,14 @@ enum MobilePaneActionType {return AddNewPageWidgetBottomSheet(view: view,onAction: (layout) {- context.read<ViewBloc>().add(- ViewEvent.createView(- LocaleKeys.menuAppHeader_defaultNewPageName.tr(),- layout,- section: spaceType!.toViewSectionPB,- ),- );+ Navigator.of(sheetContext).pop();+ viewBloc.add(+ ViewEvent.createView(+ LocaleKeys.menuAppHeader_defaultNewPageName.tr(),+ layout,+ section: spaceType!.toViewSectionPB,+ ),+ );},);},diff --git a/frontend/appflowy_flutter/lib/mobile/presentation/database/card/card_detail/mobile_card_detail_screen.dart b/frontend/appflowy_flutter/lib/mobile/presentation/database/card/card_detail/mobile_card_detail_screen.dartindex 08f6c0b48b..c65f899c34 100644--- a/frontend/appflowy_flutter/lib/mobile/presentation/database/card/card_detail/mobile_card_detail_screen.dart+++ b/frontend/appflowy_flutter/lib/mobile/presentation/database/card/card_detail/mobile_card_detail_screen.dart@@ -140,7 +140,7 @@ class _MobileRowDetailPageState extends State<MobileRowDetailPage> {MobileQuickActionButton(onTap: () =>_performAction(viewId, _bloc.state.currentRowId, false),- icon: FlowySvgs.copy_s,+ icon: FlowySvgs.duplicate_s,text: LocaleKeys.button_duplicate.tr(),),const Divider(height: 8.5, thickness: 0.5),@@ -148,7 +148,7 @@ class _MobileRowDetailPageState extends State<MobileRowDetailPage> {onTap: () => _performAction(viewId, _bloc.state.currentRowId, true),text: LocaleKeys.button_delete.tr(),textColor: Theme.of(context).colorScheme.error,- icon: FlowySvgs.m_delete_m,+ icon: FlowySvgs.trash_s,iconColor: Theme.of(context).colorScheme.error,),const Divider(height: 8.5, thickness: 0.5),diff --git a/frontend/appflowy_flutter/lib/mobile/presentation/database/field/mobile_quick_field_editor.dart b/frontend/appflowy_flutter/lib/mobile/presentation/database/field/mobile_quick_field_editor.dartindex f3b76447f4..0b415b04a6 100644--- a/frontend/appflowy_flutter/lib/mobile/presentation/database/field/mobile_quick_field_editor.dart+++ b/frontend/appflowy_flutter/lib/mobile/presentation/database/field/mobile_quick_field_editor.dart@@ -5,8 +5,8 @@ import 'package:appflowy/mobile/presentation/database/field/mobile_field_bottom_import 'package:appflowy/mobile/presentation/widgets/widgets.dart';import 'package:appflowy/plugins/database/application/field/field_controller.dart';import 'package:appflowy/plugins/database/application/field/field_editor_bloc.dart';-import 'package:appflowy/plugins/database/domain/field_backend_service.dart';import 'package:appflowy/plugins/database/application/field/field_info.dart';+import 'package:appflowy/plugins/database/domain/field_backend_service.dart';import 'package:appflowy/plugins/database/widgets/setting/field_visibility_extension.dart';import 'package:appflowy_backend/protobuf/flowy-database2/protobuf.dart';import 'package:easy_localization/easy_localization.dart';diff --git a/frontend/appflowy_flutter/lib/mobile/presentation/database/view/database_view_quick_actions.dart b/frontend/appflowy_flutter/lib/mobile/presentation/database/view/database_view_quick_actions.dartindex eff4dc5e0b..652c93496e 100644--- a/frontend/appflowy_flutter/lib/mobile/presentation/database/view/database_view_quick_actions.dart+++ b/frontend/appflowy_flutter/lib/mobile/presentation/database/view/database_view_quick_actions.dart@@ -107,9 +107,9 @@ enum _Action {FlowySvgData get icon {return switch (this) {- edit => FlowySvgs.edit_s,- duplicate => FlowySvgs.copy_s,- delete => FlowySvgs.delete_s,+ edit => FlowySvgs.view_item_rename_s,+ duplicate => FlowySvgs.duplicate_s,+ delete => FlowySvgs.trash_s,};}diff --git a/frontend/appflowy_flutter/lib/mobile/presentation/page_item/mobile_view_item.dart b/frontend/appflowy_flutter/lib/mobile/presentation/page_item/mobile_view_item.dartindex 2d20581b98..737145d501 100644--- a/frontend/appflowy_flutter/lib/mobile/presentation/page_item/mobile_view_item.dart+++ b/frontend/appflowy_flutter/lib/mobile/presentation/page_item/mobile_view_item.dart@@ -298,9 +298,12 @@ class _SingleMobileInnerViewItemState extends State<SingleMobileInnerViewItem> {widget.view.icon.value,fontSize: 20.0,)- : SizedBox.square(- dimension: 18.0,- child: widget.view.defaultIcon(),+ : Opacity(+ opacity: 0.7,+ child: SizedBox.square(+ dimension: 18.0,+ child: widget.view.defaultIcon(),+ ),);return icon;}diff --git a/frontend/appflowy_flutter/lib/workspace/application/favorite/favorite_service.dart b/frontend/appflowy_flutter/lib/workspace/application/favorite/favorite_service.dartindex 71bb8423df..e21db62ccb 100644--- a/frontend/appflowy_flutter/lib/workspace/application/favorite/favorite_service.dart+++ b/frontend/appflowy_flutter/lib/workspace/application/favorite/favorite_service.dart@@ -34,7 +34,8 @@ class FavoriteService {bool isPinned,) async {try {- final current = view.extra.isNotEmpty ? jsonDecode(view.extra) : {};+ final current =+ view.extra.isNotEmpty ? jsonDecode(view.extra) : <String, dynamic>{};final merged = mergeMaps(current,<String, dynamic>{ViewExtKeys.isPinnedKey: isPinned},diff --git a/frontend/appflowy_flutter/windows/runner/flutter_window.cpp b/frontend/appflowy_flutter/windows/runner/flutter_window.cppindex b43b9095ea..8e9deabc69 100644--- a/frontend/appflowy_flutter/windows/runner/flutter_window.cpp+++ b/frontend/appflowy_flutter/windows/runner/flutter_window.cpp@@ -17,7 +17,7 @@ bool FlutterWindow::OnCreate() {RECT frame = GetClientArea();// The size here must match the window dimensions to avoid unnecessary surface- // creation / destruction in the startup path.+// creation / destruction in the startup path.flutter_controller_ = std::make_unique<flutter::FlutterViewController>(frame.right - frame.left, frame.bottom - frame.top, project_);// Ensure that basic setup of the controller was successful.diff --git a/frontend/resources/flowy_icons/16x/chat_ai_page.svg b/frontend/resources/flowy_icons/16x/chat_ai_page.svgindex e3585e4ec6..3033ab47a0 100644--- a/frontend/resources/flowy_icons/16x/chat_ai_page.svg+++ b/frontend/resources/flowy_icons/16x/chat_ai_page.svg@@ -1 +1,4 @@-<svg width="64px" height="64px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <path d="M12 16V8" stroke="#333333" stroke-width="1.656" stroke-linecap="round" style="--darkreader-inline-stroke: #c8c3bc;" data-darkreader-inline-stroke=""></path> <path d="M8 14V10" stroke="#333333" stroke-width="1.656" stroke-linecap="round" style="--darkreader-inline-stroke: #c8c3bc;" data-darkreader-inline-stroke=""></path> <path d="M16 14V10" stroke="#333333" stroke-width="1.656" stroke-linecap="round" style="--darkreader-inline-stroke: #c8c3bc;" data-darkreader-inline-stroke=""></path> <path d="M17 3.33782C15.5291 2.48697 13.8214 2 12 2C6.47715 2 2 6.47715 2 12C2 13.5997 2.37562 15.1116 3.04346 16.4525C3.22094 16.8088 3.28001 17.2161 3.17712 17.6006L2.58151 19.8267C2.32295 20.793 3.20701 21.677 4.17335 21.4185L6.39939 20.8229C6.78393 20.72 7.19121 20.7791 7.54753 20.9565C8.88837 21.6244 10.4003 22 12 22C17.5228 22 22 17.5228 22 12C22 10.1786 21.513 8.47087 20.6622 7" stroke="#333333" stroke-width="1.656" stroke-linecap="round" style="--darkreader-inline-stroke: #c8c3bc;" data-darkreader-inline-stroke=""></path> </g></svg>\ No newline at end of file+<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">+ <path d="M9.79343 2.42612C9.79343 2.15082 9.58575 1.91773 9.31069 1.90639C9.20767 1.90214 9.10409 1.89999 9 1.89999C4.99679 1.89999 1.75 5.07791 1.75 8.99774C1.74909 10.1598 2.03948 11.3035 2.59463 12.3243C2.80125 12.688 2.91846 13.1073 2.91846 13.5507C2.91846 14.2081 2.66229 14.8062 2.243 15.2593C2.20192 15.3439 2.14271 15.4889 2.14271 15.565C2.14405 15.6969 2.19377 15.8236 2.28244 15.9212C2.3711 16.0188 2.49252 16.0804 2.62363 16.0943H9C13.0056 16.0943 16.25 12.9176 16.25 8.99653C16.25 8.83715 16.2446 8.679 16.2341 8.52224C16.2158 8.25138 15.9838 8.05085 15.7123 8.05085V8.05085C15.3762 8.05085 15.1227 8.35373 15.141 8.68933C15.1466 8.7912 15.1494 8.89362 15.1494 8.99653C15.1494 12.2445 12.3435 14.9587 9 14.9587L3.7372 14.886C3.93546 14.3755 4.0139 13.8272 3.97377 13.2811C3.93364 12.7349 3.81869 12.2046 3.54794 11.7286C3.10207 10.9057 2.83823 9.96924 2.83823 8.99774C2.83823 5.75095 5.65775 2.98822 9 2.98822C9.06065 2.98822 9.12112 2.98913 9.18141 2.99094C9.50665 3.00067 9.79343 2.75151 9.79343 2.42612V2.42612Z" fill="#232323"/>+ <path d="M13.6546 2.23158C13.7827 1.92275 14.2202 1.92283 14.3481 2.2317L14.5151 2.63473C14.769 3.24768 15.256 3.73469 15.8689 3.98871L16.2692 4.15459C16.5781 4.28262 16.578 4.72025 16.2691 4.84817L15.8661 5.01502C15.2525 5.26905 14.7651 5.75653 14.5111 6.37011L14.3464 6.76819C14.2184 7.07733 13.7805 7.07725 13.6526 6.76807L13.4868 6.36685C13.2328 5.75277 12.7451 5.2649 12.1311 5.0108L11.7318 4.84558C11.4228 4.71769 11.4227 4.27995 11.7317 4.15195L12.1348 3.98497C12.7476 3.73112 13.2346 3.24435 13.4887 2.63163L13.6546 2.23158Z" fill="#2B2F36"/>+ </svg>diff --git a/frontend/resources/flowy_icons/16x/workspace_three_dots.svg b/frontend/resources/flowy_icons/16x/workspace_three_dots.svgindex 93aa13693a..54332fb08b 100644--- a/frontend/resources/flowy_icons/16x/workspace_three_dots.svg+++ b/frontend/resources/flowy_icons/16x/workspace_three_dots.svg@@ -1,7 +1,7 @@<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">-<g opacity="0.6">-<path d="M4.23516 7.9999C4.23516 8.60742 3.74267 9.0999 3.13516 9.0999C2.52764 9.0999 2.03516 8.60742 2.03516 7.9999C2.03516 7.39239 2.52764 6.8999 3.13516 6.8999C3.74267 6.8999 4.23516 7.39239 4.23516 7.9999Z" fill="#171717"/>-<path d="M9.10234 7.9999C9.10234 8.60742 8.60986 9.0999 8.00234 9.0999C7.39483 9.0999 6.90234 8.60742 6.90234 7.9999C6.90234 7.39239 7.39483 6.8999 8.00234 6.8999C8.60986 6.8999 9.10234 7.39239 9.10234 7.9999Z" fill="#171717"/>-<path d="M13.9695 7.9999C13.9695 8.60742 13.477 9.0999 12.8695 9.0999C12.262 9.0999 11.7695 8.60742 11.7695 7.9999C11.7695 7.39239 12.262 6.8999 12.8695 6.8999C13.477 6.8999 13.9695 7.39239 13.9695 7.9999Z" fill="#171717"/>-</g>-</svg>+ <g opacity="0.6">+ <path d="M4.73594 8.00005C4.73594 8.66279 4.19868 9.20005 3.53594 9.20005C2.8732 9.20005 2.33594 8.66279 2.33594 8.00005C2.33594 7.33731 2.8732 6.80005 3.53594 6.80005C4.19868 6.80005 4.73594 7.33731 4.73594 8.00005Z" fill="#171717"/>+ <path d="M9.20469 8.00005C9.20469 8.66279 8.66743 9.20005 8.00469 9.20005C7.34195 9.20005 6.80469 8.66279 6.80469 8.00005C6.80469 7.33731 7.34195 6.80005 8.00469 6.80005C8.66743 6.80005 9.20469 7.33731 9.20469 8.00005Z" fill="#171717"/>+ <path d="M13.6656 8.00005C13.6656 8.66279 13.1284 9.20005 12.4656 9.20005C11.8029 9.20005 11.2656 8.66279 11.2656 8.00005C11.2656 7.33731 11.8029 6.80005 12.4656 6.80005C13.1284 6.80005 13.6656 7.33731 13.6656 8.00005Z" fill="#171717"/>+ </g>+ </svg>diff --git a/frontend/resources/translations/en.json b/frontend/resources/translations/en.jsonindex 38057a15b0..8bd65ffc1f 100644--- a/frontend/resources/translations/en.json+++ b/frontend/resources/translations/en.json@@ -148,7 +148,7 @@"newCalendarText": "New calendar","newBoardText": "New board","chat": {- "newChat": "New chat",+ "newChat": "AI Chat","inputMessageHint": "Message AppFlowy AI","unsupportedCloudPrompt": "This feature is only available when using AppFlowy Cloud","relatedQuestion": "Related",