Skip to content

pekkaran/color-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

GUI program to edit color values in any text file

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages