adjust context menu/grip circle sizes

also adjust grip position so that it is more right
This commit is contained in:
William Casarin
2025-01-15 13:48:53 -08:00
parent 3b68e285fb
commit 8fbe954cf3
2 changed files with 4 additions and 4 deletions

View File

@@ -558,10 +558,10 @@ fn chevron(
fn grab_button() -> impl egui::Widget {
|ui: &mut egui::Ui| -> egui::Response {
let max_size = egui::vec2(48.0, 48.0);
let max_size = egui::vec2(20.0, 20.0);
let helper = AnimationHelper::new(ui, "grab", max_size);
let painter = ui.painter_at(helper.get_animation_rect());
let min_circle_radius = 2.0;
let min_circle_radius = 1.0;
let cur_circle_radius = helper.scale_1d_pos(min_circle_radius);
let horiz_spacing = 4.0;
let vert_spacing = 10.0;

View File

@@ -86,11 +86,11 @@ impl NoteContextButton {
}
fn max_radius() -> f32 {
8.0
4.0
}
fn min_radius() -> f32 {
Self::max_radius() / Self::expansion_multiple()
2.0
}
fn max_distance_between_circles() -> f32 {