Top Taskbar Bleed
Bleeds the color of a maximized window's title bar into a top-docked taskbar behind the task buttons
Author: Deen-0x
When a maximized window sits under a top-docked taskbar, the taskbar gets a
full-width color panel behind its buttons that matches the window's title bar
(optionally as a gradient, for Mica title bars), so the title bar appears to
continue up into the bar.

Requires a taskbar docked at the top of the screen (via the taskbar
position setting on builds that have it, or a mod such as Taskbar on top for
Windows 11). On other dock positions this mod stays idle, unless the
experimental Any taskbar position option is on: then a bottom, left or
right taskbar (the latter two via a mod such as Vertical Taskbar for Windows
11) is painted with the maximized window's title bar color too. Vertical
taskbars always get the flat color, never the gradient.
How it works:
- A tracker thread watches window events and finds, per monitor, the foremost
maximized window (the first maximized window in z-order on that monitor -
not necessarily the foreground window, so a small dialog on top of a
maximized app doesn't cancel the bleed).
- The first four rows of the window's title bar are captured from the screen
and reduced to their dominant color (so a bit of text or an icon can't skew it);
that color is the panel and decides the taskbar theme. Pixels covered by
another window - a flyout, a thumbnail, a tooltip, a dialog near the title
bar - are left out,
so floating windows never tint the bleed. Hovering a taskbar thumbnail
(Aero Peek) bleeds the peeked window if it is maximized on that monitor and
hides the panel otherwise, since the desktop is what shows through. The
same goes for Task View (Win+Tab) or any other full-screen overlay covering
the title bar: the panel hides until it is gone.
- Experimental Gradient bleed: instead of one color, the dominant colors
of four windows at 20/40/60/80% of the width - away from the app icon on the
left, the caption buttons on the right and a centered title - become a
horizontal gradient, so a Mica or gradient title bar continues into the bar
(a flat one stays flat). A point that doesn't fit the rest (a toolbar
reaching that far, a hovered control) is bridged from its neighbors. Off by
default: apps that put content along the very top of their title bar can
still show it.
- One panel per taskbar is inserted into the taskbar's XAML tree, above the
taskbar background and below the buttons. The panel mirrors the title bar:
window changes (switching, maximizing, minimizing) are picked up from window
events and applied on the next composed frame, and the title bar is
re-sampled in between - every Poll interval (250 ms by default) while it
is static, every 25 ms while it is changing - so a title bar that recolors
in place (focus fade, tab switch, app theme change) is followed frame by
frame. With Windows animations on, a window being zoomed into place isn't
committed until its title bar has actually landed, so the panel never
flashes the background behind it; with animations off the first sample is
applied as is.
- An optional separator line runs along the edge of the bleed that
meets the window - the bottom of a top taskbar, the top of a bottom one,
the window-facing side of a vertical one - as a visual seam between the
bleed and the title bar. Its color is the bleed's own tone set off by the
Contrast setting (same hue, lighter on a dark bleed, darker on a light
one: black gives mid gray, white light gray), or a fixed
#RRGGBB color,
or accent for the Windows accent color; continuous, dashed, dot-dash or
dotted, with the thickness, dash and gap lengths and the opacity
configurable (pixel values are physical pixels, whatever the display
scaling). It shows only while a bleed does.
Supports multiple monitors (each taskbar follows its own monitor).
Settings:
- Poll interval: how often a static title bar is re-checked; window
changes are event-driven regardless.
- Excluded programs: programs whose windows never trigger the bleed.
- Custom colors: programs whose maximized windows bleed a fixed
#RRGGBB
color instead of their sampled title bar - for an app whose top rows don't
show its real title bar color (a custom frame, a hairline, content drawn at
the very top).
- Separator line: described above.
- Transparent taskbar when nothing is maximized: the taskbar's own
background and border line are hidden, so the wallpaper shows through
whenever no bleed is showing - the taskbar is then either bled or
transparent, never stock. A taskbar the mod leaves idle (a bottom taskbar
with Any taskbar position off) keeps its background.
- Experimental Gradient bleed and Any taskbar position: described
above.
A program is named by its executable (chrome.exe). A program that keeps
another one's executable name - a browser fork like Helium, which runs as
chrome.exe - is named by a piece of its install path instead, anything with
a backslash in it: \helium\ or helium\application\chrome.exe (Task
Manager > Open file location shows the path).
The panel is a regular XAML Border named TaskbarBleedPanel, so its shape can
be styled with Windows 11 Taskbar Styler like any other taskbar element.
Target Border#TaskbarBleedPanel and set, for example, Margin=4,4,4,0 or
CornerRadius=8,8,0,0 (on a top taskbar the panel's bottom edge meets the
window, so the rounded corners are normally the top ones; on a bottom taskbar
it is the other way round). Leave Background and Opacity alone - the mod
drives those (the background is a gradient brush). The separator line is
Line#TaskbarBleedSeparator, right above the panel; the mod drives its
geometry, stroke, dashes and opacity.
Notes
- The taskbar's XAML tree is reached through
taskbar.dll and
Taskbar.View.dll symbols (downloaded by Windhawk on first run), not through
XAML diagnostics, so the mod coexists with Windows 11 Taskbar Styler and other
XAML-diagnostics consumers. The bleed applies as soon as the mod is enabled.
- Cost: with a maximized window present, each poll is one small screen
readback (a 4px-high strip) plus a window enumeration; it doesn't register in
Task Manager at either rate, and the fast rate only runs during a transition.
With no maximized window the poll timer is off, and window events are only
acted on when they come from a maximized window or the window being
followed, so tooltips, thumbnails and overlays cost nothing. The one thing
that runs regardless is a check every 10 s that the panels are still where
the mod put them in the taskbar's tree (the taskbar, or another taskbar
mod, can rebuild that tree without notice), repairing them if not, so the
bleed never silently stops. It touches only what the mod itself placed or
changed.
- Windows that exclude themselves from capture (protected media, some
remote-desktop clients) return no usable pixels; the panel then keeps its
last color.
- The 1px taskbar border line (
BackgroundStroke) breaks the illusion; it is
hidden while a panel is showing and restored when the panel hides (with the
transparent-taskbar option it stays hidden).
- The transparent-taskbar option sets the opacity of the taskbar's own
background (
Rectangle#BackgroundFill) to 0 rather than replacing its brush,
so a Taskbar Styler Fill= style on it is left alone and comes back as soon
as the option is turned off. The taskbar's text keeps the Windows mode's
theme while transparent, as it does with any transparent taskbar.
- Readability: a light title bar bled into a dark-mode taskbar leaves white
labels on a light panel (and vice versa). While a panel is showing, the mod
switches that monitor's taskbar to the theme that matches the bled color
(light panel -> light mode, dark panel -> dark mode) and restores the
taskbar's own theme when the panel hides - the one matching the current
Windows mode, also when the mode was switched while the panel was showing.
This is done per taskbar through XAML's
RequestedTheme, so only the
affected monitor changes and the system theme itself is untouched. The
taskbar's own background element is kept on the Windows mode's theme the
whole time (the panel covers it anyway), so a mode or accent change while
a bleed is showing still gives the taskbar the right background to come
back to.
Credits
The taskbar-thread helpers (RunFromWindowThread, FindCurrentProcessTaskbarWnd)
and the taskbar.dll XAML-root lookup are ported from
Taskbar multi-row by m417z,
licensed under the GNU GPL v3.0. This mod is published under the same license.