mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 18:11:36 +01:00
fe18e71538
* Remove Bootstrap/Creative CSS file customizability Customizations should be done using themes * Remove deprecated Casa and Classic themes They are still available in the design system repo and should be added as custom theme CSS file * Use either standard or custom theme * Remove deprecated themes * Improve theme select UI * Finish and refactor theme switching * updates theme copy * Update BTCPayServer/Views/Server/Theme.cshtml Co-authored-by: Zaxounette <51208677+Zaxounette@users.noreply.github.com> * Combine creative.css and site.css Co-authored-by: dstrukt <gfxdsign@gmail.com> Co-authored-by: Zaxounette <51208677+Zaxounette@users.noreply.github.com>
19 lines
656 B
C#
19 lines
656 B
C#
using System.Threading.Tasks;
|
|
using BTCPayServer.Abstractions.Contracts;
|
|
using BTCPayServer.Services;
|
|
|
|
namespace BTCPayServer
|
|
{
|
|
public static class SettingsRepositoryExtensions
|
|
{
|
|
public static async Task<PoliciesSettings> GetPolicies(this ISettingsRepository settingsRepository)
|
|
{
|
|
return await settingsRepository.GetSettingAsync<PoliciesSettings>() ?? new PoliciesSettings();
|
|
}
|
|
public static async Task<ThemeSettings> GetTheme(this ISettingsRepository settingsRepository)
|
|
{
|
|
return await settingsRepository.GetSettingAsync<ThemeSettings>() ?? new ThemeSettings();
|
|
}
|
|
}
|
|
}
|