diff options
| author | bobzel <zzzman@gmail.com> | 2024-03-31 00:09:33 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2024-03-31 00:09:33 -0400 |
| commit | 47ae05389d7ce564efde19b7a639b38842759cc1 (patch) | |
| tree | 92867ffef815ac7cb44474c79d72b8c56dd0f66c /src/client/views/global/globalScripts.ts | |
| parent | 10e1a8c7edbc0c19fda4efd82d7ed802ccbf9b4f (diff) | |
fixed dropdown in title bar location. moved rotate button up to not interfere with button bar. don't blur title when editing it. fix drawgging rotate center on templates. support setting alternate colors for text docs -- pretty hacky. fixed tabbing through dashFieldViews.
Diffstat (limited to 'src/client/views/global/globalScripts.ts')
| -rw-r--r-- | src/client/views/global/globalScripts.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/views/global/globalScripts.ts b/src/client/views/global/globalScripts.ts index 3ea7bfbcd..dab642499 100644 --- a/src/client/views/global/globalScripts.ts +++ b/src/client/views/global/globalScripts.ts @@ -59,7 +59,9 @@ ScriptingGlobals.add(function setBackgroundColor(color?: string, checkResult?: b obj[fieldKey] = color; CollectionFreeFormDocumentView.setStringValues(contentFrameNumber, dv.Document, obj); } else { - dv.Document[DocData][fieldKey] = color; + const dataKey = Doc.LayoutFieldKey(dv.Document); + const alternate = (dv.layoutDoc[dataKey + '_usePath'] ? '_' + dv.layoutDoc[dataKey + '_usePath'] : '').replace(':hover', ''); + dv.dataDoc[fieldKey + alternate] = color; } }); } else { |
