Skip to content

feat: taskbar strip side and offset, clear of Start, Widgets and apps (#4) - #12

Merged
poweruserz merged 5 commits into
mainfrom
contrib/pr-4
Oct 20, 2026
Merged

poweruserz merged 5 commits into
mainfrom
contrib/pr-4

Conversation

@poweruserz

Copy link
Copy Markdown
Owner

@ElliotDrel's #4 (taskbar strip side and offset), with its commits unchanged, plus one commit on top. AI review skips pull requests from forks, so it runs here; merging this marks #4 as merged too.

From #4: Left/Right placement and an Offset (px) control for the taskbar strip.

Added here: in a real test on Windows 11, Left covered Start on a left-aligned taskbar, and Widgets (the weather button) sat under the strip on either side, including the default Right position once Widgets move next to the tray. Windows 11 draws Start, Widgets and the app buttons with XAML, so the strip had no windows to measure. Now:

  • taskbar_strip/uia.rs measures the taskbar's buttons with UI Automation once a second, on its own thread (those calls wait on Explorer; the strip thread shares Explorer's input queue and must not block). One cached FindAllBuildCache per taskbar, a few ms.
  • placement.rs keeps the strip in the gaps between them: Right = the gap next to the tray, Left = the leftmost gap, and when Windows aligns the icons left (TaskbarAl = 0) the second position becomes Center: the taskbar's middle, pushed right once the apps reach it. No gap wide enough: hidden, as before.
  • Settings labels the second position Left or Center from the Windows alignment; the hint is updated in all 11 languages.
  • Without UI Automation the strip falls back to the tray-only placement.

Tested live on this machine: centered icons with and without Widgets, left-aligned icons with Widgets beside the tray, Right and Center. After a Windows alignment change the strip can overlap for a second or two until the next measurement.

Checks: bunx tsc --noEmit, bun run test (1286 passed), cargo test --locked --lib (218 passed).

🤖 Generated with Claude Code

https://claude.ai/code/session_01KHc1HaoK4c5kUmgtCmKuwT

ElliotDrel and others added 5 commits October 15, 2026 12:21
Windows 11 draws those buttons with XAML, so the strip couldn't see them: on a left-aligned
taskbar Left covered Start, and Widgets sat under the strip on either side. A UI Automation
thread now measures the buttons every second and the strip keeps to the gaps between them.
The second position follows the Windows icon alignment: Left when centered, Center when left.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KHc1HaoK4c5kUmgtCmKuwT
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-20T19:30:28.927269Z 697aefb PR opened
🔒 Security Review ✅ Completed 2026-10-20T19:29:47.985221Z 697aefb PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown

Claude review

Commit 697aefb

VERDICT: CLEAN

@poweruserz
poweruserz merged commit 407a676 into main Oct 20, 2026
6 checks passed
@poweruserz
poweruserz deleted the contrib/pr-4 branch October 21, 2026 01:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants