observed behavior:
Stroke color seems to be always Black even when Label.ShadowColor is set to Color.White.
expected behavior:
- changing stroke color with Label.ShadowColor should be used as Stoke color (or even better: add something like Label.StrokeColor)
- OR: update Description of StokeText and ShadowColor that they are not related.
Note from freesnow
I think technically the description on the property is just wrong. There doesn't appear to have ever been an attempt to actually have ShadowColor impact the stroke color.
|
var strokePreMultiplied = Color.Black * absoluteOpacity; |
Examples:
with strokeText
new Label
{
Text = text,
TextColor = Color.Black,
StrokeText = true,
ShadowColor = Color.White,
AutoSizeHeight = true,
AutoSizeWidth = true,
Parent = parent
};


same without strokeText
new Label
{
Text = text,
TextColor = Color.Black,
AutoSizeHeight = true,
AutoSizeWidth = true,
Parent = parent
};

relevant discord chat
https://discord.com/channels/531175899588984842/536970543736291346/1213597398635520050
observed behavior:
Stroke color seems to be always Black even when Label.ShadowColor is set to Color.White.
expected behavior:
Note from freesnow
I think technically the description on the property is just wrong. There doesn't appear to have ever been an attempt to actually have ShadowColor impact the stroke color.
Blish-HUD/Blish HUD/_Extensions/SpriteBatchExtensions.cs
Line 196 in 651dee4
Examples:
with strokeText
same without strokeText
relevant discord chat
https://discord.com/channels/531175899588984842/536970543736291346/1213597398635520050