From ad3be0c43158d7d994e5e3ea114a7192c63ca197 Mon Sep 17 00:00:00 2001 From: Aleksei <130981115+MacDeveloper1@users.noreply.github.com> Date: Wed, 20 Dec 2023 14:48:07 +0100 Subject: [PATCH] Restore feel & look `QuillToolbarIndentButton` --- lib/src/widgets/toolbar/buttons/indent_button.dart | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/src/widgets/toolbar/buttons/indent_button.dart b/lib/src/widgets/toolbar/buttons/indent_button.dart index 876f74c1..39303262 100644 --- a/lib/src/widgets/toolbar/buttons/indent_button.dart +++ b/lib/src/widgets/toolbar/buttons/indent_button.dart @@ -107,10 +107,15 @@ class QuillToolbarIndentButtonState extends State { final theme = Theme.of(context); final iconColor = iconTheme?.iconUnselectedColor ?? theme.iconTheme.color; + + final iconFillColor = + iconTheme?.iconUnselectedFillColor ?? theme.canvasColor; return QuillToolbarIconButton( tooltip: tooltip, - icon: Icon(iconData, size: iconSize * iconButtonFactor, color: iconColor), + size: iconSize * iconButtonFactor, + icon: Icon(iconData, size: iconSize, color: iconColor), isFilled: false, + iconFilledStyle: IconButton.styleFrom(backgroundColor: iconFillColor), onPressed: _sharedOnPressed, afterPressed: afterButtonPressed, );