diff --git a/color_manager/__init__.py b/color_manager/__init__.py
new file mode 100644
index 00000000..e69de29b
diff --git a/color_manager.py b/color_manager/gui.py
similarity index 100%
rename from color_manager.py
rename to color_manager/gui.py
diff --git a/ngtk.py b/color_manager/ngtk.py
similarity index 100%
rename from ngtk.py
rename to color_manager/ngtk.py
diff --git a/recolor.py b/color_manager/recolor.py
similarity index 100%
rename from recolor.py
rename to color_manager/recolor.py
diff --git a/readme.md b/readme.md
index 24775e0b..447294be 100644
--- a/readme.md
+++ b/readme.md
@@ -36,7 +36,7 @@ Speeds were recorded with an Intel i7-4770K CPU. Any svg-based icon pack can ser
## Using the Program
Either import `recolor` into your own script and call the recoloring functions, e.g.:
```python
-import recolor as rc
+from color_manager import recolor as rc
```
```python
src = "packs/papirus-mini_mono"
@@ -47,7 +47,7 @@ hsl = (0.5, 0.5, 0.5) # = rc.normalize_hsl(180, 50, 50)
rc.monochrome_pack(src, dest, name, hsl)
```
```python
-src = "packs/papirus-multi_mono"
+src = "packs/papirus-mini_multi"
name = "my_multi_pack"
dest = "~/Downloads"
palette = "palettes/dracula.json"
@@ -55,7 +55,7 @@ palette = "palettes/dracula.json"
rc.multichrome_pack(src, dest, name, palette)
```
-Or launch the GUI by running `python3 color_manager.py`. The GUI will adopt your active theme. Dependencies: `colormath`, `tqdm`, `json`. With GUI `PyGObject` must also be installed.
+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` and `tqdm`. For the GUI, `pygobject` (GTK bindings) must also be installed.
## Requests
diff --git a/test.ipynb b/test.ipynb
index 601e0fe4..8cfb94b4 100644
--- a/test.ipynb
+++ b/test.ipynb
@@ -2,26 +2,18 @@
"cells": [
{
"cell_type": "code",
- "execution_count": 1,
+ "execution_count": null,
"metadata": {},
"outputs": [],
"source": [
- "import recolor as rc"
+ "from color_manager import recolor as rc"
]
},
{
"cell_type": "code",
- "execution_count": 2,
+ "execution_count": null,
"metadata": {},
- "outputs": [
- {
- "name": "stderr",
- "output_type": "stream",
- "text": [
- "Processing SVGs: 100%|██████████| 7980/7980 [00:01<00:00, 6403.61 file/s]\n"
- ]
- }
- ],
+ "outputs": [],
"source": [
"src = \"packs/papirus-mini_mono\"\n",
"name = \"my_mono_pack\"\n",
@@ -37,13 +29,22 @@
"metadata": {},
"outputs": [],
"source": [
- "src = \"packs/papirus-multi_mono\"\n",
+ "src = \"packs/papirus-mini_multi\"\n",
"name = \"my_multi_pack\"\n",
"dest = \"~/Downloads\"\n",
"palette = \"palettes/dracula.json\"\n",
"\n",
"rc.multichrome_pack(src, dest, name, palette)"
]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "from color_manager import gui"
+ ]
}
],
"metadata": {