microsoft/PowerToys

Generalized Notification Bar for ColorPicker

Open

#11,812 opened on Jun 20, 2021

View on GitHub
 (4 comments) (0 reactions) (0 assignees)C# (7,978 forks)batch import
Help WantedIdea-EnhancementProduct-Color Picker

Repository metrics

Stars
 (133,154 stars)
PR merge metrics
 (Avg merge 14d 20h) (117 merged PRs in 30d)

Description

Description of the new feature / enhancement

While working on issue #9520 and receiving feedback in #10250, a suggestion came up to report the export success/failure status back to the user in the same form as the "Copied to clipboard" notification. The problem is this notification is hard-coded to display the copied status.

The notification bar works as a border in the ColorEditorView be passed down into the ColorFormatControl where it is triggered. All the animation logic is in the ColorFormatControl and the border is not currently accessible from the main ViewModel. Additionally, the notification contents and glyph are hard-coded into the view.

Requirements

  • Animated, stylized to look like the existing notification.
  • Offer ability to customize the message, the glyph associated with the message, and (maybe?) a flag specifying if the notification is an error. If error, the background color of the notification would be a shade of red.
  • Can trigger a "notification" from the ViewModel in response to backend work

Tagging @htcfreek and @martinchrzan who were involved in the original feedback.

Scenario when this would be used?

Generalization of the notifications would be useful to developers adding features to the ColorPicker UI that require reporting a status back to the user.

From users' perspective, they will see notifications stylized in the same form and get a consistent user experience.

Supporting information

Current UX image

Contributor guide