From fdb001b2a71d9fbe04e8ab573c7931745ff2a7fa Mon Sep 17 00:00:00 2001 From: Aleksei <130981115+MacDeveloper1@users.noreply.github.com> Date: Tue, 19 Dec 2023 13:16:36 +0100 Subject: [PATCH] Restore original `QuillToolbarLinkStyleButton2` --- lib/src/widgets/toolbar/buttons/link_style2_button.dart | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/src/widgets/toolbar/buttons/link_style2_button.dart b/lib/src/widgets/toolbar/buttons/link_style2_button.dart index 431d1af7..7ff23085 100644 --- a/lib/src/widgets/toolbar/buttons/link_style2_button.dart +++ b/lib/src/widgets/toolbar/buttons/link_style2_button.dart @@ -148,13 +148,20 @@ class _QuillToolbarLinkStyleButton2State final isToggled = _getLinkAttributeValue() != null; return QuillToolbarIconButton( tooltip: tooltip, + highlightElevation: 0, + hoverElevation: 0, + size: iconSize * iconButtonFactor, icon: Icon( iconData, - size: iconSize * iconButtonFactor, + size: iconSize, color: isToggled ? (iconTheme?.iconSelectedColor ?? theme.primaryIconTheme.color) : (iconTheme?.iconUnselectedColor ?? theme.iconTheme.color), ), + fillColor: isToggled + ? (iconTheme?.iconSelectedFillColor ?? theme.primaryColor) + : (iconTheme?.iconUnselectedFillColor ?? theme.canvasColor), + borderRadius: iconTheme?.borderRadius ?? 2, onPressed: _openLinkDialog, afterPressed: afterButtonPressed, );