aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/PropertiesView.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views/PropertiesView.tsx')
-rw-r--r--src/client/views/PropertiesView.tsx10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/client/views/PropertiesView.tsx b/src/client/views/PropertiesView.tsx
index d0c47875f..69c46052e 100644
--- a/src/client/views/PropertiesView.tsx
+++ b/src/client/views/PropertiesView.tsx
@@ -881,6 +881,12 @@ export class PropertiesView extends ObservableReactComponent<PropertiesViewProps
doc[DocData].color = value || undefined;
});
}
+ @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 (
@@ -932,6 +938,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>