Color Manager

Roadmap | Features | Use | Requests | Contribute

Color Manager is a program for recoloring and manipulating existing icon packs, wallpapers and themes. The program is designed for NovaOS and is currently in early development. The first release will be late August 2023. In the meantime, this repository will act as a preview.

gui

demo

png_jpg_example

Note: If you publish anything that was generated using this program, make sure to credit the original creator and this repository.

Roadmap

  • Basic framework for manipulating icon packs.
  • Grayscale, monochromatic and multichromatic recoloring functions.
  • Command-line interface.
  • Graphical user interface based on the GTK framework.
  • Python pip package.
  • Support pngs and jpgs.
  • Speed up multichrome recoloring for pngs and jpgs.
  • Basic framework for manipulating GTK, Cinnamon and Metacity themes.
  • Intelligent color inversion function.
  • Function for adding basic geometry to the backgrounds of icons.
  • GNU/Linux binary.

Features

Currently, two types of recoloring operations are supported:

Type Result Speed Supports
Monochrome A monochromatic variant, colored by appropriate shades of the provided base color. ~5000 svgs/sec svg, png, jpg
Multichrome A multichromatic variant, where all colors are replaced by their nearest perceived equivalent that adheres to the provided color palette. ~70 svgs/sec svg

Speeds were recorded with an Intel i7-4770K CPU. Any pack can serve as the base for any color palette or base color.

Using the Program

Either import utils into your own script and call the recoloring functions, e.g.:

from color_manager import utils
src     = "packs/test_pack"
name    = "my_pack"
dest    = "~/Downloads"
hsl     = (0.5, 0.5, 0.5) # = rc.norm_hsl(180, 50, 50)
palette = "palettes/dracula.json"

utils.recolor(src, dest, name, hsl) # hsl or palette.

Or launch the GUI by running python3 color_manager/gui.py in a terminal from the project's root directory. The GUI will adopt your active theme. Dependencies: colormath, tqdm and pillow. For the GUI, pygobject (GTK bindings) must also be installed.

Requests

Until the release of Color Manager, I will be taking requests for icon packs and recolorings. Simply submit a feature request here on the repository containing the following:

  • The name of an open-source icon pack that will serve as the base look.
  • For a monochromatic variant, a single hexadecimal value representing a color.
  • For particular color palettes, a list of hexadecimal values or the name of a popular palette.

Please star the repository or consider donating, and I will upload your requested variant. Also consider showing the creators of the original icon packs some love.

Preview and download already fullfilled requests here:

Papirus-Mini Mono- and Multichromatic Variants The original papirus set is massive (>100MB), so this version has been simplified, e.g. icons no longer have multiple versions for slightly different icon sizes. As a result, it only takes up ~10MB when zipped.
Name Examples Status
Original Source
Nord Finished
Dracula Released
Catppuccin Released
Name Examples Status
Galactic Released
Strawberry Released
Amazon Finished
Pacific Finished
Cobalt Finished
Bumblebee Released
Goldenrod Released

Contribute

If you are experienced with packaging projects such as this for easy distribution, please contact me.


Legal Notice: This repository, including any and all of its forks and derivatives, may NOT be used in the development or training of any machine learning model of any kind, without the explicit permission of the owner of the original repository.

Description
No description provided
Readme AGPL-3.0 32 MiB
Languages
Python 93.4%
Jupyter Notebook 6.6%