#telegram #tdesktop

tdesktop_theme

A Rust crate for parsing and serialization of .tdesktop-theme and .tdesktop-palette files

5 unstable releases

0.3.0 Oct 21, 2018
0.2.0 Sep 27, 2018
0.1.2 Sep 24, 2018
0.1.1 Sep 24, 2018
0.1.0 Sep 24, 2018

#84 in Parser implementations

Download history 9/week @ 2018-10-24 10/week @ 2018-10-31 35/week @ 2018-11-07 10/week @ 2018-11-14 5/week @ 2018-11-21 10/week @ 2018-11-28 60/week @ 2018-12-05 6/week @ 2018-12-12 8/week @ 2018-12-19 58/week @ 2018-12-26 1/week @ 2019-01-02 5/week @ 2019-01-09 8/week @ 2019-01-16

75 downloads per month

MIT license

372KB
7.5K SLoC

tdesktop-theme-rs

A Rust crate for parsing and serialization of .tdesktop-theme and .tdesktop-palette files.

Installing

Add this in your Cargo.toml:

[dependencies]
tdesktop_theme = "0.3.0"

Examples

See the tests directory for examples.

Documentation

See docs.rs for documentation.


lib.rs:

A crate to work with Telegram Desktop themes. Supports:

  • Parsing of .tdesktop-palette;
  • Parsing of .tdesktop-theme;
  • Serialization to .tdesktop-palette format;
  • Serialization to .tdesktop-theme format;
  • Dealing with wallpapers;
  • Editing themes;
  • Variables links.

Also can:

  • Resolve links;
  • Unlink variables;
  • Add themes (&theme + &other_theme);
  • Fallback to another theme (&theme | &other_theme);
  • Provide you with Telegram's default themes.

We also provide the default themes under the default_themes module. If you think we don't support something or you wish we had some feature, feel free to fill an issue on our GitLab repository.

Dependencies

~771KB