add back +/- bg colors

[?]
Jun 5, 2025, 4:35 PM
ZD56BUSUGTPPDSHHTOC2H5RJJG4FUUUPOSM2BHRY3UA5D6OA43XQC

Dependencies

Change contents

  • edit in inflorescence_view/src/theme.rs at line 37
    [4.874]
    [4.874]
    const DELETED_BG_COLOR: Color = Color::from_rgba8(190, 37, 40, 0.25);
    const ADDED_BG_COLOR: Color = Color::from_rgba8(47, 148, 11, 0.25);
  • edit in inflorescence_view/src/theme.rs at line 84
    [4.1363]
    [6.20]
    DiffAddition,
    DiffDeletion,
  • edit in inflorescence_view/src/theme.rs at line 193
    [4.2391]
    [4.2391]
    Container::DiffAddition => container::Style {
    background: Some(Background::Color(ADDED_BG_COLOR)),
    ..default()
    },
    Container::DiffDeletion => container::Style {
    background: Some(Background::Color(DELETED_BG_COLOR)),
    ..default()
    },
  • replacement in inflorescence_view/src/diff.rs at line 13
    [2.549][3.6323:6347]()
    use crate::{el, Theme};
    [2.549]
    [2.912]
    use crate::{el, theme, Theme};
  • replacement in inflorescence_view/src/diff.rs at line 297
    [2.11875][3.7173:7359](),[3.7359][5.5348:5614]()
    LineKind::Added => line,
    // TODO replace with class
    // .style(|_theme| {
    // container::background(Background::from(ADDED_BG_COLOR))
    // })
    LineKind::Deleted => line, /* TODO replace with class
    * .style(|_theme| {
    * container::background(Background::from(DELETED_BG_COLOR))
    * }) */
    [2.11875]
    [2.12137]
    LineKind::Added => line.class(theme::Container::DiffAddition),
    LineKind::Deleted => line.class(theme::Container::DiffDeletion),