5180 fichiers 38.5 Mo 0 téléchargements 482 vues mis à jour il y a 7 heures ui
SnowWarStrokeText.tsx 897 o Télécharger le fichier
import { CSSProperties, FC } from 'react';
import { NativeTextTree } from '../../../../common/native-text/NativeTextTree';

/**
 * AIR stroked text: every outlined SnowWar caption is two text windows, a
 * `_stroke` copy in UbuntuThick in the outline colour (WindowUtils.colorStrokes
 * recolours it per team) with the white Ubuntu Bold caption on top. The two
 * fonts share their advance widths, so the layers line up glyph for glyph.
 */
export const SnowWarStrokeText: FC<{ text: string | number; stroke?: string; className?: string }> = ({ text, stroke = '#1077ac', className = '' }) =>
{
    const value = String(text);

    return (
        <NativeTextTree>
            <span className={ `snowwar-stroke ${ className }`.trim() } data-text={ value } style={ { '--snowwar-stroke': stroke } as CSSProperties }>
                { value }
            </span>
        </NativeTextTree>
    );
};
15Sujets
1Dépôts
20Membres
3En ligne
Profile
Inscrit
Dernière visite
Messages
0
Votes positifs
0
Votes négatifs
0

Nous utilisons des cookies pour assurer le bon fonctionnement du site et améliorer votre expérience. en savoir plus

Autoriser