improve child selection highlighting

tzemanovic
Jan 29, 2026, 4:48 PM
26PMSVO7LYQVRAKIWY575NGXPLOOUQWQMEMZUX6W3KRBI3WISOSAC

Dependencies

Change contents

  • replacement in inflorescence_view/src/theme.rs at line 199
    [3.1762][3.1762:1793]()
    let border_width = 1.;
    [3.1762]
    [2.2519]
    const BORDER_WIDTH: f32 = 1.;
    const CHILD_SELECTED_BLEND_RATIO: f32 = 0.5;
  • replacement in inflorescence_view/src/theme.rs at line 205
    [2.2667][3.1794:1835]()
    width: border_width,
    [2.2667]
    [3.1835]
    width: BORDER_WIDTH,
  • replacement in inflorescence_view/src/theme.rs at line 221
    [4.12170][4.12170:12211]()
    width: border_width,
    [4.12170]
    [4.12211]
    width: BORDER_WIDTH,
  • replacement in inflorescence_view/src/theme.rs at line 229
    [4.12478][4.12478:12519]()
    MAGENTA_LIGHTEST
    [4.12478]
    [4.12519]
    blend(
    MAGENTA_LIGHTEST,
    TURQOISE_LIGHT,
    CHILD_SELECTED_BLEND_RATIO,
    )
  • replacement in inflorescence_view/src/theme.rs at line 235
    [4.12548][4.12548:12688]()
    Color {
    a: 0.8,
    ..MAGENTA_LIGHTER
    }
    [4.12548]
    [4.12688]
    blend(
    MAGENTA_LIGHTER,
    TURQOISE,
    CHILD_SELECTED_BLEND_RATIO,
    )
  • replacement in inflorescence_view/src/theme.rs at line 245
    [3.2026][3.2026:2067]()
    width: border_width,
    [3.2026]
    [3.2067]
    width: BORDER_WIDTH,
  • edit in inflorescence_view/src/theme.rs at line 554
    [2.6052]
    [2.6052]
    }
    }
    const fn blend(a: Color, b: Color, a_ratio: f32) -> Color {
    debug_assert!(a_ratio >= 0.0);
    debug_assert!(a_ratio <= 1.0);
    let b_ratio = 1.0 - a_ratio;
    Color {
    r: a.r * a_ratio + b.r * b_ratio,
    g: a.g * a_ratio + b.g * b_ratio,
    b: a.b * a_ratio + b.b * b_ratio,
    a: a.a * a_ratio + b.a * b_ratio,