mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-01-19 05:33:31 +01:00
29 lines
738 B
C#
29 lines
738 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace BTCPayServer.Services
|
|
{
|
|
public class ThemeSettings
|
|
{
|
|
[Display(Name = "Use custom theme")]
|
|
public bool CustomTheme { get; set; }
|
|
|
|
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Populate)]
|
|
[MaxLength(500)]
|
|
[Display(Name = "Custom Theme CSS URL")]
|
|
public string CustomThemeCssUri { get; set; }
|
|
|
|
public string CssUri
|
|
{
|
|
get => CustomTheme ? CustomThemeCssUri : "/main/themes/default.css";
|
|
}
|
|
|
|
public bool FirstRun { get; set; }
|
|
public override string ToString()
|
|
{
|
|
// no logs
|
|
return string.Empty;
|
|
}
|
|
}
|
|
}
|