Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ttp

Telegram .attheme file parser written in Rust.

Install

$ cargo install ttp
USAGE:
    ttp [OPTIONS] <theme>

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

OPTIONS:
    -h, --help               Print help information
    -o, --output <OUTPUT>    Path to the output file
    -r, --revert             Use this flag to reverse parsing of a 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

About

Parses telegram mobile .attheme file to readable colors(and back).

Resources

Stars

Watchers

Forks

Contributors

Languages