Search code examples
fontssublimetext3settings

How to change font color for Terminus package in sublime text 3


How to change font color for Terminus package in sublime text 3.

I went to C:\Users\\AppData\Roaming\Sublime Text 3\Packages\User\Terminus.sublime-settings

and then added this text below to the user setting but nothing happened. please help.

[{
     "theme": "user",
        "user_theme_colors": {      
         "04": "#0000ee",  // blue     
    },
},
]

Solution

  • The reason that this doesn't work is that the settings that you're using (as posted above) are broken. This appears to be a bug in Terminus because when you use Preferences > Package Settings > Terminus > Settings, the default file content should be { } and not [ ]; sublime-settings files are JSON Objects, not JSON Lists (as sublime-keymap files are, for example).

    So it should be enough to amend your settings file with content like the following; as noted in the comments above, the theme color you posted tells Terminus what color to use when it is representing the standard terminal color for blue, so this is modified to adjust the foreground color to be that color:

    {
         "theme": "user",
        "user_theme_colors": {      
            "foreground": "#0000ee"
        },
    }
    

    In my testing here, changing the settings file and saving it is enough to see the change immediately reflected, so you should be able to have the settings open in one pane and a Terminal in another and be able to see results as you modify the scheme until things look right.

    There's a command in the command palette labelled Terminus Utilities: Generate User Theme that forces a regeneration of the custom theme information, which may be of use in case the live update doesn't seem to work.