UI: Effect Controls and the Timeline have no parameter row separators, as in After Effects (#402)
#402 made Effect Controls' rows compact and aligned, as After Effects draws them, and also added thin separator lines between parameter rows in Effect Controls and the Timeline, with a Settings > Appearance > Show Parameter Row Separators preference. After Effects has neither, so the lines, the preference and the Tokens field go; the compact rows, the alignment and the automation ids stay. Saved settings with the old key load as before (unknown keys are ignored). Test: ui_parameter_spacing keeps the row geometry, hit target and nesting tests; the separator tests go with the feature. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
9144eef269
commit
82f0cd9668
@@ -112,14 +112,6 @@ pub fn select_all(ctx: &egui::Context, id: egui::Id, text: &str) {
|
||||
state.store(ctx, id);
|
||||
}
|
||||
|
||||
/// A parameter boundary. It only paints: row layout owns both drawing and hit testing.
|
||||
pub fn parameter_separator(p: &egui::Painter, r: Rect, t: &Tokens) {
|
||||
let y = r.max.y - 0.5;
|
||||
if t.parameter_separators && p.clip_rect().y_range().contains(y) {
|
||||
p.line_segment([pos2(r.min.x, y), pos2(r.max.x, y)], Stroke::new(1.0, t.app_bg));
|
||||
}
|
||||
}
|
||||
|
||||
/// A colour swatch; returns the response (click opens the picker in the caller).
|
||||
pub fn swatch(ui: &mut Ui, rect: Rect, c: [f32; 4], id: egui::Id, t: &Tokens) -> Response {
|
||||
let resp = ui.interact(rect, id, Sense::click());
|
||||
|
||||
Reference in New Issue
Block a user