Skip to main content

opentalk_theme_assets/
lib.rs

1// SPDX-FileCopyrightText: OpenTalk GmbH <mail@opentalk.eu>
2//
3// SPDX-License-Identifier: EUPL-1.2
4
5//! This crate contains the assets defining the official OpenTalk theme.
6
7#![deny(
8    bad_style,
9    missing_debug_implementations,
10    missing_docs,
11    overflowing_literals,
12    patterns_in_fns_without_body,
13    trivial_casts,
14    trivial_numeric_casts,
15    unsafe_code,
16    unused,
17    unused_extern_crates,
18    unused_import_braces,
19    unused_qualifications,
20    unused_results
21)]
22
23/// Fonts contained in the OpenTalk theme.
24pub mod fonts {
25    /// Fonts in OTF format.
26    pub mod otf {
27        /// The raw file contents of the regular font face.
28        pub const REGULAR: &[u8] = include_bytes!("../assets/fonts/opentalk-regular.otf");
29
30        /// The raw file contents of the bold font face.
31        pub const BOLD: &[u8] = include_bytes!("../assets/fonts/opentalk-bold.otf");
32    }
33
34    /// Fonts in TTF format.
35    pub mod ttf {
36        /// The raw file contents of the regular font face.
37        pub const REGULAR: &[u8] = include_bytes!("../assets/fonts/opentalk-regular.ttf");
38
39        /// The raw file contents of the bold font face.
40        pub const BOLD: &[u8] = include_bytes!("../assets/fonts/opentalk-bold.ttf");
41    }
42
43    /// Fonts in WOFF format.
44    pub mod woff {
45        /// The raw file contents of the regular font face.
46        pub const REGULAR: &[u8] = include_bytes!("../assets/fonts/opentalk-regular.woff");
47
48        /// The raw file contents of the bold font face.
49        pub const BOLD: &[u8] = include_bytes!("../assets/fonts/opentalk-bold.woff");
50    }
51
52    /// Fonts in WOFF2 format.
53    pub mod woff2 {
54        /// The raw file contents of the regular font face.
55        pub const REGULAR: &[u8] = include_bytes!("../assets/fonts/opentalk-regular.woff2");
56
57        /// The raw file contents of the bold font face.
58        pub const BOLD: &[u8] = include_bytes!("../assets/fonts/opentalk-bold.woff2");
59    }
60}
61
62/// Images contained in the OpenTalk theme.
63pub mod images {
64    /// Images in the SVG format.
65    pub mod svg {
66        /// The raw file contents of the background image.
67        pub const BACKGROUND: &str = include_str!("../assets/images/background.svg");
68    }
69}