Skip to content

uwidgets.core.models.settings.theme

GitHub Action edited this page Oct 3, 2024 · 4 revisions

Theme

Namespace: uWidgets.Core.Models.Settings

Application theme settings.

public class Theme : System.IEquatable`1[[uWidgets.Core.Models.Settings.Theme, uWidgets.Core, Version=0.5.0.0, Culture=neutral, PublicKeyToken=null]]

Inheritance ObjectTheme
Implements IEquatable<Theme>
Attributes NullableContextAttribute, NullableAttribute

Properties

EqualityContract

protected Type EqualityContract { get; }

Property Value

Type

DarkMode

Should the application use the dark mode

null to use system settings

public Nullable<bool> DarkMode { get; set; }

Property Value

Nullable<Boolean>

AccentColor

Accent color in HEX format

null to use system accent color

public string AccentColor { get; set; }

Property Value

String

OpacityLevel

Widget's background opacity level

public double OpacityLevel { get; set; }

Property Value

Double

Monochrome

Should the application use monochrome theme

public bool Monochrome { get; set; }

Property Value

Boolean

UseNativeFrame

Should the application use native window frame

public bool UseNativeFrame { get; set; }

Property Value

Boolean

FontFamily

Font family to use

public string FontFamily { get; set; }

Property Value

String

Constructors

Theme(Nullable<Boolean>, String, Double, Boolean, Boolean, String)

Application theme settings.

public Theme(Nullable<bool> DarkMode, string AccentColor, double OpacityLevel, bool Monochrome, bool UseNativeFrame, string FontFamily)

Parameters

DarkMode Nullable<Boolean>
Should the application use the dark mode

null to use system settings

AccentColor String
Accent color in HEX format

null to use system accent color

OpacityLevel Double
Widget's background opacity level

Monochrome Boolean
Should the application use monochrome theme

UseNativeFrame Boolean
Should the application use native window frame

FontFamily String
Font family to use

Theme(Theme)

protected Theme(Theme original)

Parameters

original Theme

Methods

ToString()

public string ToString()

Returns

String

PrintMembers(StringBuilder)

protected bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

Boolean

GetHashCode()

public int GetHashCode()

Returns

Int32

Equals(Object)

public bool Equals(object obj)

Parameters

obj Object

Returns

Boolean

Equals(Theme)

public bool Equals(Theme other)

Parameters

other Theme

Returns

Boolean

<Clone>$()

public Theme <Clone>$()

Returns

Theme

Deconstruct(Nullable`1&, String&, Double&, Boolean&, Boolean&, String&)

public void Deconstruct(Nullable`1& DarkMode, String& AccentColor, Double& OpacityLevel, Boolean& Monochrome, Boolean& UseNativeFrame, String& FontFamily)

Parameters

DarkMode Nullable`1&

AccentColor String&

OpacityLevel Double&

Monochrome Boolean&

UseNativeFrame Boolean&

FontFamily String&

Clone this wiki locally