#themes #color #telegram #mobile #readable #path #attheme

app ttp

Parses telegram mobile .attheme file to readable colors

3 releases

0.1.2 Sep 12, 2022
0.1.1 Sep 10, 2022
0.1.0 Sep 10, 2022

#53 in #theme

MIT license

7KB
113 lines

ttp

Telegram .attheme file parser written in Rust.

USAGE:
    ttp [OPTIONS] <theme>

ARGS:
    <theme>    Path to the .attheme (or .ttp if used with -r) file

OPTIONS:
    -h, --help       Print help information
    -r, --revert     Use this flag to reverse parsing of a theme. You have to provide a .ttp file in
                     <theme>
    -s, --sort       Use this flag to sort lines in alphabetical order
    -V, --version    Print version information

Examples

$ ttp my-cool-theme.attheme
$ head -n5 my-cool-theme.attheme my-cool-theme.ttp
==> my-cool-theme.attheme <==
actionBarActionModeDefault=-16777216
actionBarActionModeDefaultIcon=-1
actionBarActionModeDefaultSelector=-13092802
actionBarActionModeDefaultTop=268435456
actionBarBrowser=-16777216

==> my-cool-theme.ttp <==
actionBarActionModeDefault: #FF000000
actionBarActionModeDefaultIcon: #FFFFFFFF
actionBarActionModeDefaultSelector: #FF38383E
actionBarActionModeDefaultTop: #10000000
actionBarBrowser: #FF000000

To create a file in .attheme format from a .ttp file use this command

$ ttp -r my-cool-theme.ttp

Dependencies

~6.5MB
~117K SLoC