pub fn js_reset_themes(&self, themes: JsValue) -> js_sys::Promise {
        clone!(self.renderer, self.session, self.theme);
        promisify_ignore_view_delete(async move {
            let themes: Option<Vec<String>> = themes.into_serde().into_jserror()?;
            let theme_name = theme.get_name().await;
            theme.reset(themes).await;
            let reset_theme = theme
                .get_themes()
                .await?
                .iter()
                .find(|y| theme_name.as_ref() == Some(y))
                .cloned();

            theme.set_name(reset_theme.as_deref()).await?;
            let view = session.get_view().into_jserror()?;
            renderer.restyle_all(&view).await
        })
    }
/// Set the available theme names available in the status bar UI.
Set the available theme names available in the status bar UI.
Set the available theme names available in the status bar UI .
pub fn js_reset_themes(&self, themes: JsValue) -> js_sys::Promise {
        clone!(self.renderer, self.session, self.theme);
        promisify_ignore_view_delete(async move {
            let themes: Option<Vec<String>> = themes.into_serde().into_jserror()?;
            let theme_name = theme.get_name().await;
            theme.reset(themes).await;
            let reset_theme = theme
                .get_themes()
                .await?
                .iter()
                .find(|y| theme_name.as_ref() == Some(y))
                .cloned();
            theme.set_name(reset_theme.as_deref()).await?;
            let view = session.get_view().into_jserror()?;
            renderer.restyle_all(&view).await
        })
    }
pub fn js_reset_themes ( & self , themes : JsValue ) -> js_sys :: Promise { clone ! ( self renderer self session self theme ) ; promisify_ignore_view_delete ( async move { let themes : Option < Vec < String > > = themes . into_serde ( ) . into_jserror ( ) ? ; let theme_name = theme . get_name ( ) . await ; theme . reset ( themes ) . await ; let reset_theme = theme . get_themes ( ) . await ? . iter ( ) . find ( | y | theme_name . as_ref ( ) == Some ( y ) ) . cloned ( ) ; theme . set_name ( reset_theme . as_deref ( ) ) . await ? ; let view = session . get_view ( ) . into_jserror ( ) ? ; renderer . restyle_all ( & view ) . await } ) }
Set the available theme names available in the status bar UI.
Set the available theme names available in the status bar UI .
&self
themes
JsValue
&self
themes
JsValue