I want to make the tab close button of each tab invisible except when I hover this tab.
Here is how I tried to adjust Default.sublime-theme
for this:
{
"variables":
{
"file_tab_close_opacity": { "target": 0, "speed": -1 },
"file_tab_close_hover_opacity": { "target": 1, "speed": -1 },
"file_tab_close_selected_opacity": { "target": 0, "speed": -1 },
"file_tab_close_selected_hover_opacity": { "target": 1, "speed": -1 },
},
"rules":
[
]
}
However, this doesn’t really make the desired behavior. With the current adjustments, the tab close button appears when I hover the area of the tab close button — it is not enough to hover just the tab itself for this.
How to achieve the desired behavior? Which settings, and how, should I adjust?
And a side question: I already have "animation_enabled": false
, but despite of this, tab close buttons were nevertheless appeared and disappeared smoothly, not instantly. To make them appear and disappear instantly, I changed the value of speed
to -1
. Is it correct or there is a better way?