Sublime Forum

How to overlay sidebar?

#1

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?

0 Likes

#2

That’s not possible. You can post your suggestion here.

0 Likes

#3

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

0 Likes

#4

If I understand. @annabelle wants something like “overlay_scroll_bars”, but for sidebar in general.

0 Likes

#5

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
    },
1 Like

#6

Hmm, interesting :thumbsup: I’ll try that and be back soon :wink:

Nope, that’s not working:

no such prop overlay for sidebar_container
1 Like

#7

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.

0 Likes