INNER CODE UNIT · Python

make_default_connection_lost_component

rio-labs/rio · rio/app.py:45

def make_default_connection_lost_component() -> rio.Component:
    class DefaultConnectionLostComponent(rio.Component):
        def build(self) -> rio.Component:
            return rio.Rectangle(
                content=rio.Row(
                    rio.Icon(
                        "material/signal_disconnected",
                        fill="danger",
                        min_width=1.6,
                        min_height=1.6,
                    ),
                    rio.Text(
                        "Disconnected",
                        selectable=False,
                        fill=self.session.theme.hud_palette.foreground,
                        font_weight="bold",
                    ),
                    spacing=0.8,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…