frankyonnetti / gravity-sublime-theme

A Sublime Text theme that feels right at home on macOS
https://frankyonnetti.github.io/gravity-sublime-theme/
396 stars 26 forks source link

git - change font color in file tree for ignored items #61

Closed sobaw98247 closed 4 years ago

sobaw98247 commented 4 years ago

Hey, how can I change color/opacity for ignored files?

Screen from Meetio Theme: image

Gravity One: image

frankyonnetti commented 4 years ago

I didn't realize that was possible in ST. I'll have to take a look.

sobaw98247 commented 4 years ago

Here's a little more about this: https://www.sublimetext.com/docs/3/git_integration.html

Files and folders displayed in the side bar will include a status badge along the right-hand edge, when modified. This includes files and folder in the Folders section of the side bar, along with files in the Open Files section. Ignored files and folders are de-emphasized in the side bar by reducing the opacity of the name.

I added

{
    "class": "sidebar_label",
    "parents": [{"class": "file_system_entry", "attributes": ["ignored"],}],
    "opacity": 0.5,
}

and it works for me :)

PR: https://github.com/frankyonnetti/gravity-sublime-theme/pull/62

frankyonnetti commented 4 years ago

Thanks for your help on this @sobaw98247 , it's a really cool feature. I'm going to dim the folder & icons as well and add it to the other 2 themes. I hope to push in the next day or so.

frankyonnetti commented 4 years ago

This change is in tag release 3.5.9