Skip to content

Commit

Permalink
feat: add different color to dirty attribute on Tab and Sidebar closes
Browse files Browse the repository at this point in the history
  • Loading branch information
mauroreisvieira committed Jan 13, 2022
1 parent b8f556c commit 0297bc6
Show file tree
Hide file tree
Showing 9 changed files with 495 additions and 59 deletions.
116 changes: 107 additions & 9 deletions GitHub Adaptive.sublime-theme
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,78 @@
"font.size": "var(fontSizeSm)",
"fg": "var(tabActiveForeground)"
},
{
"class": "tab_control",
"settings": [
"!show_tab_close_buttons"
]
},
{
"class": "tab_close_button",
"settings": [
"show_tab_close_buttons"
],
"content_margin": [
8,
8
],
"layer0.texture": "GitHub Theme/textures/actions/close.png",
"layer0.tint": "var(tabActiveForeground)",
"layer0.inner_margin": [
4,
4
]
},
{
"class": "tab_close_button",
"attributes": [
"!hover"
],
"parents": [
{
"class": "tab_control",
"attributes": [
"dirty"
]
}
],
"layer0.texture": "GitHub Theme/textures/tab/dirty_dot.png"
},
{
"class": "tab_close_button",
"parents": [
{
"class": "tab_control",
"attributes": [
"added"
]
}
],
"layer0.tint": "var(vcsUntracked)"
},
{
"class": "tab_close_button",
"parents": [
{
"class": "tab_control",
"attributes": [
"modified"
]
}
],
"layer0.tint": "var(vcsModified)"
},
{
"class": "tab_close_button",
"layer0.tint": "var(tabActiveForeground)"
"parents": [
{
"class": "tab_control",
"attributes": [
"deleted"
]
}
],
"layer0.tint": "var(vcsDeleted)"
},
{
"class": "grid_layout_control",
Expand Down Expand Up @@ -1104,15 +1173,44 @@
},
{
"class": "close_button",
"parents": [
{
"class": "tree_row",
"attributes": [
"hover"
]
}
"attributes": [
"hover"
],
"layer0.opacity": 1
"layer0.opacity": "var(sidebar_button_hover_opacity)"
},
{
"class": "close_button",
"attributes": [
"!hover",
"dirty"
],
"layer0.texture": "GitHub Theme/textures/tab/dirty_dot.png",
"layer0.tint": "var(foreground)",
"layer0.inner_margin": [
4,
4
]
},
{
"class": "close_button",
"attributes": [
"added"
],
"layer0.tint": "var(vcsUntracked)"
},
{
"class": "close_button",
"attributes": [
"modified"
],
"layer0.tint": "var(vcsModified)"
},
{
"class": "close_button",
"attributes": [
"deleted"
],
"layer0.tint": "var(vcsDeleted)"
},
{
"class": "icon_button_group",
Expand Down
116 changes: 107 additions & 9 deletions GitHub Dark.sublime-theme
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,78 @@
"font.size": "var(fontSizeSm)",
"fg": "var(tabActiveForeground)"
},
{
"class": "tab_control",
"settings": [
"!show_tab_close_buttons"
]
},
{
"class": "tab_close_button",
"settings": [
"show_tab_close_buttons"
],
"content_margin": [
8,
8
],
"layer0.texture": "GitHub Theme/textures/actions/close.png",
"layer0.tint": "var(tabActiveForeground)",
"layer0.inner_margin": [
4,
4
]
},
{
"class": "tab_close_button",
"attributes": [
"!hover"
],
"parents": [
{
"class": "tab_control",
"attributes": [
"dirty"
]
}
],
"layer0.texture": "GitHub Theme/textures/tab/dirty_dot.png"
},
{
"class": "tab_close_button",
"parents": [
{
"class": "tab_control",
"attributes": [
"added"
]
}
],
"layer0.tint": "var(vcsUntracked)"
},
{
"class": "tab_close_button",
"parents": [
{
"class": "tab_control",
"attributes": [
"modified"
]
}
],
"layer0.tint": "var(vcsModified)"
},
{
"class": "tab_close_button",
"layer0.tint": "var(tabActiveForeground)"
"parents": [
{
"class": "tab_control",
"attributes": [
"deleted"
]
}
],
"layer0.tint": "var(vcsDeleted)"
},
{
"class": "grid_layout_control",
Expand Down Expand Up @@ -1104,15 +1173,44 @@
},
{
"class": "close_button",
"parents": [
{
"class": "tree_row",
"attributes": [
"hover"
]
}
"attributes": [
"hover"
],
"layer0.opacity": 1
"layer0.opacity": "var(sidebar_button_hover_opacity)"
},
{
"class": "close_button",
"attributes": [
"!hover",
"dirty"
],
"layer0.texture": "GitHub Theme/textures/tab/dirty_dot.png",
"layer0.tint": "var(foreground)",
"layer0.inner_margin": [
4,
4
]
},
{
"class": "close_button",
"attributes": [
"added"
],
"layer0.tint": "var(vcsUntracked)"
},
{
"class": "close_button",
"attributes": [
"modified"
],
"layer0.tint": "var(vcsModified)"
},
{
"class": "close_button",
"attributes": [
"deleted"
],
"layer0.tint": "var(vcsDeleted)"
},
{
"class": "icon_button_group",
Expand Down
116 changes: 107 additions & 9 deletions GitHub Dimmed.sublime-theme
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,78 @@
"font.size": "var(fontSizeSm)",
"fg": "var(tabActiveForeground)"
},
{
"class": "tab_control",
"settings": [
"!show_tab_close_buttons"
]
},
{
"class": "tab_close_button",
"settings": [
"show_tab_close_buttons"
],
"content_margin": [
8,
8
],
"layer0.texture": "GitHub Theme/textures/actions/close.png",
"layer0.tint": "var(tabActiveForeground)",
"layer0.inner_margin": [
4,
4
]
},
{
"class": "tab_close_button",
"attributes": [
"!hover"
],
"parents": [
{
"class": "tab_control",
"attributes": [
"dirty"
]
}
],
"layer0.texture": "GitHub Theme/textures/tab/dirty_dot.png"
},
{
"class": "tab_close_button",
"parents": [
{
"class": "tab_control",
"attributes": [
"added"
]
}
],
"layer0.tint": "var(vcsUntracked)"
},
{
"class": "tab_close_button",
"parents": [
{
"class": "tab_control",
"attributes": [
"modified"
]
}
],
"layer0.tint": "var(vcsModified)"
},
{
"class": "tab_close_button",
"layer0.tint": "var(tabActiveForeground)"
"parents": [
{
"class": "tab_control",
"attributes": [
"deleted"
]
}
],
"layer0.tint": "var(vcsDeleted)"
},
{
"class": "grid_layout_control",
Expand Down Expand Up @@ -1104,15 +1173,44 @@
},
{
"class": "close_button",
"parents": [
{
"class": "tree_row",
"attributes": [
"hover"
]
}
"attributes": [
"hover"
],
"layer0.opacity": 1
"layer0.opacity": "var(sidebar_button_hover_opacity)"
},
{
"class": "close_button",
"attributes": [
"!hover",
"dirty"
],
"layer0.texture": "GitHub Theme/textures/tab/dirty_dot.png",
"layer0.tint": "var(foreground)",
"layer0.inner_margin": [
4,
4
]
},
{
"class": "close_button",
"attributes": [
"added"
],
"layer0.tint": "var(vcsUntracked)"
},
{
"class": "close_button",
"attributes": [
"modified"
],
"layer0.tint": "var(vcsModified)"
},
{
"class": "close_button",
"attributes": [
"deleted"
],
"layer0.tint": "var(vcsDeleted)"
},
{
"class": "icon_button_group",
Expand Down
Loading

0 comments on commit 0297bc6

Please sign in to comment.