pub struct Theme {
pub name: String,
pub colors: [u32; 12],
pub major_font: String,
pub minor_font: String,
pub major_font_ea: String,
pub minor_font_ea: String,
pub major_font_cs: String,
pub minor_font_cs: String,
pub major_font_scripts: Vec<(String, String)>,
pub minor_font_scripts: Vec<(String, String)>,
}Expand description
Workbook theme: 12 colours and the heading/body fonts.
Fields§
§name: String§colors: [u32; 12]lt1, dk1, lt2, dk2, accent1..6, hlink, folHlink (0xRRGGBB).
major_font: String§minor_font: String§major_font_ea: StringThe heading font’s East Asian typeface (<a:ea>); empty when the file did not set one.
minor_font_ea: StringThe body font’s East Asian typeface (<a:ea>); empty when the file did not set one.
major_font_cs: StringThe heading font’s complex-script typeface (<a:cs>); empty when the file did not set one.
minor_font_cs: StringThe body font’s complex-script typeface (<a:cs>); empty when the file did not set one.
major_font_scripts: Vec<(String, String)>The heading font’s per-script typefaces (<a:font script="Arab" typeface="…"/>), as
(script, typeface) in file order.
minor_font_scripts: Vec<(String, String)>The body font’s per-script typefaces, as (script, typeface) in file order.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Theme
impl<'de> Deserialize<'de> for Theme
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Theme
Auto Trait Implementations§
impl Freeze for Theme
impl RefUnwindSafe for Theme
impl Send for Theme
impl Sync for Theme
impl Unpin for Theme
impl UnsafeUnpin for Theme
impl UnwindSafe for Theme
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more