Skip to content

Simplify Taskbar Widget options and refactor some settings pages - #556

Merged
unchihugo merged 2 commits into
masterfrom
refactor/simplify-settings-options
Mar 21, 2026
Merged

unchihugo merged 2 commits into
masterfrom
refactor/simplify-settings-options

Conversation

@unchihugo

Copy link
Copy Markdown
Owner
  • Simplified Taskbar Widget settings page by removing the Clickable and Closeable options and setting them to be always true as most users will leave these on by default.
  • Removed (Experimental) label from Next Up settings page as this feature has been extensively tested and matured.
  • Changed Taskbar Widget settings page InfoBar severity level to be informational instead of warning.

@unchihugo
unchihugo requested a review from Copilot March 21, 2026 16:20
@github-actions github-actions Bot added the Taskbar Widget Changes to the Taskbar Media Widget label Mar 21, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR simplifies the Taskbar Widget settings experience by removing rarely-changed options and wiring the widget behavior to always allow click-to-toggle, while also cleaning up some settings-page labeling and messaging.

Changes:

  • Removed TaskbarWidgetClickable / TaskbarWidgetCloseableFlyout settings and corresponding UI toggles; widget click now always toggles the Media Flyout.
  • Updated Next Up settings label to remove the “(Experimental)” marker (en-US).
  • Downgraded the Taskbar Widget visual-issues InfoBar severity from Warning to Informational.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
FluentFlyoutWPF/ViewModels/UserSettings.cs Removes the two Taskbar Widget boolean settings and their change handlers/defaults.
FluentFlyoutWPF/Resources/Localization/Dictionary-en-US.xaml Removes strings for the deleted options; updates Next Up title text.
FluentFlyoutWPF/Pages/TaskbarWidgetPage.xaml Removes the two toggle cards from the UI and changes InfoBar severity.
FluentFlyoutWPF/Controls/TaskbarWidgetControl.xaml.cs Removes gating by the deleted settings; click now always toggles the flyout.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread FluentFlyoutWPF/Resources/Localization/Dictionary-en-US.xaml
Comment thread FluentFlyoutWPF/Resources/Localization/Dictionary-en-US.xaml
private void Grid_MouseEnter(object sender, MouseEventArgs e)
{
if (!SettingsManager.Current.TaskbarWidgetClickable || String.IsNullOrEmpty(SongTitle.Text + SongArtist.Text)) return;
if (string.IsNullOrEmpty(SongTitle.Text + SongArtist.Text)) return;

Copilot AI Mar 21, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

string.IsNullOrEmpty(SongTitle.Text + SongArtist.Text) allocates a new concatenated string on every mouse enter, which can be relatively hot. Prefer checking the two Text values separately (or tracking a boolean like HasMedia set in UpdateUi) to avoid per-event allocations.

Suggested change
if (string.IsNullOrEmpty(SongTitle.Text + SongArtist.Text)) return;
if (string.IsNullOrEmpty(SongTitle.Text) && string.IsNullOrEmpty(SongArtist.Text)) return;

Copilot uses AI. Check for mistakes.
private void Grid_MouseLeave(object sender, MouseEventArgs e)
{
if (!SettingsManager.Current.TaskbarWidgetClickable || String.IsNullOrEmpty(SongTitle.Text + SongArtist.Text)) return;
if (string.IsNullOrEmpty(SongTitle.Text + SongArtist.Text)) return;

Copilot AI Mar 21, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

string.IsNullOrEmpty(SongTitle.Text + SongArtist.Text) allocates a new concatenated string on every mouse leave. Consider checking the two Text values separately (or using a cached boolean) to avoid unnecessary allocations during frequent pointer movement.

Copilot uses AI. Check for mistakes.
@unchihugo
unchihugo merged commit b9c436c into master Mar 21, 2026
8 checks passed
@unchihugo
unchihugo deleted the refactor/simplify-settings-options branch March 21, 2026 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Taskbar Widget Changes to the Taskbar Media Widget

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants