commit 8fbe954cf398e9f299aebae3e06dd5d8903a8886
parent 3b68e285fb8a09589ff5b39d123781b42f3363b4
Author: William Casarin <jb55@jb55.com>
Date: Wed, 15 Jan 2025 13:48:53 -0800
adjust context menu/grip circle sizes
also adjust grip position so that it is more right
Diffstat:
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/crates/notedeck_columns/src/ui/column/header.rs b/crates/notedeck_columns/src/ui/column/header.rs
@@ -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;
diff --git a/crates/notedeck_columns/src/ui/note/context.rs b/crates/notedeck_columns/src/ui/note/context.rs
@@ -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 {