diff --git a/StreamAwesome/src/components/settings/GeneralOptions.vue b/StreamAwesome/src/components/settings/GeneralOptions.vue index 471fab8..6f936cd 100644 --- a/StreamAwesome/src/components/settings/GeneralOptions.vue +++ b/StreamAwesome/src/components/settings/GeneralOptions.vue @@ -33,6 +33,7 @@ function createFontAwesomeIconDisplayFromStyle(style: FontAwesomeStyle): FontAwe unicode: fallBackIcon.unicode, isBrandsIcon: fallBackIcon.isBrand(), family: fallBackIcon.styles.free[0].family, + duotoneAlpha: 0.5, style: style } } else { @@ -41,8 +42,8 @@ function createFontAwesomeIconDisplayFromStyle(style: FontAwesomeStyle): FontAwe const unicode = props.icon.fontAwesomeIcon.unicode const isBrandsIcon = props.icon.fontAwesomeIcon.isBrandsIcon const family = props.icon.fontAwesomeIcon.family - - return { id, label, unicode, isBrandsIcon, family, style } + const duotoneAlpha = props.icon.fontAwesomeIcon.duotoneAlpha + return { id, label, unicode, isBrandsIcon, family, style, duotoneAlpha } } } @@ -55,6 +56,7 @@ function createFontAwesomeIconDisplayFromFamily(family: FontAwesomeFamily): Font unicode: fallBackIcon.unicode, isBrandsIcon: fallBackIcon.isBrand(), family: family, + duotoneAlpha: 0.5, style: fallBackIcon.styles.free[0].style } } else { @@ -63,8 +65,8 @@ function createFontAwesomeIconDisplayFromFamily(family: FontAwesomeFamily): Font const unicode = props.icon.fontAwesomeIcon.unicode const isBrandsIcon = props.icon.fontAwesomeIcon.isBrandsIcon const style = props.icon.fontAwesomeIcon.style - - return { id, label, unicode, isBrandsIcon, family, style } + const duotoneAlpha = props.icon.fontAwesomeIcon.duotoneAlpha + return { id, label, unicode, isBrandsIcon, family, style, duotoneAlpha } } } @@ -80,6 +82,11 @@ function updateFamily(family: FontAwesomeFamily) { function updateStyle(style: FontAwesomeStyle) { currentIcon.fontAwesomeIcon.style = style } + +function updateAlpha(event: Event) { + const alpha = +(event.target as HTMLInputElement).value + currentIcon.fontAwesomeIcon.duotoneAlpha = alpha +}