use re_ui::ContextExt as _;
pub fn mobile_warning_ui(ui: &mut egui::Ui) {
if ui.ctx().os() == egui::os::OperatingSystem::IOS
|| ui.ctx().os() == egui::os::OperatingSystem::Android
{
let frame = egui::Frame {
fill: ui.visuals().panel_fill,
..re_ui::DesignTokens::bottom_panel_frame()
};
egui::TopBottomPanel::bottom("warning_panel")
.resizable(false)
.frame(frame)
.show_inside(ui, |ui| {
ui.centered_and_justified(|ui| {
let text = ui
.ctx()
.warning_text("Mobile OSes are not yet supported. Click for details.");
ui.hyperlink_to(text, "https://github.com/rerun-io/rerun/issues/1672");
});
});
}
}