Update 0BDFDB.plugin.js

This commit is contained in:
Mirco Wittrien 2021-07-22 09:12:05 +01:00 committed by GitHub
parent 16a809abb3
commit ab78007b16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -5033,14 +5033,15 @@ module.exports = (_ => {
if (!this.props.value) return style;
style = Object.assign({}, style);
this.props.color = typeof this.props.getColor == "function" ? this.props.getColor(this.props.value) : this.props.color;
switch (this.props.type) {
style.borderColor = this.props.color;
switch (this.props.type && InternalComponents.NativeSubComponents.Checkbox.Types) {
case InternalComponents.NativeSubComponents.Checkbox.Types.DEFAULT:
style.borderColor = this.props.color;
break;
case InternalComponents.NativeSubComponents.Checkbox.Types.GHOST:
let color = BDFDB.ColorUtils.setAlpha(this.props.color, 0.15, "RGB");
style.borderColor = color;
style.backgroundColor = color;
style.borderColor = color;
break;
case InternalComponents.NativeSubComponents.Checkbox.Types.INVERTED:
style.backgroundColor = this.props.color;