Skip to content

Commit

Permalink
Give VCS settings more future-proof names
Browse files Browse the repository at this point in the history
  • Loading branch information
alecmev committed Aug 9, 2024
1 parent 92bc386 commit 8fa0a05
Show file tree
Hide file tree
Showing 7 changed files with 94 additions and 94 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,15 +177,15 @@ Tabs width:
#### Enable VS Code style sidebar VCS coloring

```json
"vcs_color": true,
"spacegray_sidebar_vcs_label": true,
```

![image](screenshots/spacegray-vcs.png)

To also color expanded folders:

```json
"vcs_color_expanded": true,
"spacegray_sidebar_vcs_expanded": true,
```

Originally implemented in [Toxin](https://github.com/p3lim/sublime-toxin) by [@p3lim](https://github.com/p3lim).
Expand Down
36 changes: 18 additions & 18 deletions Spacegray Eighties.sublime-theme
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@

{
"class": "vcs_status_badge",
"settings": ["vcs_color"],
"settings": ["spacegray_sidebar_vcs_label"],
"layer0.tint": "var(base02)"
},

Expand All @@ -586,7 +586,7 @@
{ "class": "tree_row", "attributes": ["!expanded"] },
{ "class": "file_system_entry", "attributes": ["untracked"] }
],
"settings": ["vcs_color"],
"settings": ["spacegray_sidebar_vcs_label"],
"color": "color(var(base0B) a(0.75))"
},
{
Expand All @@ -595,15 +595,15 @@
{ "class": "tree_row", "attributes": ["!expanded", "hover"] },
{ "class": "file_system_entry", "attributes": ["untracked"] }
],
"settings": ["vcs_color"],
"settings": ["spacegray_sidebar_vcs_label"],
"color": "color(var(base0B) l(80%))"
},
{
"class": "sidebar_label",
"parents": [
{ "class": "file_system_entry", "attributes": ["untracked"] }
],
"settings": ["vcs_color", "vcs_color_expanded"],
"settings": ["spacegray_sidebar_vcs_label", "spacegray_sidebar_vcs_expanded"],
"color": "color(var(base0B) a(0.75))"
},
{
Expand All @@ -612,7 +612,7 @@
{ "class": "tree_row", "attributes": ["hover"] },
{ "class": "file_system_entry", "attributes": ["untracked"] }
],
"settings": ["vcs_color", "vcs_color_expanded"],
"settings": ["spacegray_sidebar_vcs_label", "spacegray_sidebar_vcs_expanded"],
"color": "color(var(base0B) l(80%))"
},

Expand All @@ -624,7 +624,7 @@
{ "class": "tree_row", "attributes": ["!expanded"] },
{ "class": "file_system_entry", "attributes": ["added"] }
],
"settings": ["vcs_color"],
"settings": ["spacegray_sidebar_vcs_label"],
"color": "color(var(base0B) a(0.75))"
},
{
Expand All @@ -633,15 +633,15 @@
{ "class": "tree_row", "attributes": ["!expanded", "hover"] },
{ "class": "file_system_entry", "attributes": ["added"] }
],
"settings": ["vcs_color"],
"settings": ["spacegray_sidebar_vcs_label"],
"color": "color(var(base0B) l(80%))"
},
{
"class": "sidebar_label",
"parents": [
{ "class": "file_system_entry", "attributes": ["added"] }
],
"settings": ["vcs_color", "vcs_color_expanded"],
"settings": ["spacegray_sidebar_vcs_label", "spacegray_sidebar_vcs_expanded"],
"color": "color(var(base0B) a(0.75))"
},
{
Expand All @@ -650,7 +650,7 @@
{ "class": "tree_row", "attributes": ["hover"] },
{ "class": "file_system_entry", "attributes": ["added"] }
],
"settings": ["vcs_color", "vcs_color_expanded"],
"settings": ["spacegray_sidebar_vcs_label", "spacegray_sidebar_vcs_expanded"],
"color": "color(var(base0B) l(80%))"
},

