feat(scenarios): add buy me a coffee maui library
Create a .NET MAUI library for Buy Me a Coffee integration with branded button, QR code, and widget controls. Includes 8 theme presets (yellow, black, white, blue, violet, orange, red, green), customizable styling, and SkiaSharp-based rendering. Supports opening BMC pages in browser and generating QR codes for donations.
This commit is contained in:
18
BuyMeCofee.Maui/Helpers/BmcBrandAssets.cs
Normal file
18
BuyMeCofee.Maui/Helpers/BmcBrandAssets.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
namespace BuyMeCofee.Maui.Helpers;
|
||||
|
||||
internal static class BmcBrandAssets
|
||||
{
|
||||
private const string LogoResourceName = "BuyMeCofee.Maui.Resources.Images.bmc_logo.png";
|
||||
|
||||
internal static ImageSource GetCupLogo()
|
||||
{
|
||||
var assembly = typeof(BmcBrandAssets).Assembly;
|
||||
return ImageSource.FromStream(() => assembly.GetManifestResourceStream(LogoResourceName)!);
|
||||
}
|
||||
|
||||
internal static Stream GetCupLogoStream()
|
||||
{
|
||||
var assembly = typeof(BmcBrandAssets).Assembly;
|
||||
return assembly.GetManifestResourceStream(LogoResourceName)!;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user