mirror of
				https://github.com/Kareadita/Kavita.git
				synced 2025-11-03 19:17:05 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			41 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
using System;
 | 
						|
using API.Entities.Enums.Theme;
 | 
						|
using API.Entities.Interfaces;
 | 
						|
using API.Services;
 | 
						|
 | 
						|
namespace API.Entities;
 | 
						|
/// <summary>
 | 
						|
/// Represents a set of css overrides the user can upload to Kavita and will load into webui
 | 
						|
/// </summary>
 | 
						|
public class SiteTheme : IEntityDate, ITheme
 | 
						|
{
 | 
						|
    public int Id { get; set; }
 | 
						|
    /// <summary>
 | 
						|
    /// Name of the Theme
 | 
						|
    /// </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>
 | 
						|
    /// <remarks>System provided themes use an alternative location as they are packaged with the app</remarks>
 | 
						|
    public required string FileName { get; set; }
 | 
						|
    /// <summary>
 | 
						|
    /// Only one theme can have this. Will auto-set this as default for new user accounts
 | 
						|
    /// </summary>
 | 
						|
    public bool IsDefault { get; set; }
 | 
						|
 | 
						|
    /// <summary>
 | 
						|
    /// Where did the theme come from
 | 
						|
    /// </summary>
 | 
						|
    public ThemeProvider Provider { get; set; }
 | 
						|
    public DateTime Created { get; set; }
 | 
						|
    public DateTime LastModified { get; set; }
 | 
						|
    public DateTime CreatedUtc { get; set; }
 | 
						|
    public DateTime LastModifiedUtc { get; set; }
 | 
						|
}
 |