Restore `QuillToolbarColorButton`

pull/1633/head
Aleksei 1 year ago
parent f62f358f20
commit be4001087e
  1. 16
      lib/src/widgets/toolbar/buttons/color/color_button.dart

@ -194,14 +194,18 @@ class QuillToolbarColorButtonState extends State<QuillToolbarColorButton> {
);
}
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,
);
}

Loading…
Cancel
Save