mirror of
https://github.com/NicklasVraa/Color-manager.git
synced 2026-01-18 17:27:20 +01:00
81 lines
1.7 KiB
Plaintext
81 lines
1.7 KiB
Plaintext
{
|
|
"cells": [
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 5,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"name": "stdout",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"The autoreload extension is already loaded. To reload it, use:\n",
|
|
" %reload_ext autoreload\n"
|
|
]
|
|
}
|
|
],
|
|
"source": [
|
|
"%load_ext autoreload\n",
|
|
"%autoreload 2\n",
|
|
"\n",
|
|
"from color_manager import utils"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 8,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"name": "stdout",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"/home/nv/Downloads/Soph/index.theme\n"
|
|
]
|
|
},
|
|
{
|
|
"name": "stderr",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"svg: 100%|██████████| 7974/7974 [00:01<00:00, 5077.70it/s]\n"
|
|
]
|
|
}
|
|
],
|
|
"source": [
|
|
"src = \"~/Downloads/NovaOS-nord-icons\" # Also try \"test/theme\"\n",
|
|
"name = \"Soph\"\n",
|
|
"dest = \"~/Downloads\"\n",
|
|
"color = (0.6, 0.54, 0.5) # = rc.normalize_hsl(180, 50, 50)\n",
|
|
"color = utils.norm_hsl(234, 65, 65)\n",
|
|
"palette = \"palettes/nord.json\"\n",
|
|
"mapping = \"mappings/renord.json\"\n",
|
|
"\n",
|
|
"# Either input a single color, palette, or mapping.\n",
|
|
"utils.recolor(src, dest, name, color)"
|
|
]
|
|
}
|
|
],
|
|
"metadata": {
|
|
"kernelspec": {
|
|
"display_name": "base",
|
|
"language": "python",
|
|
"name": "python3"
|
|
},
|
|
"language_info": {
|
|
"codemirror_mode": {
|
|
"name": "ipython",
|
|
"version": 3
|
|
},
|
|
"file_extension": ".py",
|
|
"mimetype": "text/x-python",
|
|
"name": "python",
|
|
"nbconvert_exporter": "python",
|
|
"pygments_lexer": "ipython3",
|
|
"version": "3.10.12"
|
|
},
|
|
"orig_nbformat": 4
|
|
},
|
|
"nbformat": 4,
|
|
"nbformat_minor": 2
|
|
}
|