improve child selection highlighting
Dependencies
- [2]
MYGIBRRHwip custom theme - [3]
PKJCFSBMtheme improvements - [4]
LA45PKNRimprove hierachical selection highlighting
Change contents
- replacement in inflorescence_view/src/theme.rs at line 199
let border_width = 1.;const BORDER_WIDTH: f32 = 1.;const CHILD_SELECTED_BLEND_RATIO: f32 = 0.5; - replacement in inflorescence_view/src/theme.rs at line 205
width: border_width,width: BORDER_WIDTH, - replacement in inflorescence_view/src/theme.rs at line 221
width: border_width,width: BORDER_WIDTH, - replacement in inflorescence_view/src/theme.rs at line 229
MAGENTA_LIGHTESTblend(MAGENTA_LIGHTEST,TURQOISE_LIGHT,CHILD_SELECTED_BLEND_RATIO,) - replacement in inflorescence_view/src/theme.rs at line 235
Color {a: 0.8,..MAGENTA_LIGHTER}blend(MAGENTA_LIGHTER,TURQOISE,CHILD_SELECTED_BLEND_RATIO,) - replacement in inflorescence_view/src/theme.rs at line 245
width: border_width,width: BORDER_WIDTH, - edit in inflorescence_view/src/theme.rs at line 554
}}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,