Skip to content

ColorIndicator: settings #11

@Ved-s

Description

@Ved-s

Can you please make luminance threshold adjustable along with custom black/white colors for it?
Also an option to swap bg/fg of the applied colors.

Image

I had to modify plugin code to

const bg = this.calculateLuminance(match) < 0.1 ? 'background-color: rgb(100, 100, 100);' : '';
return `<span style="color:${match}; ${bg}">${match}</span>`;

where it replaces text with spans

But i don't know how to make plugin settings

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions