From be4001087ed7846cb91b0df3a8c10220e81f9249 Mon Sep 17 00:00:00 2001 From: Aleksei <130981115+MacDeveloper1@users.noreply.github.com> Date: Wed, 20 Dec 2023 14:45:30 +0100 Subject: [PATCH] Restore `QuillToolbarColorButton` --- .../toolbar/buttons/color/color_button.dart | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/lib/src/widgets/toolbar/buttons/color/color_button.dart b/lib/src/widgets/toolbar/buttons/color/color_button.dart index 2b20c5d3..dd9356cc 100644 --- a/lib/src/widgets/toolbar/buttons/color/color_button.dart +++ b/lib/src/widgets/toolbar/buttons/color/color_button.dart @@ -194,14 +194,18 @@ class QuillToolbarColorButtonState extends State { ); } - return IconButton( + return QuillToolbarIconButton( tooltip: tooltip, - iconSize: iconSize * iconButtonFactor, - icon: Icon( - iconData, - color: widget.isBackground ? iconColorBackground : iconColor, - ), + size: iconSize * iconButtonFactor, + icon: Icon(iconData, + size: iconSize, + color: widget.isBackground ? iconColorBackground : iconColor), + isFilled: false, + iconFilledStyle: IconButton.styleFrom( + backgroundColor: + widget.isBackground ? fillColorBackground : fillColor), onPressed: _showColorPicker, + afterPressed: afterButtonPressed, ); }