pub struct ThemeSettings {
pub accent_color: i32,
pub background: Option<Background>,
pub outgoing_message_fill: BackgroundFill,
pub animate_outgoing_message_fill: bool,
pub outgoing_message_accent_color: i32,
}
Expand description
Describes theme settings
Fields§
§accent_color: i32
Theme accent color in ARGB format
background: Option<Background>
The background to be used in chats; may be null
outgoing_message_fill: BackgroundFill
The fill to be used as a background for outgoing messages
animate_outgoing_message_fill: bool
If true, the freeform gradient fill needs to be animated on every sent message
outgoing_message_accent_color: i32
Accent color of outgoing messages in ARGB format
Trait Implementations§
Source§impl Clone for ThemeSettings
impl Clone for ThemeSettings
Source§fn clone(&self) -> ThemeSettings
fn clone(&self) -> ThemeSettings
Returns a copy of the value. Read more
1.0.0 · 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 ThemeSettings
impl Debug for ThemeSettings
Source§impl<'de> Deserialize<'de> for ThemeSettings
impl<'de> Deserialize<'de> for ThemeSettings
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
Source§impl PartialEq for ThemeSettings
impl PartialEq for ThemeSettings
Source§impl Serialize for ThemeSettings
impl Serialize for ThemeSettings
impl StructuralPartialEq for ThemeSettings
Auto Trait Implementations§
impl Freeze for ThemeSettings
impl RefUnwindSafe for ThemeSettings
impl Send for ThemeSettings
impl Sync for ThemeSettings
impl Unpin for ThemeSettings
impl UnwindSafe for ThemeSettings
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