| Crates.io | ttp |
| lib.rs | ttp |
| version | 0.1.2 |
| created_at | 2022-09-10 17:19:34.201716+00 |
| updated_at | 2022-09-12 11:18:40.497413+00 |
| description | Parses telegram mobile .attheme file to readable colors |
| homepage | |
| repository | |
| max_upload_size | |
| id | 662617 |
| size | 14,323 |
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