add back +/- bg colors
[?]
Jun 5, 2025, 4:35 PM
ZD56BUSUGTPPDSHHTOC2H5RJJG4FUUUPOSM2BHRY3UA5D6OA43XQCDependencies
- [2]
23SFYK4Qbig view refactor into a new crate - [3]
MYGIBRRHwip custom theme - [4]
PKJCFSBMtheme improvements - [5]
XSZZB47Urefactor stuff into lib - [6]
XIASAP3Gclippy
Change contents
- edit in inflorescence_view/src/theme.rs at line 37
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
DiffAddition,DiffDeletion, - edit in inflorescence_view/src/theme.rs at line 193
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
use crate::{el, Theme};use crate::{el, theme, Theme}; - replacement in inflorescence_view/src/diff.rs at line 297
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))* }) */LineKind::Added => line.class(theme::Container::DiffAddition),LineKind::Deleted => line.class(theme::Container::DiffDeletion),