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
@@ -75,7 +75,6 @@ pub struct Tokens {
|
||||
pub gap: f32,
|
||||
pub tab_h: f32,
|
||||
pub row_h: f32,
|
||||
pub parameter_separators: bool,
|
||||
/// Settings ▸ Appearance ▸ Use Gradients: panel tab strips and buttons get a soft vertical
|
||||
/// gradient (off: flat fills).
|
||||
pub gradients: bool,
|
||||
@@ -147,7 +146,6 @@ impl Tokens {
|
||||
gap: 4.0,
|
||||
tab_h: 30.0,
|
||||
row_h: 19.0,
|
||||
parameter_separators: true,
|
||||
gradients: true,
|
||||
};
|
||||
match kind {
|
||||
@@ -218,7 +216,6 @@ impl Tokens {
|
||||
pub fn from_prefs(p: &effectcraft_engine::prefs::Prefs) -> Tokens {
|
||||
let kind = ThemeKind::from_name(&p.appearance.theme).unwrap_or_default();
|
||||
let mut t = Tokens::for_kind(kind).with_brightness(p.appearance.brightness as f32);
|
||||
t.parameter_separators = p.appearance.parameter_row_separators;
|
||||
for (i, l) in effectcraft_color::Label::ALL.iter().enumerate() {
|
||||
let [r, g, b] = p.label_rgb(*l);
|
||||
t.labels[i] = Color32::from_rgb(r, g, b);
|
||||
|
||||
Reference in New Issue
Block a user