From 8f20cf5ececb48a5ef51981d9cbc1c66ad686f85 Mon Sep 17 00:00:00 2001 From: Victoria Brekenfeld Date: Mon, 5 Jun 2023 18:32:37 +0200 Subject: [PATCH] tiling: Fix potential group border color --- src/shell/layout/tiling/mod.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/shell/layout/tiling/mod.rs b/src/shell/layout/tiling/mod.rs index 68c09483..fcded726 100644 --- a/src/shell/layout/tiling/mod.rs +++ b/src/shell/layout/tiling/mod.rs @@ -1819,9 +1819,9 @@ where } => { let render_active_child = if let Some(focused_id) = focused.as_ref() { !has_potential_groups - && tree - .children_ids(&node_id) - .unwrap() + && node + .children() + .iter() .any(|child_id| child_id == focused_id) } else { false @@ -1835,7 +1835,7 @@ where geo, 4, if render_active_child { 16 } else { 8 }, - alpha * if render_potential_group { 0.14 } else { 1.0 }, + alpha * if render_potential_group { 0.40 } else { 1.0 }, GROUP_COLOR, ) .into(), @@ -1900,7 +1900,7 @@ where geo, 4, 8, - alpha * if render_potential_group { 0.4 } else { 1.0 }, + alpha * if render_potential_group { 0.40 } else { 1.0 }, GROUP_COLOR, ) .into(),