Taskbar Open Window Underline
Underlines the labels of taskbar buttons whose windows are shown on the desktop, so open and minimized windows can be told apart at a glance
Author: Deen-0x
Underlines the label of every Windows 11 taskbar button that has a window
currently shown on the desktop. Buttons whose windows are all minimized keep a
plain label, so you can tell at a glance which apps actually have something
open in front of you.
Used the icon underline? The experimental icon underline from version 2.x
has moved to its own mod, which marks taskbar icons for open, maximized and
minimized windows and works with hidden labels:
Taskbar App State Indicators.
If you only used the icon underline, you can disable this mod after installing
Taskbar App State Indicators; otherwise this update turns label underlines on.
Whole label
First letter only
Requirements:
- Windows 11 with the XAML taskbar (22H2 or newer).
- Taskbar labels must be visible: Settings → Personalization → Taskbar →
Taskbar behaviors → "Combine taskbar buttons and hide labels" set to
Never (or When taskbar is full). The "Show labels, combine taskbar
buttons" mode of the Taskbar Labels mod is supported as well; a combined
group is underlined when any (or, optionally, every) one of its windows is
shown.
Options:
- What to underline: buttons with a window shown on the desktop, or the
opposite, buttons whose windows are all minimized.
- Underline style: the whole label, or just its first letter.
- Buttons with several windows, Count the foreground window as shown
and Treat cloaked windows as not shown fine-tune which windows count.
- Hide the running indicator hides the taskbar's own indicator under
running buttons, so that the underline is the only cue. The same element
also marks the active window (the wider accent-colored line) and, on some
builds, attention requests, so those markers go with it.
- Refresh delay sets how long window-state events are coalesced.
How it works:
- The taskbar's buttons live in an
ItemsRepeater; each button's item is its
view model (TaskListWindowViewModel for one window, TaskListGroupViewModel
for a group), and the view model knows its windows through the shell's
TaskItem / TaskGroup objects. The mod resolves every button's windows
that way and judges them with IsIconic (plus DWM cloaking for windows on
other virtual desktops). Win+D counts as minimized.
- A WinEvent hook (minimize / restore / show / hide / cloak, and foreground or
title changes when a setting needs them) invalidates the buttons; events are
coalesced and every button is re-evaluated on the taskbar thread, on every
taskbar.
- The underline is the native
TextBlock underline, so it follows the text
color, trimming and theme. It is removed when the mod is disabled.
- The running indicator is hidden through its element's composition visual,
so the taskbar's visual states are left untouched. It is shown again when
the option is turned off or the mod is disabled.
- On builds where the view-model symbols can't be resolved, the mod falls back
to matching label text against window titles, which is exact for "Never
combine" but blind to combined groups.