2021-09-03 09:16:36 +02:00
|
|
|
@using BTCPayServer.Abstractions.Contracts
|
2022-03-02 18:28:12 +01:00
|
|
|
@using BTCPayServer.Abstractions.Extensions
|
2021-09-03 09:16:36 +02:00
|
|
|
@inject ISettingsRepository _settingsRepository
|
|
|
|
@addTagHelper *, BundlerMinifier.TagHelpers
|
|
|
|
@{ var theme = await _settingsRepository.GetTheme(); }
|
|
|
|
|
|
|
|
@if (theme.CustomTheme)
|
|
|
|
{
|
|
|
|
<link href="@Context.Request.GetRelativePathOrAbsolute(theme.CssUri)" rel="stylesheet" asp-append-version="true" />
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
<link href="~/main/themes/default.css" asp-append-version="true" rel="stylesheet" />
|
|
|
|
<link href="~/main/themes/default-dark.css" asp-append-version="true" rel="stylesheet" id="DarkThemeLinkTag" />
|
|
|
|
<script src="~/js/theme-switch.js" asp-append-version="true"></script>
|
|
|
|
<noscript><style>.btcpay-theme-switch { display: none !important; }</style></noscript>
|
|
|
|
}
|
|
|
|
|