'#description'=>$this->t('Duotone provides a version of every icon in Font Awesome that has two distinct shades of color. They’re great for adding more of your brand or an illustrative quality to the icons in your project. See @duotoneLink for more information. Note that duotone only works with the Pro version of Font Awesome.',[
'@duotoneLink'=>Link::fromTextAndUrl($this->t('the Font Awesome guide to duotone'),Url::fromUri('https://fontawesome.com/how-to-use/on-the-web/styling/duotone-icons',[
'attributes'=>[
'target'=>'_blank',
],
]))->toString(),
'@duotoneLink'=>Link::fromTextAndUrl($this->t('the Font Awesome guide to duotone'),Url::fromUri('https://fontawesome.com/how-to-use/on-the-web/styling/duotone-icons'))
->toString(),
]),
];
$element['settings']['duotone']['swap-opacity']=[
@@ -240,11 +261,8 @@ class FontAwesomeIconWidget extends WidgetBase implements ContainerFactoryPlugin
// Disable power transforms for webfonts.
'#title'=>$this->t('Layer Opacity'),
'#description'=>$this->t('By default the secondary layer in a duotone icon is set to 40% opacity (via an opacity 0.4; rule in Font Awesome’s support CSS). You can explicitly set the opacity of a duotone icon’s layer by using CSS custom properties either in your style sheets or by setting them manually below. New to custom properties? Here are some @cssLink.',[
'@cssLink'=>Link::fromTextAndUrl($this->t('places to set them'),Url::fromUri('https://fontawesome.com/how-to-use/on-the-web/styling/duotone-icons#using-in-a-project',[
'attributes'=>[
'target'=>'_blank',
],
]))->toString(),
'@cssLink'=>Link::fromTextAndUrl($this->t('places to set them'),Url::fromUri('https://fontawesome.com/how-to-use/on-the-web/styling/duotone-icons#using-in-a-project'))
@@ -268,11 +286,8 @@ class FontAwesomeIconWidget extends WidgetBase implements ContainerFactoryPlugin
// Disable power transforms for webfonts.
'#title'=>$this->t('Layer Color'),
'#description'=>$this->t('Like all other Font Awesome icons, duotone icons automatically inherit CSS size and color. A duotone icon consists of a primary and secondary layer. By default, The secondary layer is given an opacity of 40% so that it appears as a lighter shade of the icon’s inherited or directly set color. Using CSS custom properties, we’ve also added some color hooks to a duotone icon’s primary and secondary layers. New to custom properties? Here are some @cssLink.',[
'@cssLink'=>Link::fromTextAndUrl($this->t('places to set them'),Url::fromUri('https://fontawesome.com/how-to-use/on-the-web/styling/duotone-icons#using-in-a-project',[
'attributes'=>[
'target'=>'_blank',
],
]))->toString(),
'@cssLink'=>Link::fromTextAndUrl($this->t('places to set them'),Url::fromUri('https://fontawesome.com/how-to-use/on-the-web/styling/duotone-icons#using-in-a-project'))