Skip to content

Releases: BlueHuskyStudios/BezelNotification

2.1 • Updating material to modern APIs

23 Feb 18:48
dcdd70b
Compare
Choose a tag to compare

Thanks to @sidevesh for putting in #9 to use .hudWindow for macOS ≥10.14, while retaining .dark for older versions!

This should not affect the previous experience/behavior. Please create a new issue if it does.


Changes

  • 2.1.0
    • #9: Use .hudWindow instead of .dark material

2.0 • Swift Package!

27 Jul 03:09
4a4d9c4
Compare
Choose a tag to compare

It's now a Swift Package! Should be usable like any other; just include this as any other Swift Package and follow the README for in-code usage.

This is versioned 2.0.0 because it moves files around in a way incompatible with previous intended usage as a Git submodule, and because of that, We took the opportunity to rename BHBezelNotification to just BezelNotification

A good start

15 Nov 18:14
Compare
Choose a tag to compare

The first release does a good job at mimicking the bezel notifications shown by Apple apps, with a couple extra customizations thrown in

Features

  • Shows a bezel notification the same size and position as the system standard ones

Required:

  • Accepts any string as the message text (but long ones get cut off)

Optional:

  • [encouraged] Accepts an NSImage as the icon (will be resized down if it's too large)
  • Allows "Short", "Long", "Forever" time-to-live, as well as a custom exact number of seconds
  • Accepts a TimeInterval number of seconds for the length of the fade-in and fade-out animations (separately)
  • Accepts a NSColor as a tint (will be modified to not be overbearing)
  • Accepts a NSColor as the message text color (will be modified to be slightly vibrant)
  • Accepts a NSFont as the message text font
  • Accepts a CGFloat for the radius of the rounded corners (Non-positives and non-reals are undefined behavior)

// TODO:

  • #1: Allow arbitrary views for icon and message
  • #2: Add more locations and sizes