ttp

Crates.iottp
lib.rsttp
version0.1.2
sourcesrc
created_at2022-09-10 17:19:34.201716
updated_at2022-09-12 11:18:40.497413
descriptionParses telegram mobile .attheme file to readable colors
homepage
repository
max_upload_size
id662617
size14,323
Viktor Dudnik (0x07C0)

documentation

README

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
Commit count: 0

cargo fmt