Dyalog / ride

Cross-platform IDE for Dyalog APL
https://dyalog.github.io/ride
MIT License
206 stars 32 forks source link

Separate and expand colour schemes from preferences #1238

Open abrudz opened 4 months ago

abrudz commented 4 months ago

Describe the issue you are having

Store each custom colour scheme as a separate text file with a name matching (and defining) the scheme name. For example

"[{\"name\":\"My Look\",\"theme\":\"dark\",\"styles\":\"asgn=fg:#50fa7b com=fg:#6272a4 diam=fg:#ff79c6 err=fg:#ff5555,bgo:1 fn=fg:#8be9fd idm=U kw=fg:#ff79c6 lnum=bgo:0,fg:6272a4 mtch=bgo:0.5,fg:#f8f8f2,bg:#44475a …

should become

and contain:

{
  "chrome": "dark",
  "styles": {
    "asgn": {
      "fg": "#50fa7b"
    },
    "com":  {
      "fg": "#6272a4"
    },
    "diam":  {
      "fg": ":#ff79c6"
    },
    "err":  {
      "fg": "#ff5555",
      "bgo": 1
    },
    "fn":  {
      "fg": "#8be9fd"
    },
    "idm": {
      "U": true
    },
    "kw":  {
      "fg": "#ff79c6"
    },
    "lnum": {
      "bgo": 0,
      "fg": "#6272a4"
    }
    "mtch": {
      "bgo": 0.5,
      "fg": "#f8f8f2",
      "bg": "#44475a"
    }
…

Notes: