This is a tool to generate Telegram Desktop themes from pywal or wal files.
Its (mostly) based on telegram-palette-gen script, but ported to python3 from bash to be less platform-dependent.
git clone https://github.com/s0rg/pywal-tg
cd pywal-tg
python3 pallete-gen.py
To set the palette follow these steps:
- Start Telegram Desktop application
- Go to "Settings / Chat settings"
- Click three-dots button near the closing cross, the menu will appear, click "Create new theme" option
- Choose "Import existing theme"
- Toggle hidden files and select file: ~/.cache/telegram-palette-gen/colors.tdesktop-palette
- Click on "Keep changes"
You can update this tool by running git pull inside your pywal-tg directory:
cd pywal-tg
git pull
Some color constants in colors.tdesktop-palette are marked as // [UNTESTED], this because I couldn't find the elements responsable in the app. So if you find something strange open an issue (with a screenshot of the element and it's name if possible) and I'll fix.
You can also use light colorschemes, no need for extra option, just run the script normally.
The palette works with [wal] too, not just [pywal] and with every color palette that respects the specifications mentioned above.