public override void Apply(ComputedStyle style, Value value) { // Get the border: BorderProperty border = GetBorder(style); if (value != null && value.Type == ValueType.Text) { if (value.Text == "transparent") { // Currently assume the default colour (black): // (Use #00000000 instead) value = null; } } // Apply the base colour: border.BaseColour = value; // Reset the border colour: border.ResetColour(); // Tell it a colour changed: border.ColourChanged(); }
public override void Apply(ComputedStyle style, Value value) { // Get the border: BorderProperty border = GetBorder(style); // Tell it a colour changed: border.ColourChanged(); }