I want to hide the Sublime Text sidebar and only show it as an overlay when hovering it.
There are some plugins which hide the sidebar and simply show them again when hovering, but not as an overlay (thus “wasting” space).
How can I achieve this?
I want to hide the Sublime Text sidebar and only show it as an overlay when hovering it.
There are some plugins which hide the sidebar and simply show them again when hovering, but not as an overlay (thus “wasting” space).
How can I achieve this?
can you give examples of those plugins? it might help to see how they are working
have you tried the different "overlay_scroll_bars"
settings?
http://www.sublimetext.com/docs/3/themes.html#settings
this should affect the style of the scroll bars – generally they should be semi-transparent and the overlay property of the scroll_area_control should be set to true
If I understand. @annabelle wants something like “overlay_scroll_bars”, but for sidebar in general.
seems like it would be possible by customizing the theme to work with a separate setting for whether the sidebar should use overlay_scroll_bars
, just like Boxy does with it’s custom settings.
// Scroll Bars
{
"class": "scroll_area_control",
"settings": ["overlay_scroll_bars"],
"overlay": true
},
{
"class": "scroll_area_control",
"settings": ["!overlay_scroll_bars"],
"overlay": false
},
{
"class": "scroll_area_control",
"parents": [{"class": "sidebar_container"}],
"content_margin": [0, 10, 0, 10]
},
{
"class": "scroll_bar_control",
"layer0.opacity": 1.0,
"content_margin": 4,
"tint_index": 0
},
{
"class": "scroll_bar_control",
"settings": ["overlay_scroll_bars"],
"layer0.opacity": 0.0
},
{
"class": "scroll_bar_control",
"settings": ["!overlay_scroll_bars"],
"layer0.opacity": 1.0
},
Hmm, interesting I’ll try that and be back soon
Nope, that’s not working:
no such prop overlay for sidebar_container
We don’t currently have an implementation for a “slide-out” sidebar or panels that overlay the main editor pane(s).
I’m not sure if this something we would do or not. Personally, I am not a fan of UIs with hover-activated slide effects because they are often finicky.