#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

#26 in #telegram

Download history 3/week @ 2019-01-12 3/week @ 2019-01-19 2/week @ 2019-01-26 1/week @ 2019-02-02 1/week @ 2019-02-23 10/week @ 2019-03-02 1/week @ 2019-03-09 33/week @ 2019-03-23 6/week @ 2019-04-06 1/week @ 2019-04-13 6/week @ 2019-04-20

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

~2MB
~23K SLoC