Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

feat: add accentcolor to background of dataroom documents

Marc Seitz3bdd9e888b03
diff --git a/components/view/dataroom/dataroom-view.tsx b/components/view/dataroom/dataroom-view.tsx
index a812886d..69bcf8f1 100644
--- a/components/view/dataroom/dataroom-view.tsx
+++ b/components/view/dataroom/dataroom-view.tsx
@@ -339,7 +339,13 @@ export default function DataroomView({
if (submitted && documentData) {
return viewData.notionData?.recordMap ? (
- <div className="bg-gray-950">
+ <div
+ className="bg-gray-950"
+ style={{
+ backgroundColor:
+ brand && brand.accentColor ? brand.accentColor : "rgb(3, 7, 18)",
+ }}
+ >
<NotionPage
recordMap={viewData.notionData.recordMap}
viewId={viewData.viewId}
@@ -370,7 +376,13 @@ export default function DataroomView({
setDocumentData={setDocumentData}
/>
) : viewData.fileType === "sheet" && viewData.sheetData ? (
- <div className="bg-gray-950">
+ <div
+ className="bg-gray-950"
+ style={{
+ backgroundColor:
+ brand && brand.accentColor ? brand.accentColor : "rgb(3, 7, 18)",
+ }}
+ >
<ExcelViewer
linkId={link.id}
viewId={viewData.viewId}
@@ -387,7 +399,13 @@ export default function DataroomView({
/>
</div>
) : viewData.fileType === "sheet" && viewData.useAdvancedExcelViewer ? (
- <div className="bg-gray-950">
+ <div
+ className="bg-gray-950"
+ style={{
+ backgroundColor:
+ brand && brand.accentColor ? brand.accentColor : "rgb(3, 7, 18)",
+ }}
+ >
<AdvancedExcelViewer
linkId={link.id}
viewId={viewData.viewId}
@@ -403,7 +421,13 @@ export default function DataroomView({
/>
</div>
) : viewData.fileType === "image" ? (
- <div className="bg-gray-950">
+ <div
+ className="bg-gray-950"
+ style={{
+ backgroundColor:
+ brand && brand.accentColor ? brand.accentColor : "rgb(3, 7, 18)",
+ }}
+ >
<ImageViewer
file={viewData.file!}
linkId={link.id}
@@ -430,7 +454,13 @@ export default function DataroomView({
/>
</div>
) : viewData.fileType === "video" ? (
- <div className="bg-gray-950">
+ <div
+ className="bg-gray-950"
+ style={{
+ backgroundColor:
+ brand && brand.accentColor ? brand.accentColor : "rgb(3, 7, 18)",
+ }}
+ >
<VideoViewer
file={viewData.file!}
linkId={link.id}
@@ -447,7 +477,13 @@ export default function DataroomView({
/>
</div>
) : viewData.pages ? (
- <div className="bg-gray-950">
+ <div
+ className="bg-gray-950"
+ style={{
+ backgroundColor:
+ brand && brand.accentColor ? brand.accentColor : "rgb(3, 7, 18)",
+ }}
+ >
<PagesViewerNew
pages={viewData.pages}
viewId={viewData.viewId}