elementary / elementary/code

Highlight Colors

未关闭
#454 0 条评论 7 个 reaction 已指派 0 人 在 GitHub 查看
Priority: Low
主要语言
Vala
星标
521
派生
118
平均合并
1 天 8 小时
30 天内合并 PR
14

描述

A super popular type of plugin I see for Atom and Sublime is one that highlights recognized colors (like hex and rgba formatted colors in CSS, for example). This can help visualize what color is being specified without having to open up an external tool.

I'd imagine we could set the background color of the string to the interpreted color, calculating and setting a contrasting foreground.

I do something similar in Palette:

https://github.com/cassidyjames/palette/blob/eed9ffa65df13eeac38bf12298fd4c716174973d/src/Widgets/ColorButton.vala#L68-L123

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/59092943-highlight-colors?utm_campaign=plugin&utm_content=tracker%2F61917289&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F61917289&utm_medium=issues&utm_source=github).

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。