Skip to content

Commit

Permalink
Merge pull request #2066 from heinrich26/master
Browse files Browse the repository at this point in the history
Make the Tab Icons color change as well, if a Tab is dirty (unsaved)
  • Loading branch information
zsviczian authored Oct 19, 2024
2 parents fc0ac92 + 5a64e1c commit 7a08ced
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ExcalidrawView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2745,6 +2745,8 @@ export default class ExcalidrawView extends TextFileView implements HoverParent{
}
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)"
}
Expand Down Expand Up @@ -2773,6 +2775,8 @@ export default class ExcalidrawView extends TextFileView implements HoverParent{
this.actionButtons['save'].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=""
}
Expand Down

0 comments on commit 7a08ced

Please sign in to comment.