Expand All @@ -662,7 +662,7 @@
{ "class": "tree_row", "attributes": ["!expanded"] },
{ "class": "file_system_entry", "attributes": ["modified"] }
],
"settings": ["vcs_color"],
"settings": ["spacegray_sidebar_vcs_label"],
"color": "color(var(base0E) a(0.75))"
},
{
Expand All @@ -671,15 +671,15 @@
{ "class": "tree_row", "attributes": ["!expanded", "hover"] },
{ "class": "file_system_entry", "attributes": ["modified"] }
],
"settings": ["vcs_color"],
"settings": ["spacegray_sidebar_vcs_label"],
"color": "color(var(base0E) l(80%))"
},
{
"class": "sidebar_label",
"parents": [
{ "class": "file_system_entry", "attributes": ["modified"] }
],
"settings": ["vcs_color", "vcs_color_expanded"],
"settings": ["spacegray_sidebar_vcs_label", "spacegray_sidebar_vcs_expanded"],
"color": "color(var(base0E) a(0.75))"
},
{
Expand All @@ -688,7 +688,7 @@
{ "class": "tree_row", "attributes": ["hover"] },
{ "class": "file_system_entry", "attributes": ["modified"] }
],
"settings": ["vcs_color", "vcs_color_expanded"],
"settings": ["spacegray_sidebar_vcs_label", "spacegray_sidebar_vcs_expanded"],
"color": "color(var(base0E) l(80%))"
},

Expand All @@ -700,7 +700,7 @@
{ "class": "tree_row", "attributes": ["!expanded"] },
{ "class": "file_system_entry", "attributes": ["staged", "!modified"] }
],
"settings": ["vcs_color"],
"settings": ["spacegray_sidebar_vcs_label"],
"color": "color(var(base0E) a(0.75))"
},
{
Expand All @@ -709,15 +709,15 @@
{ "class": "tree_row", "attributes": ["!expanded", "hover"] },
{ "class": "file_system_entry", "attributes": ["staged", "!modified"] }
],
"settings": ["vcs_color"],
"settings": ["spacegray_sidebar_vcs_label"],
"color": "color(var(base0E) l(80%))"
},
{
"class": "sidebar_label",
"parents": [
{ "class": "file_system_entry", "attributes": ["staged", "!modified"] }
],
"settings": ["vcs_color", "vcs_color_expanded"],
"settings": ["spacegray_sidebar_vcs_label", "spacegray_sidebar_vcs_expanded"],
"color": "color(var(base0E) a(0.75))"
},
{
Expand All @@ -726,7 +726,7 @@
{ "class": "tree_row", "attributes": ["hover"] },
{ "class": "file_system_entry", "attributes": ["staged", "!modified"] }
],
"settings": ["vcs_color", "vcs_color_expanded"],
"settings": ["spacegray_sidebar_vcs_label", "spacegray_sidebar_vcs_expanded"],
"color": "color(var(base0E) l(80%))"
},

Expand All @@ -737,7 +737,7 @@
"parents": [
{ "class": "file_system_entry", "attributes": ["ignored", "!staged"]
}],
"settings": ["vcs_color"],
"settings": ["spacegray_sidebar_vcs_label"],
"font.italic": true
},

Expand Down
36 changes: 18 additions & 18 deletions Spacegray Light.sublime-theme
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@

{
"class": "vcs_status_badge",
"settings": ["vcs_color"],
"settings": ["spacegray_sidebar_vcs_label"],
"layer0.tint": "var(base04)"
},

Expand All @@ -588,7 +588,7 @@
{ "class": "tree_row", "attributes": ["!expanded"] },
{ "class": "file_system_entry", "attributes": ["untracked"] }
],
"settings": ["vcs_color"],
"settings": ["spacegray_sidebar_vcs_label"],
"color": "var(base0B)"
},
{
Expand All @@ -597,15 +597,15 @@
{ "class": "tree_row", "attributes": ["!expanded", "hover"] },
{ "class": "file_system_entry", "attributes": ["untracked"] }
],
"settings": ["vcs_color"],
"settings": ["spacegray_sidebar_vcs_label"],
"color": "color(var(base0B) l(40%) s(75%))"
},
{
"class": "sidebar_label",
"parents": [
{ "class": "file_system_entry", "attributes": ["untracked"] }
],
"settings": ["vcs_color", "vcs_color_expanded"],
"settings": ["spacegray_sidebar_vcs_label", "spacegray_sidebar_vcs_expanded"],
"color": "var(base0B)"
},
{
Expand All @@ -614,7 +614,7 @@
{ "class": "tree_row", "attributes": ["hover"] },
{ "class": "file_system_entry", "attributes": ["untracked"] }
],
"settings": ["vcs_color", "vcs_color_expanded"],
"settings": ["spacegray_sidebar_vcs_label", "spacegray_sidebar_vcs_expanded"],
"color": "color(var(base0B) l(40%) s(75%))"
},

