Skip to content

Support for .sublime-color-scheme file format #29

@simov

Description

@simov

Here is how I (dirty) fixed Rainbolth to work with the new .sublime-color-scheme file format.

  1. Clone this repo in your ~/.config/sublime-text-3/Packages
  2. Open rainbowth.py and add the following line inside the update_color_scheme method:
     print("Rainbowth: color scheme needs updating")
+    return colors
  1. Add the palette colors to your .sublime-color-scheme file:
{
  "name": "rainbowth0",
  "scope": "rainbowth0",
  "foreground": "Red",
  "background": "#000001"
},
{
  "name": "rainbowth1",
  "scope": "rainbowth1",
  "foreground": "Chartreuse",
  "background": "#000001"
},
{
  "name": "rainbowth0",
  "scope": "rainbowth0-lineHighlight",
  "foreground": "Red",
  "background": "#000001"
},
{
  "name": "rainbowth1",
  "scope": "rainbowth1-lineHighlight",
  "foreground": "Chartreuse",
  "background": "#000001"
},

The above configuration have only 2 colors, but you can add more - rainbowth2, rainbowth3 and so on:

rainbolth

The above #000001 background color is for dark color schemes. It's important to use this color instead of plain black #000000 because otherwise Sublime inverts the values. If you use lighter color scheme choose another background color.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions