pub struct ThemeColorScheme {
pub dk1: String,
pub lt1: String,
pub dk2: String,
pub lt2: String,
pub accent1: String,
pub accent2: String,
pub accent3: String,
pub accent4: String,
pub accent5: String,
pub accent6: String,
pub hlink: String,
pub fol_hlink: String,
}Expand description
ECMA-376 color scheme (12 slots used by PowerPoint theme)
Fields§
§dk1: StringDark 1 — primary text
lt1: StringLight 1 — primary background
dk2: StringDark 2 — secondary dark
lt2: StringLight 2 — secondary light
accent1: String§accent2: String§accent3: String§accent4: String§accent5: String§accent6: String§hlink: String§fol_hlink: StringImplementations§
Source§impl ThemeColorScheme
impl ThemeColorScheme
Sourcepub fn from_palette(
primary: &str,
secondary: &str,
accent: &str,
background: &str,
text: &str,
light: &str,
dark: &str,
) -> Self
pub fn from_palette( primary: &str, secondary: &str, accent: &str, background: &str, text: &str, light: &str, dark: &str, ) -> Self
Build a scheme from semantic palette roles (matches prelude::themes::Theme)
pub fn accent1(self, hex: impl AsRef<str>) -> Self
pub fn accent2(self, hex: impl AsRef<str>) -> Self
pub fn accent3(self, hex: impl AsRef<str>) -> Self
pub fn hyperlink(self, hex: impl AsRef<str>) -> Self
Trait Implementations§
Source§impl Clone for ThemeColorScheme
impl Clone for ThemeColorScheme
Source§fn clone(&self) -> ThemeColorScheme
fn clone(&self) -> ThemeColorScheme
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ThemeColorScheme
impl Debug for ThemeColorScheme
impl Eq for ThemeColorScheme
Source§impl PartialEq for ThemeColorScheme
impl PartialEq for ThemeColorScheme
impl StructuralPartialEq for ThemeColorScheme
Auto Trait Implementations§
impl Freeze for ThemeColorScheme
impl RefUnwindSafe for ThemeColorScheme
impl Send for ThemeColorScheme
impl Sync for ThemeColorScheme
impl Unpin for ThemeColorScheme
impl UnsafeUnpin for ThemeColorScheme
impl UnwindSafe for ThemeColorScheme
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.