Skip to content

Commit

Permalink
smaller title
Browse files Browse the repository at this point in the history
  • Loading branch information
abey79 committed May 10, 2024
1 parent 18fb9a3 commit e09a906
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions crates/re_viewer/src/ui/welcome_screen/no_data_ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,17 @@ struct TextSize(egui::Vec2);
/// Show a minimal welcome section.
pub fn no_data_ui(ui: &mut egui::Ui) {
re_ui::ReUi::center(ui, "no_data_ui_contents", |ui| {
let (style, line_height) = if ui.available_width() > 400.0 {
(re_ui::ReUi::welcome_screen_h1(), 50.0)
} else {
(re_ui::ReUi::welcome_screen_h2(), 36.0)
};

ui.add(
egui::Label::new(
egui::RichText::new(super::welcome_section::WELCOME_SCREEN_TITLE)
.weak()
.line_height(Some(line_height))
.text_style(style),
.line_height(Some(36.0))
.text_style(re_ui::ReUi::welcome_screen_h2()),
)
.wrap(true),
);

ui.add_space(18.0);
ui.add_space(10.0);

let bullet_text = |ui: &mut Ui, text: &str| {
ui.horizontal(|ui| {
Expand Down

0 comments on commit e09a906

Please sign in to comment.