keyboardio / Chrysalis

Graphical configurator for Kaleidoscope-powered keyboards
https://github.com/keyboardio/Chrysalis#chrysalis
GNU General Public License v3.0
497 stars 65 forks source link

Chrysalis LED Color Picker should include some themes (preset palettes) #1260

Open mattmc3 opened 1 year ago

mattmc3 commented 1 year ago

Describe the solution you'd like

It would be nice if the Chrysalis color picker let you choose from popular themes so that you could start with a preset color palette for your Model 100 LEDs.

Describe alternatives you've considered

I have been using a shell script I've written that pulls from iTerm2 color schemes and generates the palette JSON script to import into Chrysalis. I would love to see a similar feature integrated into the tool.

Additional context

For the time being, if others are interested in using the shell script, it uses fzf to search for themes. To load into Chrysalis, you need to use the backup feature to export your JSON, open it in an editor, and replace the palette section at the bottom with the contents generated from the palette shell script. Then, reimport.

$ palette choose tokyo
"palette": [
  {"r": 0, "g": 0, "b": 0, "rgb": "rgb(0, 0, 0)"},
  {"r": 247, "g": 118, "b": 142, "rgb": "rgb(247, 118, 142)"},
  {"r": 158, "g": 206, "b": 106, "rgb": "rgb(158, 206, 106)"},
  {"r": 224, "g": 175, "b": 104, "rgb": "rgb(224, 175, 104)"},
  {"r": 122, "g": 162, "b": 247, "rgb": "rgb(122, 162, 247)"},
  {"r": 187, "g": 154, "b": 247, "rgb": "rgb(187, 154, 247)"},
  {"r": 125, "g": 207, "b": 255, "rgb": "rgb(125, 207, 255)"},
  {"r": 169, "g": 177, "b": 214, "rgb": "rgb(169, 177, 214)"},
  {"r": 29, "g": 32, "b": 47, "rgb": "rgb(29, 32, 47)"},
  {"r": 0, "g": 0, "b": 0, "rgb": "rgb(0, 0, 0)"},
  {"r": 0, "g": 0, "b": 0, "rgb": "rgb(0, 0, 0)"},
  {"r": 0, "g": 0, "b": 0, "rgb": "rgb(0, 0, 0)"},
  {"r": 0, "g": 0, "b": 0, "rgb": "rgb(0, 0, 0)"},
  {"r": 0, "g": 0, "b": 0, "rgb": "rgb(0, 0, 0)"},
  {"r": 0, "g": 0, "b": 0, "rgb": "rgb(0, 0, 0)"},
  {"r": 0, "g": 0, "b": 0, "rgb": "rgb(0, 0, 0)"}
]
Screenshot 2023-03-04 at 6 30 04 PM Screenshot 2023-03-04 at 6 35 20 PM