mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-05 19:51:26 -05:00
rustfmt: canvas.rs, io.rs, panels/actions.rs, tests/recolor.rs and toolbar.rs, formatting only
This commit is contained in:
@@ -247,9 +247,7 @@ fn show_body(app: &mut VectorcraftApp, ui: &mut Ui, space: &CanvasSpace, pass: O
|
||||
let strip = crate::dialogs::simplify_slider::showing(app) || crate::dialogs::smooth_slider::showing(app);
|
||||
// The bars give way to a drag, not to a click.
|
||||
let dragging = in_gesture(app, ui.ctx()) && ui.input(|i| i.pointer.is_decidedly_dragging());
|
||||
let task_bar = (app.ui.task_bar && !revolve_editing(app) && !strip && !dragging)
|
||||
.then(|| task_bar::task_bar(app, ui, space))
|
||||
.flatten();
|
||||
let task_bar = (app.ui.task_bar && !revolve_editing(app) && !strip && !dragging).then(|| task_bar::task_bar(app, ui, space)).flatten();
|
||||
quick_pen_bar::quick_pen_bar(app, ui, space);
|
||||
contour_bar::contour_bar(app, ui, space);
|
||||
// After the task bar, which the row of character alternates keeps clear of.
|
||||
|
||||
@@ -39,7 +39,8 @@ pub use save::{
|
||||
SAVE_CANCELED, ask_format_options, ask_pdf_options, cancel_saves, hide_saves, remember_active_artboard, remember_view, save, save_pdf,
|
||||
};
|
||||
pub(crate) use save::{
|
||||
clear_notes_left, export_path, is_web, notes_of, report_saved, show_with_notes, target_path, write_named, write_named_over, write_reporting, write_to,
|
||||
clear_notes_left, export_path, is_web, notes_of, report_saved, show_with_notes, target_path, write_named, write_named_over, write_reporting,
|
||||
write_to,
|
||||
};
|
||||
#[cfg(test)]
|
||||
pub(crate) use save::{report_write_error, saved_status};
|
||||
|
||||
@@ -55,7 +55,8 @@ pub use keys::{FUNCTION_KEYS, FunctionKey, function_keys, key_error};
|
||||
pub use model::{automatic_align_to, default_list, default_sets, deserialize_current_set, members, set_automatic_align_to};
|
||||
pub use playback::{
|
||||
CONTINUE_PLAYBACK, PAUSE_SECONDS, PLAY_ACTION, PLAY_AT, PLAYBACK_OPTIONS, PlaybackOptions, PlaybackSpeed, Playing, STOP_STEP, continue_playback,
|
||||
deserialize_playback, play, play_action, play_at, playback_drawn, playback_held, playback_shown, playback_options, tick_playback, waiting_at_stop,
|
||||
deserialize_playback, play, play_action, play_at, playback_drawn, playback_held, playback_options, playback_shown, tick_playback,
|
||||
waiting_at_stop,
|
||||
};
|
||||
pub(crate) use playback::{KnownCommands, has_stop, is_ui_step, shown_text, step_place, stop_params, unknown_commands};
|
||||
pub use recording::{START_RECORDING, STOP_RECORDING, record, stop};
|
||||
|
||||
@@ -940,7 +940,7 @@ fn color_bars_select_edit_and_reorder_the_rows() {
|
||||
let first = rect(&r, "Color 1");
|
||||
let last = rect(&r, "Color 4");
|
||||
// The List's rows touch: a row below another starts where the one above ends.
|
||||
assert!(r.by_label("Color 3").is_some_and(|t| t.rect.top() >= first.bottom() && t.rect.bottom() <= last.top()), "in row order");
|
||||
assert!(r.by_label("Color 3").is_some_and(|t| t.rect.top() >= first.bottom() && t.rect.bottom() <= last.top()), "in row order");
|
||||
click(&mut r, last.center());
|
||||
assert_eq!(field(&r, "__sel"), json!([3]), "a click selects the bar's row");
|
||||
let unedited = field(&r, "rows");
|
||||
|
||||
@@ -111,7 +111,8 @@ pub(crate) fn strips_follow(app: &mut VectorcraftApp, owner: &Owner, shown: bool
|
||||
return;
|
||||
}
|
||||
let layout = crate::panel_docking::layout_of(&app.ui);
|
||||
let open: Vec<String> = groups_of(app, owner).iter().filter_map(|g| g.first()).map(|first| strip_id(owner, first)).filter(|id| layout.contains(id)).collect();
|
||||
let open: Vec<String> =
|
||||
groups_of(app, owner).iter().filter_map(|g| g.first()).map(|first| strip_id(owner, first)).filter(|id| layout.contains(id)).collect();
|
||||
if open.is_empty() {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user