Added example pack.

This commit is contained in:
NicklasVraa
2023-09-05 19:08:10 +02:00
parent 9dc1efc77f
commit 51edbda9bf
4 changed files with 47 additions and 13 deletions

View File

@@ -19,9 +19,11 @@ Below are examples of what can be done using this library. Using it in a simple
| `padding=4`<br> `color="#551144"` | <img src="resources/backdrops/vscode_r00_p4_purple.svg" width="60"/> | <img src="resources/backdrops/vscode_r05_p4_purple.svg" width="60"/> | <img src="resources/backdrops/vscode_r10_p4_purple.svg" width="60"/> |
### Theme-pack Recoloring
In this example, my own [theme](https://github.com/NicklasVraa/NovaOS-nord-Theme) and [icon-pack](https://github.com/NicklasVraa/NovaOS-nord-Icons) have been recolored in brown/green-ish colors. This is available for download under releases.
In these examples, my own [theme](https://github.com/NicklasVraa/NovaOS-nord-Theme) and [icon-pack](https://github.com/NicklasVraa/NovaOS-nord-Icons) have been recolored for inspiration. These are available for download under releases.
![NovaOS-woodland](resources/packs/NovaOS-woodland.png)
| | | |
|:-:|:-:|:-:|
| ![NovaOS-nord](resources/packs/NovaOS-nord.png) Nord | ![NovaOS-woodland](resources/packs/NovaOS-woodland.png) Woodland | ![NovaOS-beach](resources/packs/NovaOS-beach.png) Beach |
<details><summary>More theme recoloring examples</summary>

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 547 KiB

View File

@@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": null,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
@@ -14,31 +14,63 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 22,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"/home/nv/.themes/NovaOS-beach/index.theme\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"svg: 100%|██████████| 84/84 [00:00<00:00, 410.00it/s]\n",
"css: 100%|██████████| 26/26 [00:00<00:00, 82.01it/s]\n",
"png: 100%|██████████| 442/442 [00:08<00:00, 52.42it/s] \n"
]
}
],
"source": [
"# Generate theme pack.\n",
"utils.recolor(\n",
" \"/opt/nova/theme/NovaOS-nord/\", # Source\n",
" \"~/.themes\", # Destination\n",
" \"NovaOS-woodland\", # New name\n",
" utils.norm_hsl(22, 20, 48)\n",
" \"NovaOS-beach\", # New name\n",
" utils.norm_hsl(190, 35, 65)\n",
")"
]
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 16,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"/home/nv/.icons/NovaOS-beach/index.theme\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"svg: 100%|██████████| 7974/7974 [00:01<00:00, 5217.52it/s]\n"
]
}
],
"source": [
"# Generate icon pack.\n",
"utils.recolor(\n",
" \"/opt/nova/icons/NovaOS-nord\", # Source\n",
" \"~/.icons\", # Destination\n",
" \"NovaOS-woodland\", # New name\n",
" utils.norm_hsl(118, 25, 55)\n",
" \"NovaOS-beach\", # New name\n",
" utils.norm_hsl(36, 65, 75)\n",
")"
]
},
@@ -52,8 +84,8 @@
"utils.recolor(\n",
" \"~/Downloads/NovaOS-nord-wallpapers\", # Source\n",
" \"~/.wallpapers\", # Destination\n",
" \"My_wallpapers\", # New name\n",
" utils.norm_hsl(0, 48, 65)\n",
" \"beach_wallpapers\", # New name\n",
" utils.norm_hsl(187, 100, 60)\n",
")"
]
}