mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 06:21:44 +01:00
* Store Branding: Refactoring and logo as favicon - Encapsulates store branding properties into their own view model - Uses the logo as favicon on public pages * Refactorings * Updates
24 lines
607 B
C#
24 lines
607 B
C#
using BTCPayServer.Data;
|
|
|
|
namespace BTCPayServer.Models;
|
|
|
|
public class StoreBrandingViewModel
|
|
{
|
|
public string BrandColor { get; set; }
|
|
public string LogoFileId { get; set; }
|
|
public string CssFileId { get; set; }
|
|
public string CustomCSSLink { get; set; }
|
|
public string EmbeddedCSS { get; set; }
|
|
|
|
public StoreBrandingViewModel()
|
|
{
|
|
}
|
|
|
|
public StoreBrandingViewModel(StoreBlob storeBlob)
|
|
{
|
|
if (storeBlob == null) return;
|
|
BrandColor = storeBlob.BrandColor;
|
|
LogoFileId = storeBlob.LogoFileId;
|
|
CssFileId = storeBlob.CssFileId;
|
|
}
|
|
}
|