feat(bar): expand focused window subwidget

This commit ensures that the focused window komorebi subwidget is aware
of multi-window containers and displays an ordered list of windows in a
container stack which can be clicked to change focus in the stack.

When there are >1 windows in a stack, the title of the focused window
will take from komorebi.json's theme.stack_border if theme is defined
(falling back to the same default value in komorebi), or from
theme.accent in komorebi.bar.json, if defined.
This commit is contained in:
LGUG2Z
2024-09-19 17:00:13 -07:00
parent 14d2ebd756
commit 182c1e6a96
3 changed files with 127 additions and 63 deletions
+2 -1
View File
@@ -102,7 +102,8 @@ impl BarWidget for Media {
.add(
Label::new(layout_job)
.selectable(false)
.sense(Sense::click()),
.sense(Sense::click())
.truncate(),
)
.clicked()
{