diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/settings_shortcuts_view.dart b/frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/settings_shortcuts_view.dart index 87ea9d9260392..7e6161cba9114 100644 --- a/frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/settings_shortcuts_view.dart +++ b/frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/settings_shortcuts_view.dart @@ -185,23 +185,29 @@ class _ResetButton extends StatelessWidget { behavior: HitTestBehavior.translucent, onTap: onReset, child: FlowyHover( - child: Padding( + builder: (context, isHovering) => Padding( padding: const EdgeInsets.symmetric( vertical: 4.0, horizontal: 6, ), + child: Row( children: [ - const FlowySvg( + FlowySvg( FlowySvgs.restore_s, - size: Size.square(20), + size: const Size.square(20), + color: isHovering + ? Theme.of(context).colorScheme.primary + : null, ), const HSpace(6), SizedBox( height: 16, child: FlowyText.regular( LocaleKeys.settings_shortcutsPage_actions_resetDefault.tr(), - color: AFThemeExtension.of(context).strongText, + color: isHovering + ? Theme.of(context).colorScheme.primary + : AFThemeExtension.of(context).strongText, ), ), ], @@ -356,8 +362,9 @@ class _ShortcutSettingTileState extends State { resetHoverOnRebuild: false, builder: (context, isHovering) => Padding( padding: const EdgeInsets.symmetric(vertical: 4), - child: Row( - children: [ + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ const HSpace(8), Expanded( child: Padding( @@ -371,11 +378,9 @@ class _ShortcutSettingTileState extends State { ), ), ), - Expanded( - child: isEditing - ? _renderKeybindEditor() + isEditing + ? Expanded(child: _renderKeybindEditor()) : _renderKeybindings(isHovering), - ), ], ), ),