Skip to content

Conversation

@crwood
Copy link
Member

@crwood crwood commented Jun 27, 2019

In fulfillment of #226, this PR adds a BadgedPixmap class that overlays a red/circular "badge" onto an arbitrary pixmap that may contain text, at a relative size, and in a corner of the developer's choice. This is intended to be used to highlight the presence of pending or important information within the application, for example, like so (on macOS):

badge-mac

Note that this is mostly intended for future purposes; for now, a notification "badge" will only be displayed to signal a pending/unread "newscap" message (however, the same functionality may be used for other/additional purposes later on -- e.g., to communicate software updates, to highlight a magic-folder conflict, to remind users to export a Recovery Key, to notify of an expiring subscription to a commercial service provider, and so on).

@crwood crwood merged commit 3c972ab into master Jun 27, 2019
@crwood crwood deleted the 226.notification-badges branch June 27, 2019 04:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants