Fix for themes not applying (#1873)

# Fixed:
- Fixed: Fixed an issue where themes would not apply properly.
This commit is contained in:
Robbie Davis 2023-03-09 16:05:14 -05:00 committed by GitHub
parent c599907928
commit a692c0c531
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 3 deletions

View File

@ -1,4 +1,4 @@
using System;
using System;
using API.Entities.Enums.Theme;
using API.Entities.Interfaces;
using API.Services;
@ -16,6 +16,10 @@ public class SiteThemeDto : IEntityDate
/// </summary>
public required string Name { get; set; }
/// <summary>
/// Normalized name for lookups
/// </summary>
public required string NormalizedName { get; set; }
/// <summary>
/// File path to the content. Stored under <see cref="DirectoryService.SiteThemeDirectory"/>.
/// Must be a .css file
/// </summary>

View File

@ -1,4 +1,4 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations;
using API.Entities;
using API.Entities.Enums;
using API.Entities.Enums.UserPreferences;

View File

@ -1,4 +1,4 @@
using System;
using System;
using API.Entities.Enums.Theme;
using API.Entities.Interfaces;
using API.Services;

View File

@ -12,6 +12,7 @@
export interface SiteTheme {
id: number;
name: string;
normalizedName: string;
filePath: string;
isDefault: boolean;
provider: ThemeProvider;