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, ); }