diff options
Diffstat (limited to 'src/client/views/PropertiesView.tsx')
-rw-r--r-- | src/client/views/PropertiesView.tsx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/client/views/PropertiesView.tsx b/src/client/views/PropertiesView.tsx index 024db82a4..775e15772 100644 --- a/src/client/views/PropertiesView.tsx +++ b/src/client/views/PropertiesView.tsx @@ -847,6 +847,12 @@ export class PropertiesView extends ObservableReactComponent<PropertiesViewProps set colorFil(value) { this.selectedDoc && (this.selectedDoc[DocData].fillColor = value || undefined); } // prettier-ignore @computed get colorStk() { return StrCast(this.selectedDoc?.[DocData].color); } // prettier-ignore set colorStk(value) { this.selectedDoc && (this.selectedDoc[DocData].color = value || undefined); } // prettier-ignore + @computed get borderColor() { + const doc = this.selectedDoc; + const layoutDoc = doc ? Doc.Layout(doc) : doc; + return StrCast(layoutDoc); + } + set borderColor(value) { this.selectedDoc && (this.selectedDoc[DocData].color = value || undefined); } // prettier-ignore colorButton(value: string, type: string, setter: () => void) { return ( @@ -898,6 +904,10 @@ export class PropertiesView extends ObservableReactComponent<PropertiesViewProps return this.colorPicker(this.colorStk, (color: string) => { this.colorStk = color; }); // prettier-ignore } + @computed get borderColorPicker() { + return this.colorPicker(this.colorStk, (color: string) => { this.colorStk = color; }); // prettier-ignore + } + @computed get strokeAndFill() { return ( <div> |