Jas-SinghFSU / HyprPanel

A Bar/Panel for Hyprland with extensive customizability.
MIT License
787 stars 55 forks source link

Added pagination to the notifications menu and a configurable limit to the amount of notifications spawned. #199

Closed Jas-SinghFSU closed 2 months ago

Jas-SinghFSU commented 2 months ago

If too many notifications were created, the panel would consume a large amount of resources to render these notifications even though they wouldn't be visible on the screen. This PR adds a new property that implements pagination so no more than n (default 10) notifications are shown at a time. These notifications now have pagination controls that let you see ALL of your notifications by navigating through the pages; whereas previously you just wouldn't be able to see them.

This solves 2 problems:

  1. It lets you have access to all of your notifications visually (instead of majority of your notifications not being visible off-screen)
  2. It limits the amount of notifications that have to be rendered at once. This frees up a lot of resources that would otherwise be consumed.

closes #171