Telegram Palette Gen Save Abandoned

A bash script that generates themes for Telegram based on an arbitrary 16-colors palette or by sourcing the colors generated by pywal/wal.

Project README

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.

Installation

git clone --depth 1 https://github.com/matteoguarda/telegram-palette-gen ~/.telegram-palette-gen
cd ~/.telegram-palette-gen
./telegram-palette-gen

Generate the color palette

# 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'

Set the color palette

To set the palette follow these steps:

  1. Open telegram, go to "settings/chat background" and click on choose from file:

instruction 1

  1. Toggle hidden files (in english that's show hidden files):

instruction 2

  1. Double click on ~/.cache/telegram-palette-gen/colors.tdesktop-palette:

instruction 3

  1. Click on keep changes:

instruction 4

  1. Double click on ~/.cache/telegram-palette-gen/background.png or jpg depending on your wallpaper:

instruction 5

Updating

You can update telegram-palette-gen by running git pull inside ~/.telegram-palette-gen:

cd ~/.telegram-palette-gen
git pull

Screenshots

demo demo demo

Palette specifications

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'

Important notes

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.

Open Source Agenda is not affiliated with "Telegram Palette Gen" Project. README Source: agnipau/telegram-palette-gen
Stars
56
Open Issues
7
Last Commit
2 years ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating