Improve credential provider mascot fidelity
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 1.1 MiB |
@@ -6,7 +6,9 @@ namespace SGU.CredentialProvider;
|
|||||||
|
|
||||||
internal static class ProviderTileIcon
|
internal static class ProviderTileIcon
|
||||||
{
|
{
|
||||||
public const int Size = 72;
|
// LogonUI enlarges the dedicated-tile artwork. Supply a dense source image
|
||||||
|
// so the mascot remains crisp at the large sign-in surface.
|
||||||
|
public const int Size = 256;
|
||||||
private const string MascotResourceName = "SGU.CredentialProvider.Branding.LaSalleMascot.png";
|
private const string MascotResourceName = "SGU.CredentialProvider.Branding.LaSalleMascot.png";
|
||||||
|
|
||||||
public static Bitmap Create()
|
public static Bitmap Create()
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<EmbeddedResource Include="..\..\assets\branding\lasalle-mascot-provider.png"
|
<EmbeddedResource Include="..\..\assets\branding\lasalle-mascot-provider-v2.png"
|
||||||
LogicalName="SGU.CredentialProvider.Branding.LaSalleMascot.png" />
|
LogicalName="SGU.CredentialProvider.Branding.LaSalleMascot.png" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ namespace SGU.CredentialProvider.Tests;
|
|||||||
public sealed class ProviderTileIconTests
|
public sealed class ProviderTileIconTests
|
||||||
{
|
{
|
||||||
[Fact]
|
[Fact]
|
||||||
public void ProviderPublishesASeventyTwoPixelLogoForSignInOptions()
|
public void ProviderPublishesAHighResolutionLogoForSignInOptions()
|
||||||
{
|
{
|
||||||
SguCredentialProvider provider = new();
|
SguCredentialProvider provider = new();
|
||||||
|
|
||||||
@@ -39,8 +39,8 @@ public sealed class ProviderTileIconTests
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Assert.InRange(redPixels, 100, 2_000);
|
Assert.InRange(redPixels, 1_000, 30_000);
|
||||||
Assert.InRange(navyPixels, 100, 4_000);
|
Assert.InRange(navyPixels, 1_000, 50_000);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
|
|||||||
Reference in New Issue
Block a user