Dyalog / ride

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

Separate and expand colour schemes from preferences #1238

Open abrudz opened 2 weeks ago

abrudz commented 2 weeks 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: