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: set icon color of the app ation panel

appflowyf990e3cabbb0
diff --git a/frontend/app_flowy/lib/workspace/presentation/home/menu/app/header/header.dart b/frontend/app_flowy/lib/workspace/presentation/home/menu/app/header/header.dart
index 48f4f0d399..727b18762b 100644
--- a/frontend/app_flowy/lib/workspace/presentation/home/menu/app/header/header.dart
+++ b/frontend/app_flowy/lib/workspace/presentation/home/menu/app/header/header.dart
@@ -86,7 +86,8 @@ class MenuAppHeader extends StatelessWidget {
?.toggle(),
onSecondaryTap: () {
final actionList = AppDisclosureActionSheet(
- onSelected: (action) => _handleAction(context, action));
+ onSelected: (action) => _handleAction(context, action),
+ );
actionList.show(
context,
anchorDirection: AnchorDirection.bottomWithCenterAligned,
@@ -158,12 +159,12 @@ extension AppDisclosureExtension on AppDisclosureAction {
}
}
- Widget get icon {
+ Widget icon(Color iconColor) {
switch (this) {
case AppDisclosureAction.rename:
- return svgWidget('editor/edit', color: const Color(0xffe5e5e5));
+ return svgWidget('editor/edit', color: iconColor);
case AppDisclosureAction.delete:
- return svgWidget('editor/delete', color: const Color(0xffe5e5e5));
+ return svgWidget('editor/delete', color: iconColor);
}
}
}
diff --git a/frontend/app_flowy/lib/workspace/presentation/home/menu/app/header/right_click_action.dart b/frontend/app_flowy/lib/workspace/presentation/home/menu/app/header/right_click_action.dart
index 821321c6ac..387f161732 100644
--- a/frontend/app_flowy/lib/workspace/presentation/home/menu/app/header/right_click_action.dart
+++ b/frontend/app_flowy/lib/workspace/presentation/home/menu/app/header/right_click_action.dart
@@ -44,7 +44,7 @@ class DisclosureActionWrapper extends ActionItem {
DisclosureActionWrapper(this.inner);
@override
- Widget? icon(Color iconColor) => inner.icon;
+ Widget? icon(Color iconColor) => inner.icon(iconColor);
@override
String get name => inner.name;