/color-editor

GUI program to edit color values in any text file

Primary LanguageRustBSD Zero Clause License0BSD

Color editor

GUI program to edit color values in any text file. May be useful for tuning color schemes. Tested on Linux.

example.mp4

In the example video the program is shown at the bottom left. It has been opened to edit an alacritty terminal emulator configuration file. On the background there are open two alacritty windows showing text editors. The right one shows the configuration file. Now, alacritty has a feature to reload the configuration whenever the file changes, and the color editor has been set to save the file on every edit. As a result the color picker tunes the colors in real-time.

In this example the text file is structured (TOML), but it doesn't have to be. The color strings are found using regular expressions from any type of text file.

Installation and usage

Install Rust, then at the root of the repository run:

cargo run -- my_text_file.txt

See help with cargo run -- --help.

Be sure to backup your files before editing them.

Features

Currently supports color strings of the form #47ab3d, 0x47ab3d, #4a3, 0x4a3. Supporting other formats such as [125, 200, 83] should not be too difficult.