Allows you to retrieve color scheme information and change the color scheme
Methods
-
require("ko/colorscheme").applyEditor(name)
-
Apply the given color scheme to the editor
Parameters:
Name Type Description name
String Color scheme name
Returns:
- Type
- Void
-
require("ko/colorscheme").applyInterface(name [, noDelay])
-
Apply the given color scheme to the interface
Parameters:
Name Type Argument Default Description name
String Color scheme name
noDelay
Boolean <optional>
false Whether to delay applying the scheme by a few ms
Returns:
- Type
- Void
-
require("ko/colorscheme").applyWidgets(name [, noDelay])
-
Apply the given color scheme to the widgets
Parameters:
Name Type Argument Default Description name
String Color scheme name
noDelay
Boolean <optional>
false Whether to delay applying the scheme by a few ms
Returns:
- Type
- Void
-
require("ko/colorscheme").editor()
-
Shortcut for this.get('editor-scheme')
-
require("ko/colorscheme").get(One)
-
Get the given color scheme
Parameters:
Name Type Description One
string of editor-scheme, interface-scheme, widget-scheme
Returns:
- Type
- koIScintillaScheme
-
require("ko/colorscheme").getInterfaceColor(property [, schemeName])
-
Get the interface color for the given property
Parameters:
Name Type Argument Default Description property
String schemeName
String <optional>
"interface" Defaults to the current interface scheme
Returns:
hex color
- Type
- String
-
require("ko/colorscheme").interface()
-
Shortcut for this.get('interface-scheme')
-
require("ko/colorscheme").widget()
-
Shortcut for this.get('widget-scheme')