mirror of
https://github.com/Trensa-Organization/hy3.git
synced 2025-03-16 03:03:40 +01:00
Better node focus display in tabs
Active child is always marked focused All nodes are marked focused if the group is selected
This commit is contained in:
parent
eacde194dc
commit
c8ae1d1aa2
1 changed files with 3 additions and 1 deletions
|
@ -191,7 +191,9 @@ void Hy3TabBar::updateNodeList(std::list<Hy3Node*>& nodes) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// set stats from node data
|
// set stats from node data
|
||||||
entry->setFocused((*node)->isIndirectlyFocused());
|
auto* parent = (*node)->parent;
|
||||||
|
auto& parent_group = parent->data.as_group;
|
||||||
|
entry->setFocused(parent_group.focused_child == *node || (parent_group.group_focused && parent->isIndirectlyFocused()));
|
||||||
entry->setUrgent((*node)->isUrgent());
|
entry->setUrgent((*node)->isUrgent());
|
||||||
|
|
||||||
node = std::next(node);
|
node = std::next(node);
|
||||||
|
|
Loading…
Add table
Reference in a new issue