Skip to content
Tomas Restrepo edited this page Jul 30, 2017 · 2 revisions

With version 3.6, Viasfora supports themes, which allow you to easily change the colors used by all features in Viasfora. Themes can be exported/imported from Tools -> Options -> Viasfora -> Import/Export.

A theme is just a text file in JSON format, containing a set of entries like this:

{
    "<option_name>": {
        "foreground": "<html_color>|automatic",
        "background": "<html_color>|automatic",
        "style": "None|Bold"
    },
...
}

Valid values for the foreground or background properties can are:

  • An HTML color name
  • An HTML color expressed in #RRGGBB format
  • automatic, which matches the Automatic color option in Visual Studio.

The following options are valid:

  • viasfora.keyword.flowcontrol
  • viasfora.keyword.linq
  • viasfora.keyword.visibility
  • viasfora.string.escape_sequence
  • viasfora.string.format.specifier
  • viasfora.column.current
  • viasfora.text.obfuscated
  • viasfora.xml.closing
  • viasfora.xml.prefix
  • viasfora.xml.closing.prefix
  • viasfora.razor.closing.element
  • viasfora.rainbow.# (where # is 1 - 9)
  • viasfora.rainbow.error

The sample below illustrates the default Viasfora color theme:

{
  "viasfora.keyword.flowcontrol": {
    "foreground": "OrangeRed",
    "background": "automatic",
    "style": "None"
  },
  "viasfora.keyword.linq": {
    "foreground": "MediumSeaGreen",
    "background": "automatic",
    "style": "None"
  },
  "viasfora.string.escape_sequence": {
    "foreground": "Fuchsia",
    "background": "automatic",
    "style": "None"
  },
  "viasfora.string.format.specifier": {
    "foreground": "MediumSlateBlue",
    "background": "automatic",
    "style": "None"
  },
  "viasfora.keyword.visibility": {
    "foreground": "DimGray",
    "background": "automatic",
    "style": "None"
  },
  "viasfora.column.current": {
    "foreground": "LightGrey",
    "background": "automatic",
    "style": "None"
  },
  "viasfora.text.obfuscated": {
    "foreground": "White",
    "background": "WhiteSmoke",
    "style": "None"
  },
  "viasfora.rainbow.1": {
    "foreground": "#FF9900",
    "background": "automatic",
    "style": "None"
  },
  "viasfora.rainbow.2": {
    "foreground": "DeepPink",
    "background": "automatic",
    "style": "None"
  },
  "viasfora.rainbow.3": {
    "foreground": "YellowGreen",
    "background": "automatic",
    "style": "None"
  },
  "viasfora.rainbow.4": {
    "foreground": "DarkViolet",
    "background": "automatic",
    "style": "None"
  },
  "viasfora.rainbow.5": {
    "foreground": "DimGray",
    "background": "automatic",
    "style": "None"
  },
  "viasfora.rainbow.6": {
    "foreground": "RoyalBlue",
    "background": "automatic",
    "style": "None"
  },
  "viasfora.rainbow.7": {
    "foreground": "Crimson",
    "background": "automatic",
    "style": "None"
  },
  "viasfora.rainbow.8": {
    "foreground": "DarkTurquoise",
    "background": "automatic",
    "style": "None"
  },
  "viasfora.rainbow.9": {
    "foreground": "Green",
    "background": "automatic",
    "style": "None"
  },
  "viasfora.rainbow.error": {
    "foreground": "automatic",
    "background": "LightCoral",
    "style": "None"
  },
  "viasfora.xml.closing": {
    "foreground": "DarkOrange",
    "background": "automatic",
    "style": "None"
  },
  "viasfora.xml.prefix": {
    "foreground": "ForestGreen",
    "background": "automatic",
    "style": "None"
  },
  "viasfora.xml.closing.prefix": {
    "foreground": "OrangeRed",
    "background": "automatic",
    "style": "None"
  },
  "viasfora.razor.closing.element": {
    "foreground": "DarkOrange",
    "background": "automatic",
    "style": "Bold"
  }
}
Clone this wiki locally