Sublime Forum

How to the color scheme of the build panel?

#1

How to the color scheme of the build panel?

On the sublime-build file I can set:

            "syntax": "Packages/Amxx Pawn/AMXX-Console.sublime-syntax",

But if I do:

            "syntax": "Packages/Amxx Pawn/AMXX-Console.sublime-syntax",
            "color_scheme": "Packages/Amxx Pawn/AMXX-Console.tmTheme",

It does not compile and throws:

__init__() got an unexpected keyword argument 'color_scheme'

The package ANSIescape seems to be able to change it and this other thread says it is impossible and will never be possible:

  1. Change the BG Color of the Build Panel (new ST2 Build 2165)
0 Likes

#2

You need to assign the scheme from a plugin. Retrieve the output panel’s view id and execute view.settings().set('color_scheme', ...).

The ANSIescape package uses a custom target instead of the default exec, which does not have support for color scheme setting.

Depending on what you want, specifying a Widget.sublime-settings file might be more appropriate though, as is mentioned in that thread.

2 Likes

#3

I found out how to do it. When I do this on the .sublime-build file:

            "syntax": "Packages/Amxx Pawn/AMXX-Console.sublime-syntax",

I can create the file Packages/Amxx Pawn/AMXX-Console.sublime-settings within:

{
	"color_scheme": "Packages/dark-pawn.tmTheme"
}

And the syntax will be set as I intend to, when writing this on the .sublime-build file:

            "syntax": "Packages/Amxx Pawn/AMXX-Console.sublime-syntax",
            "color_scheme": "Packages/Amxx Pawn/AMXX-Console.tmTheme",
0 Likes