From a5771625dffdca6af19b79a3ddb8dea906d9014a Mon Sep 17 00:00:00 2001 From: Hendrik Horstmann <65970327+heinrich26@users.noreply.github.com> Date: Wed, 22 May 2024 16:17:30 +0200 Subject: [PATCH] Make the Tab Icons color change as well, if a Tab is dirty (unsaved) --- src/ExcalidrawView.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ExcalidrawView.ts b/src/ExcalidrawView.ts index c1475c54..95f20bf9 100644 --- a/src/ExcalidrawView.ts +++ b/src/ExcalidrawView.ts @@ -2293,6 +2293,8 @@ export default class ExcalidrawView extends TextFileView { } if(!DEVICE.isMobile) { if(requireApiVersion("0.16.0")) { + //@ts-ignore + this.leaf.tabHeaderInnerIconEl.style.color="var(--color-accent)" //@ts-ignore this.leaf.tabHeaderInnerTitleEl.style.color="var(--color-accent)" } @@ -2320,6 +2322,8 @@ export default class ExcalidrawView extends TextFileView { this.diskIcon.querySelector("svg").removeClass("excalidraw-dirty"); if(!DEVICE.isMobile) { if(requireApiVersion("0.16.0")) { + //@ts-ignore + this.leaf.tabHeaderInnerIconEl.style.color="" //@ts-ignore this.leaf.tabHeaderInnerTitleEl.style.color="" }