Theme Class

Namespace:
Weavy.Core.Models
Assembly:
Weavy.Core.dll

View model for the theme page.

public class Theme
Inheritance:
System.Object → Theme

Constructors

Theme()

Properties

Color Gets or sets the theme color as a hexencoded string.
Logo Gets or sets an image used as apple-touch-icon, favicon etc.
Name Gets or sets the installation name.

Methods

DangerColor(Shade, Nullable) Get the danger color in the specified shade.
GetColor(ColorName, Shade, Nullable) Get a theme color in the specified shade.
InfoColor(Shade, Nullable) Get the info color in the specified shade.
NeutralColor(Shade) Get the neutral color in the specified shade.
PrimaryColor(Shade, Nullable) Get the primary color in the specified shade.
PrimaryColorName(Nullable) Get the name of the primary color.
SuccessColor(Shade, Nullable) Get the success color in the specified shade.
ThemeColor() Get the exact theme System.Drawing.Color as specified by the user in the theme settings.
WarningColor(Shade, Nullable) Get the warning color in the specified shade.

Extension Methods

IsNullOrDefault(T) Gets a value indicating if the specified value has the default value of the generic type.
Serialize(Object) Serializes an object, or graph of connected objects, to a byte array.
SerializeToJson(Object, Nullable, JsonSerializerSettings) Serializes an object, or graph of connected objects, to a json string.
IsValid(Object) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.