pub struct TrayPopoverEmit {
pub idle: bool,
pub title: String,
pub subtitle: String,
pub reveal_path: Option<String>,
pub elapsed_sec: f64,
pub total_sec: Option<f64>,
pub playing: bool,
pub playback_speed: f64,
pub volume_pct: u8,
pub idle_hint: Option<String>,
pub ui_theme: String,
pub appearance: Option<HashMap<String, String>>,
}Expand description
Serialized to the tray-popover WebView for frosted Now Playing UI.
Fields§
§idle: bool§title: String§subtitle: String§reveal_path: Option<String>Absolute path of the playing file — tray popover reveal / copy / context menu.
elapsed_sec: f64§total_sec: Option<f64>§playing: bool§playback_speed: f64Clamped 0.25..=2.0 — mirrors prefs audioSpeed / main #npSpeed.
volume_pct: u80..=100 — mirrors prefs audioVolume / main #npVolume.
idle_hint: Option<String>§ui_theme: String"light" or "dark" — tray-popover.html uses this for html[data-theme].
appearance: Option<HashMap<String, String>>Main-window scheme snapshot (--cyan, --bg-primary, …) applied on the popover root.
Trait Implementations§
Source§impl Clone for TrayPopoverEmit
impl Clone for TrayPopoverEmit
Source§fn clone(&self) -> TrayPopoverEmit
fn clone(&self) -> TrayPopoverEmit
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for TrayPopoverEmit
impl RefUnwindSafe for TrayPopoverEmit
impl Send for TrayPopoverEmit
impl Sync for TrayPopoverEmit
impl Unpin for TrayPopoverEmit
impl UnwindSafe for TrayPopoverEmit
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more