Skip to content

Commit

Permalink
Update style.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rustbasic authored Jun 20, 2024
1 parent 02f6fb5 commit cf7f4e4
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions crates/egui/src/style.rs
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,10 @@ impl ScrollStyle {
ui.add(DragValue::new(handle_min_length).clamp_range(0.0..=32.0));
ui.label("Minimum handle length");
});
ui.horizontal(|ui| {
ui.add(DragValue::new(bar_inner_margin).clamp_range(0.0..=32.0));
ui.label("Inner margin");
});
ui.horizontal(|ui| {
ui.add(DragValue::new(bar_outer_margin).clamp_range(0.0..=32.0));
ui.label("Outer margin");
Expand Down Expand Up @@ -624,11 +628,6 @@ impl ScrollStyle {
opacity_ui(ui, interact_handle_opacity);
ui.end_row();
});
} else {
ui.horizontal(|ui| {
ui.add(DragValue::new(bar_inner_margin).clamp_range(0.0..=32.0));
ui.label("Inner margin");
});
}
}
}
Expand Down

0 comments on commit cf7f4e4

Please sign in to comment.