iconColor method
Implementation
Color iconColor(BuildContext context) {
final res = FluentTheme.of(context).resources;
if (isEnabled) {
if (widget.iconEnabledColor != null) return widget.iconEnabledColor!;
final state = HoverButton.of(context).states;
if (state.isPressing) {
return res.textFillColorTertiary;
}
return widget.iconEnabledColor ?? res.textFillColorSecondary;
} else {
return widget.iconDisabledColor ?? res.textFillColorDisabled;
}
}