Sublime Forum

Increase scrollbar width build 4192

#1

Using Auto theme. Under Preferences > Customize Theme I tried both these in the right panel:

{
    "variables":
    {
    },
    "rules":
    [
        {
            "class": "scroll_bar_control",
            "content_margin": [0, 16] // Vertical scrollbar: 16px wide
        },
        {
            "class": "scroll_bar_control",
            "attributes": ["horizontal"],
            "content_margin": [16, 0] // Horizontal scrollbar: 16px tall
        },
        {
            "class": "puck_control", // The draggable "thumb" or "puck"
            "content_margin": [0, 12] // Vertical puck: 12px wide
        },
        {
            "class": "puck_control",
            "attributes": ["horizontal"],
            "content_margin": [12, 0] // Horizontal puck: 12px tall
        }
    ]
}

OR

[
    {
        "class": "scroll_bar_control",
        "content_margin": [0, 16] // Vertical scrollbar: 16px wide
    },
    {
        "class": "scroll_bar_control",
        "attributes": ["horizontal"],
        "content_margin": [16, 0] // Horizontal scrollbar: 16px tall
    },
    {
        "class": "puck_control", // The draggable "thumb" or "puck"
        "content_margin": [0, 12] // Vertical puck: 12px wide
    },
    {
        "class": "puck_control",
        "attributes": ["horizontal"],
        "content_margin": [12, 0] // Horizontal puck: 12px tall
    }
]

There was no change. The console message: “Unable to open /home/profudguru/.config/sublime-text/Packages/Theme - Default/Adaptive.sublime-theme”

I created the directory home/profudguru/.config/sublime-text/Packages/Theme - Default/ and moved Adaptive.sublime-theme to the new directory. There was an immediate change in the interface: no scrollbar was shown and the tabs area doesn’t display right, and smears on resizing the window.

I already turned off the overlay scrollbar, I want it to always be visible. I already turned off the minimap. If it’s impossible to change the scrollbar width I will turn on minimap and try to get used to it.

Thank you.
EDIT:
I’m using Linux Mint Cinnamon (new Linux user) and I already changed scrollbar width in Mint. It worked in Brave browser but there was no change in Sublime.

0 Likes

#2

That’s a false positive message. Ignore it. Remove manually created overrides as they will augment any updated theme.

Simplest way to enlarge all scroll bars is…

// Documentation at https://www.sublimetext.com/docs/themes.html
{
	"variables":
	{
	},
	"rules":
	[
		{
			"class": "scroll_track_control",
			"content_margin": 8
		},
	]
}

Note that in case you want to maintain the rounded edges, you’d also need to provide new textures.

1 Like

#3

That works. Thanks.

0 Likes