Expand All @@ -626,7 +626,7 @@
{ "class": "tree_row", "attributes": ["!expanded"] },
{ "class": "file_system_entry", "attributes": ["added"] }
],
"settings": ["vcs_color"],
"settings": ["spacegray_sidebar_vcs_label"],
"color": "var(base0B)"
},
{
Expand All @@ -635,15 +635,15 @@
{ "class": "tree_row", "attributes": ["!expanded", "hover"] },
{ "class": "file_system_entry", "attributes": ["added"] }
],
"settings": ["vcs_color"],
"settings": ["spacegray_sidebar_vcs_label"],
"color": "color(var(base0B) l(40%) s(75%))"
},
{
"class": "sidebar_label",
"parents": [
{ "class": "file_system_entry", "attributes": ["added"] }
],
"settings": ["vcs_color", "vcs_color_expanded"],
"settings": ["spacegray_sidebar_vcs_label", "spacegray_sidebar_vcs_expanded"],
"color": "var(base0B)"
},
{
Expand All @@ -652,7 +652,7 @@
{ "class": "tree_row", "attributes": ["hover"] },
{ "class": "file_system_entry", "attributes": ["added"] }
],
"settings": ["vcs_color", "vcs_color_expanded"],
"settings": ["spacegray_sidebar_vcs_label", "spacegray_sidebar_vcs_expanded"],
"color": "color(var(base0B) l(40%) s(75%))"
},

Expand All @@ -664,7 +664,7 @@
{ "class": "tree_row", "attributes": ["!expanded"] },
{ "class": "file_system_entry", "attributes": ["modified"] }
],
"settings": ["vcs_color"],
"settings": ["spacegray_sidebar_vcs_label"],
"color": "var(base0E)"
},
{
Expand All @@ -673,15 +673,15 @@
{ "class": "tree_row", "attributes": ["!expanded", "hover"] },
{ "class": "file_system_entry", "attributes": ["modified"] }
],
"settings": ["vcs_color"],
"settings": ["spacegray_sidebar_vcs_label"],
"color": "color(var(base0E) l(40%) s(75%))"
},
{
"class": "sidebar_label",
"parents": [
{ "class": "file_system_entry", "attributes": ["modified"] }
],
"settings": ["vcs_color", "vcs_color_expanded"],
"settings": ["spacegray_sidebar_vcs_label", "spacegray_sidebar_vcs_expanded"],
"color": "var(base0E)"
},
{
Expand All @@ -690,7 +690,7 @@
{ "class": "tree_row", "attributes": ["hover"] },
{ "class": "file_system_entry", "attributes": ["modified"] }
],
"settings": ["vcs_color", "vcs_color_expanded"],
"settings": ["spacegray_sidebar_vcs_label", "spacegray_sidebar_vcs_expanded"],
"color": "color(var(base0E) l(40%) s(75%))"
},

Expand All @@ -702,7 +702,7 @@
{ "class": "tree_row", "attributes": ["!expanded"] },
{ "class": "file_system_entry", "attributes": ["staged", "!modified"] }
],
"settings": ["vcs_color"],
"settings": ["spacegray_sidebar_vcs_label"],
"color": "var(base0E)"
},
{
Expand All @@ -711,15 +711,15 @@
{ "class": "tree_row", "attributes": ["!expanded", "hover"] },
{ "class": "file_system_entry", "attributes": ["staged", "!modified"] }
],
"settings": ["vcs_color"],
"settings": ["spacegray_sidebar_vcs_label"],
"color": "color(var(base0E) l(40%) s(75%))"
},
{
"class": "sidebar_label",
"parents": [
{ "class": "file_system_entry", "attributes": ["staged", "!modified"] }
],
"settings": ["vcs_color", "vcs_color_expanded"],
"settings": ["spacegray_sidebar_vcs_label", "spacegray_sidebar_vcs_expanded"],
"color": "var(base0E)"
},
{
Expand All @@ -728,7 +728,7 @@
{ "class": "tree_row", "attributes": ["hover"] },
{ "class": "file_system_entry", "attributes": ["staged", "!modified"] }
],
"settings": ["vcs_color", "vcs_color_expanded"],
"settings": ["spacegray_sidebar_vcs_label", "spacegray_sidebar_vcs_expanded"],
"color": "color(var(base0E) l(40%) s(75%))"
},

Expand All @@ -739,7 +739,7 @@
"parents": [
{ "class": "file_system_entry", "attributes": ["ignored", "!staged"]
}],
"settings": ["vcs_color"],
"settings": ["spacegray_sidebar_vcs_label"],
"font.italic": true
},

Expand Down
Loading

0 comments on commit 8fa0a05

Please sign in to comment.