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

This commit is contained in:
Akarsh Jain 2023-05-01 23:35:44 +05:30 committed by GitHub
parent 4be98fdba0
commit c6cd10dfcf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -168,6 +168,7 @@ class _CurrentIcon extends StatelessWidget {
context: context, context: context,
builder: (BuildContext context) { builder: (BuildContext context) {
return SimpleDialog( return SimpleDialog(
backgroundColor: Theme.of(context).canvasColor,
title: FlowyText.medium( title: FlowyText.medium(
LocaleKeys.settings_user_selectAnIcon.tr(), LocaleKeys.settings_user_selectAnIcon.tr(),
fontSize: FontSizes.s16, fontSize: FontSizes.s16,
@ -263,11 +264,16 @@ class IconOption extends StatelessWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Material( return Material(
color: Colors.transparent, color: Colors.transparent,
child: GestureDetector( child: IconButton(
onTap: () { iconSize: 15.0,
icon: svgWidget(
'emoji/$iconUrl',
),
padding: EdgeInsets.zero,
hoverColor: Theme.of(context).colorScheme.tertiaryContainer,
onPressed: () {
setIcon(iconUrl); setIcon(iconUrl);
}, },
child: svgWidget('emoji/$iconUrl'),
), ),
); );
} }