diff --git a/apps/toolbox/src/pages/box-shadow.ts b/apps/toolbox/src/pages/box-shadow.ts index 5de8dd7b1..f9c156a9e 100644 --- a/apps/toolbox/src/pages/box-shadow.ts +++ b/apps/toolbox/src/pages/box-shadow.ts @@ -15,6 +15,7 @@ export class BoxShadowModel extends Observable { // private _boxShadow: string = '5 5 5 10 rgba(255, 0, 0, .9)'; background: string; + borderColor: string; borderWidth: number; borderRadius: number; appliedBoxShadow: string; @@ -72,18 +73,23 @@ export class BoxShadowModel extends Observable { this.notifyPropertyChange('selectedBorderType', value); switch (value) { case 'solid': - this.borderWidth = this.borderWidth ? 0 : 2; + this.borderWidth = this.borderWidth ? 0 : 5; break; case 'rounded': this.borderRadius = this.borderRadius ? 0 : 10; break; + case 'colorful': + this.borderColor = this.borderColor ? null : 'green blue pink yellow'; + break; case 'none': + this.borderColor = null; this.borderRadius = 0; this.borderWidth = 0; break; default: break; } + this.notifyPropertyChange('borderColor', this.borderColor); this.notifyPropertyChange('borderRadius', this.borderRadius); this.notifyPropertyChange('borderWidth', this.borderWidth); } diff --git a/apps/toolbox/src/pages/box-shadow.xml b/apps/toolbox/src/pages/box-shadow.xml index f19aea34b..6724ea0d4 100644 --- a/apps/toolbox/src/pages/box-shadow.xml +++ b/apps/toolbox/src/pages/box-shadow.xml @@ -9,129 +9,48 @@ - - + + - - + + - - + + - - + + - - + + - + - + - + - + + - - - + - - + - - + - - - - - +