- python 3
- tinify
- pip3 (pip for python 3)
- pillow (follow Installation instructions)
- requests
- Install python 3 for your OS
- Download or clone this repo to your PC
- Go to that directory and run
pip3 install -r requirements.txt
via command prompt / terminal / whatever
- Put
.tdesktop-theme
files (the one is zip file) todesktop
directory - If you want to optimize your jpeg you have to get your api key here https://tinypng.com/developers put it in
tinify.key
and changetinyJpeg
to True - If you need to override some theme colors (if that's a bug please report it) you can use
%themefilename%.map
e.g.windowBackgroundWhite=#ffffffff
one rule per line You can apply multiple overriding for theme packs. For example, if your theme file is namedMyTheme.Dark.1.0.tdesktop-theme
, you can useMyTheme.map
,MyTheme.Dark.map
,MyTheme.Dark.1.map
andMyTheme.Dark.1.0.map
for overriding theme packs. - Run
python3 main.py
via command prompt / terminal / whatever - Go to directory
android
, and send.attheme
file to TG chat, then apply it
- Colors in
.attheme
file are signed int fromARGB
(yep color alpha goes first) - Image has to be converted to
jpeg
, and put in binary mode into file between tags PWS and WPE .atthemesrc
is sort of source file made by me so you can check it in more human friendly way on how conversion goes- You have to use all the colors in
.tdesktop-theme
file