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.

fix: hover state issue in icon picker for dark mode workspace name. (#2395)

Akarsh Jainc6cd10dfcf9a
diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/settings_user_view.dart b/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/settings_user_view.dart
index 9bcb2007e9..e77d6c4c86 100644
--- a/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/settings_user_view.dart
+++ b/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/settings_user_view.dart
@@ -168,6 +168,7 @@ class _CurrentIcon extends StatelessWidget {
context: context,
builder: (BuildContext context) {
return SimpleDialog(
+ backgroundColor: Theme.of(context).canvasColor,
title: FlowyText.medium(
LocaleKeys.settings_user_selectAnIcon.tr(),
fontSize: FontSizes.s16,
@@ -263,11 +264,16 @@ class IconOption extends StatelessWidget {
Widget build(BuildContext context) {
return Material(
color: Colors.transparent,
- child: GestureDetector(
- onTap: () {
+ child: IconButton(
+ iconSize: 15.0,
+ icon: svgWidget(
+ 'emoji/$iconUrl',
+ ),
+ padding: EdgeInsets.zero,
+ hoverColor: Theme.of(context).colorScheme.tertiaryContainer,
+ onPressed: () {
setIcon(iconUrl);
},
- child: svgWidget('emoji/$iconUrl'),
),
);
}