obsidian-list-callouts icon indicating copy to clipboard operation
obsidian-list-callouts copied to clipboard

[FR] Editable Colors

Open Glint-Eye opened this issue 3 years ago • 1 comments

This plugin is really great. I rarely use regular callouts as i find them to disruptive for most contexts. The implementation through simple one character indicators at the start of a list is really clever.

It would be great though if the colors could be customized, as I find them a little bit faint.

Cheers and great work.

Glint-Eye avatar Aug 05 '22 12:08 Glint-Eye

This would be great! Also, maybe don't show the list marker when the callout is applied (maybe should write it on a different FR?) Anywhow, love your work!!

ndharari avatar Aug 05 '22 17:08 ndharari

I figured out how to change colors, by editing the data.json file of the plugin.

Here is how to do it:

  • Go to the plugin folder (your-obsidian-vault-folder\.obsidian\plugins\obsidian-list-callouts)
  • There open the data.json file
  • You see color and char(s) combinations. (and if set also the icon)
    • You can edit all of them however you like, tho the chars and icons are editable already from the plugin settings.
    • The colors are saved in an RGB pattern. (red/green/blue values)
    • The color set here is for the char(s)/icon. The list callout background will be adjusted automatically
    • Adding any additional pairs does not work (at the time of writing)
  • Save the file
  • Restart Obsidian (If you don't do this, the plugin will just overwrite the file, when changing plugin settings)
  • Beautiful custom colors

It is recommended that you backup the edited data.json file, in case an update of the plugin overwrites it.

adiac avatar Feb 09 '23 22:02 adiac

While you can edit the colors of the default callouts, in the latest version of this plugin you can now define your own callouts including the color

mgmeyers avatar Feb 15 '23 18:02 mgmeyers