BinarySkinProblem
class.NET 6 / 8 / 10.NET Framework 4.8Binarymission.WPF.Skinning
Two colours of a skin that are too alike: text that would be hard to read, or a change of state a user could not see.
public sealed class BinarySkinProblem
Members at a glance
Background | Gets the colour it is drawn on, or that it replaces. |
Contrast | Gets the contrast the two colours have. |
Description | Gets the problem in words, naming both colours, where they are seen and the two ratios. |
Foreground | Gets the colour drawn on top. |
RequiredContrast | Gets the contrast they need. |
ToString | The description. |
StateChangeRatio | The contrast a command's pointer and pressed colours must have with the colour they replace, for the change to be seen. |
Properties
Background
public BinarySkinColor Background
Gets the colour it is drawn on, or that it replaces.
Value. The role.
Contrast
public double Contrast
Gets the contrast the two colours have.
Value. The ratio, from 1 to 21.
Description
public string Description
Gets the problem in words, naming both colours, where they are seen and the two ratios.
Value. The description.
Foreground
public BinarySkinColor Foreground
Gets the colour drawn on top.
Value. The role.
RequiredContrast
public double RequiredContrast
Gets the contrast they need.
Value. The ratio.
Methods
ToString
public override string ToString()
The description.
Returns. Description.
Fields
StateChangeRatio
public const double StateChangeRatio
The contrast a command's pointer and pressed colours must have with the colour they replace, for the change to be seen.