Overriding status-modified in tree-view for folders


#1

I’m trying to use a different color for “git status modified” in the tree-view, so I’ve added the following to my stylesheet:

.tree-view {
  .status-modified {
    color: green !important;
  }
}

This does change the color of file items, but not the color of folders. Any idea what I’m doing wrong here? Thanks for your hints!


#2

It seems that the folders have a nested colour setting

.tree-view {
  .status-modified {
    color: green !important;

    & > .list-item {
       color: green !important;
    }
}

should suit your needs.


#3

Great, thanks a lot, ohm!