using MediaBrowser.Model.Plugins;
namespace Jellyfin.Plugin.Placard.Configuration;
/// Rule for picking which child item's backdrop represents a library.
public enum SourceRule
{
TopRated = 0,
Random = 1,
Newest = 2
}
public class PluginConfiguration : BasePluginConfiguration
{
/// Master on/off.
public bool Enabled { get; set; } = true;
/// How to choose the source backdrop for each library.
public SourceRule Source { get; set; } = SourceRule.TopRated;
/// Darkening overlay opacity, 0-255 (default ~41%).
public int ScrimOpacity { get; set; } = 105;
/// Label height as a percent of image height.
public int FontHeightPercent { get; set; } = 20;
///
/// Per-library pinned source titles, one per line as "Library Name=Item Title".
/// A pinned library uses that item's backdrop instead of the rule.
///
public string PinnedSources { get; set; } = string.Empty;
}