Skip to content

Commit

Permalink
change documentation of WindowMainStateListener
Browse files Browse the repository at this point in the history
Co-authored-by: Reuben Turner <[email protected]>
  • Loading branch information
Adrian-Samoticha and GroovinChip authored Aug 12, 2023
1 parent ce55875 commit 3c1d16f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/src/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,11 @@ class MacOSBrightnessOverrideHandler {
}
}

/// A class that listens for changes to the application's window being the main
/// window, and notifies listeners.
/// A class that listens for changes to the application's main window.
///
/// A common use-case for responding to such changes would be to mute the colors of certain
/// primary UI elements when the window is no longer in focus, which is something native
/// macOS applications do out of the box.
class WindowMainStateListener {
/// A shared instance of [WindowMainStateListener].
static final instance = WindowMainStateListener();
Expand Down

0 comments on commit 3c1d16f

Please sign in to comment.