Sublime Forum

Still no draw_minimap_border (solved)

#1

It seems that the minimap border has been fixed but it isn’t working for me – is there any way I’m doing something wrong here?

0 Likes

#2

This works for me locally with the same settings:

image

What build of Sublime are you running? Something else that might get in the way is this:

    // Set to true to draw a border around the visible rectangle on the minimap.
    // The color of the border will be determined by the "minimapBorder" key in
    // the color scheme
    "draw_minimap_border": false,

This is the default value of the preference, but the comment mentions that the color comes from the color scheme, so that could be having an effect here (for example if it doesn’t provide that color or its the same as the background).

0 Likes

#3

Thanks for your reply! I’m using Build 3211 with the predawn them, “Packages/Predawn/predawn.tmTheme”. I found this snippet,

			<key>minimapBorder</key>
			<string>#F1826025</string>

here,

Is it possible to modify this to the string value you have (which I can see!)?

0 Likes

#4

That is indeed the source of your issue. In using that theme I can see that there’s a minimap border there, but it’s nearly invisible (best seen in a screenshot zoom :smile:).

The easiest/safest/best way to adjust this would be with a color scheme customization file. This is covered in more detail in the documentation on color schemes (particularly the section on customization), but the short version is that you can create a file in your User package that will be combined with the underlying theme file at load time, so that you can adjust some parts of the color scheme while leaving the rest alone.

In this case, if you were to create Packages/User/predawn.sublime-color-scheme with the following content, the minimap border would turn white. The change should happen instantly when you save the file so that you can see the changes you’re making applied directly.

{
    "globals": {
        "minimap_border": "#FFFFFF",
    }
}

For a task like this I would recommend PackageDev (I also just recommend it in general, it makes a lot of things better). With that package you can choose PackageDev: Edit Current Color Scheme from the command palette to open a window with your theme on the left and the customized file on the right, so that you can just make the required changes and save the file.

1 Like

#5

Ah, thank you so much, expecially for making your directions so specific. I now see a border.

1 Like