if "fade_fold_buttons": true,
there hides ALL fold buttons unless the mouse is over the gutter
if "fade_fold_buttons": false,
there hides NONE fold buttons unless the mouse is over the gutter
Is there way to show ONLY FOLDED fold buttons unless the mouse is over the gutter?
Fade fold buttons
FeelUs
#1
1 Like
jwortmann
#2
I don’t think this is currently possible. The gutter would need to receive its own theme class, then you could set the setting to false
and add a custom rule to your theme, like this:
{
"class": "fold_button_control",
"parents": [{"class": "hypothetical_gutter_class", "attributes": ["!hover"]}],
"attributes": ["expanded"],
"layer0.opacity": {"target": 0.0, "speed": 6, "interpolation": "smoothstep"}
},
But this "hypothetical_gutter_class"
doesn’t exist, therefore it can’t work. Alternatively, the Sublime Text devs could add another option for this setting, like for example "fade_fold_buttons": "unfolded"
and implement it directly in ST core. Perhaps this would be worth a feature request in the issue tracker.
1 Like