Repository navigation
Shrink Widget to Fit Available Taskbar Space - #1184
divyanshudhruv wants to merge 3 commits into
Conversation
|
I have read and agree to the FluentFlyout CLA You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot. |
|
Hi @unchihugo ! I've split one of the features of #1183 into this separate PR. Can you please review it? I can't find any shorter way to implement this effectively. Hope it helps. Would you prefer me to stack the 2nd PR on top of this one, or wait for this PR to be merged and then open the 2nd PR against master? The 2nd PR would cover the I'll follow whichever is easier for you to review. |
Important
PR #1183 will be closed and split into smaller feature PRs for easier review. This PR is one of those feature-specific PRs.
DEMO.mp4
Summary
Adds an opt-in adaptive width for the taskbar widget. When there isn't enough space, the widget checks how much room is available and hides the less important parts until it fits. It hides the visualizer first, then the playback controls, then the song text. The album icon is always kept visible.
Motivation
Long song titles, a large number of pinned apps, or the Widgets button can leave the widget with very little room and cause it to overlap other taskbar elements. These changes address the behaviour requested in #1175 and #447.
Closes #1175
Closes #447
Partially Closes #1183
Type of Change
What Changed
WidgetLayoutSolverto choose the widest layout that fits the available space.TaskbarFreeSpaceCalculatorto calculate the available space using the tray, Widgets button, and centered taskbar elements.Additional Information
Both settings are off by default, so existing installations keep their current layout unless adaptive width is enabled.
Checklist