Skip to content

How to set the outer window size? #504

Answered by parasyte
bratish asked this question in Q&A
Discussion options

You must be logged in to vote

You can set the window size in eframe::NativeOptions: https://docs.rs/eframe/0.12.0/eframe/struct.NativeOptions.html#structfield.initial_window_size

If you want to put the slider between the two letters, you need to move one to the left side. Probably something like this:

ui.horizontal(|ui| {
    ui.label("A");
    let response = ui.add(
        egui::Slider::new(
            value, 0.0..=highest_val
        ).text("a").clamp_to_range(true).show_value(false)
    );

    // etc.
});

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bratish
Comment options

Answer selected by bratish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants