Skip to content

Commit

Permalink
add doc link
Browse files Browse the repository at this point in the history
  • Loading branch information
abey79 committed May 10, 2024
1 parent 7a1a6aa commit 9af4ef1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions crates/re_viewer/src/ui/welcome_screen/no_data_ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,21 @@ pub fn no_data_ui(ui: &mut egui::Ui) {
for text in super::welcome_section::WELCOME_SCREEN_BULLET_TEXT {
bullet_text(ui, text);
}

ui.add_space(9.0);
if ui
.button(
egui::RichText::new("Go to documentation →")
.weak()
.text_style(re_ui::ReUi::welcome_screen_body()),
)
.on_hover_cursor(egui::CursorIcon::PointingHand)
.clicked()
{
ui.ctx().open_url(egui::output::OpenUrl {
url: super::welcome_section::DOCS_URL.to_owned(),
new_tab: true,
});
}
});
}
2 changes: 1 addition & 1 deletion crates/re_viewer/src/ui/welcome_screen/welcome_section.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use egui::Ui;

const DOCS_URL: &str = "https://www.rerun.io/docs";
pub(super) const DOCS_URL: &str = "https://www.rerun.io/docs";
pub(super) const WELCOME_SCREEN_TITLE: &str = "Visualize Multimodal Data";
pub(super) const WELCOME_SCREEN_BULLET_TEXT: &[&str] = &[
"Log data with the Rerun SDK in C++, Python, or Rust",
Expand Down

0 comments on commit 9af4ef1

Please sign in to comment.