A bash script that generates themes for Telegram based on an arbitrary 16-colors palette or by sourcing the colors generated by pywal/wal.
NOT MANTAINED ANYMORE.
Telegram changed the palette format so now this program needs a rewrite.
I don't have the time to work on this project, nor the interest.
git clone --depth 1 https://github.com/matteoguarda/telegram-palette-gen ~/.telegram-palette-gen
cd ~/.telegram-palette-gen
./telegram-palette-gen
# If you want to use the colors generated by pywal/wal.
~/.telegram-palette-gen/telegram-palette-gen --wal
# If you want to use a 16-colors palette of yours.
~/.telegram-palette-gen/telegram-palette-gen --palette '/path/to/palette.sh'
To set the palette follow these steps:
You can update telegram-palette-gen by running git pull inside ~/.telegram-palette-gen:
cd ~/.telegram-palette-gen
git pull
If you want, you can import the colors from a shell script that needs to be written in the following way:
# For example:
color0='#263238'
color1='#f07178'
color2='#c3e88d'
color3='#ffcb6b'
color4='#82aaff'
color5='#c792ea'
color6='#89ddff'
color7='#eeffff'
color8='#546e7a'
color9='#f78c6c'
color10='#c3e88d'
color11='#ffcb6b'
color12='#82aaff'
color13='#37474f'
color14='#89ddff'
color15='#eeffff'
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.