Sublime Forum

How to modify the color of minimap which shows in current page

#1

8LBGIMC6Q~S2_LL%5DOL~0%5D%25F

how to modify the color of minimap which shows in current page?It is hard to observe in dark mode. the scheme color that I used is Molokai.

0 Likes

#2

See the "draw_minimap_border" and "always_show_minimap_viewport" settings.

0 Likes

#3

The color is defined by the active *.sublime-theme file.

The easiest way to customize it, is by using PackageDev: Edit Current Theme...

In the right window, just place:

{
    "rules": [
        {
            "class": "minimap_control",
            "viewport_color": "var(--accent)" // the color to use
        },
    ],
}
1 Like

#4

Thank you very much.

0 Likes

#5

In ST4, you don’t have to install PackageDev exclusively to edit the current theme. You can choose UI: Customize theme from the command palette which is the same as PackageDev: Edit Current Theme with the added advantage that it is now a default functionality in ST

3 Likes

#6

Thank you very much.~~~

0 Likes