mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-07-31 14:33:50 -04:00
Fix for themes not applying (#1873)
# Fixed: - Fixed: Fixed an issue where themes would not apply properly.
This commit is contained in:
parent
c599907928
commit
a692c0c531
@ -1,4 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using API.Entities.Enums.Theme;
|
using API.Entities.Enums.Theme;
|
||||||
using API.Entities.Interfaces;
|
using API.Entities.Interfaces;
|
||||||
using API.Services;
|
using API.Services;
|
||||||
@ -16,6 +16,10 @@ public class SiteThemeDto : IEntityDate
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public required string Name { get; set; }
|
public required string Name { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
/// Normalized name for lookups
|
||||||
|
/// </summary>
|
||||||
|
public required string NormalizedName { get; set; }
|
||||||
|
/// <summary>
|
||||||
/// File path to the content. Stored under <see cref="DirectoryService.SiteThemeDirectory"/>.
|
/// File path to the content. Stored under <see cref="DirectoryService.SiteThemeDirectory"/>.
|
||||||
/// Must be a .css file
|
/// Must be a .css file
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
using API.Entities;
|
using API.Entities;
|
||||||
using API.Entities.Enums;
|
using API.Entities.Enums;
|
||||||
using API.Entities.Enums.UserPreferences;
|
using API.Entities.Enums.UserPreferences;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using API.Entities.Enums.Theme;
|
using API.Entities.Enums.Theme;
|
||||||
using API.Entities.Interfaces;
|
using API.Entities.Interfaces;
|
||||||
using API.Services;
|
using API.Services;
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
export interface SiteTheme {
|
export interface SiteTheme {
|
||||||
id: number;
|
id: number;
|
||||||
name: string;
|
name: string;
|
||||||
|
normalizedName: string;
|
||||||
filePath: string;
|
filePath: string;
|
||||||
isDefault: boolean;
|
isDefault: boolean;
|
||||||
provider: ThemeProvider;
|
provider: ThemeProvider;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user