pub struct ThemeStyle {
pub page_background_color: Option<ThemeColor>,
pub window_background_color: Option<ThemeColor>,
pub surface_background_color: Option<ThemeColor>,
pub foreground_color: Option<ThemeColor>,
pub muted_foreground_color: Option<ThemeColor>,
pub accent_color: Option<ThemeColor>,
pub separator_color: Option<ThemeColor>,
pub selection_background_color: Option<ThemeColor>,
}Fields§
§page_background_color: Option<ThemeColor>The page floor: the colour an lxapp’s own CSS paints its page with.
The host declares it because native chrome has to agree with it in places the page cannot reach — the strip a pull-to-refresh opens above the page, the container a navigation transition slides views across — and no platform can ask a WebView what colour its document is early enough to paint the frame the user is already looking at. Unset falls back to the platform’s own system background, which is what every host got before this existed.
window_background_color: Option<ThemeColor>§surface_background_color: Option<ThemeColor>§foreground_color: Option<ThemeColor>§muted_foreground_color: Option<ThemeColor>§accent_color: Option<ThemeColor>§separator_color: Option<ThemeColor>§selection_background_color: Option<ThemeColor>Implementations§
Trait Implementations§
Source§impl Clone for ThemeStyle
impl Clone for ThemeStyle
Source§fn clone(&self) -> ThemeStyle
fn clone(&self) -> ThemeStyle
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 moreimpl Copy for ThemeStyle
Source§impl Debug for ThemeStyle
impl Debug for ThemeStyle
Source§impl Default for ThemeStyle
impl Default for ThemeStyle
Source§fn default() -> ThemeStyle
fn default() -> ThemeStyle
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ThemeStyle
impl<'de> Deserialize<'de> for ThemeStyle
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 Eq for ThemeStyle
Source§impl PartialEq for ThemeStyle
impl PartialEq for ThemeStyle
Source§impl Serialize for ThemeStyle
impl Serialize for ThemeStyle
impl StructuralPartialEq for ThemeStyle
Auto Trait Implementations§
impl Freeze for ThemeStyle
impl RefUnwindSafe for ThemeStyle
impl Send for ThemeStyle
impl Sync for ThemeStyle
impl Unpin for ThemeStyle
impl UnsafeUnpin for ThemeStyle
impl UnwindSafe for ThemeStyle
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