You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to implement a visual indicator on the application's taskbar/dock icon to display the number of active database connections. This would provide users with at-a-glance visibility of connection status without opening the application.
Requirements
Add a visual overlay/badge to the application icon in the taskbar/dock
Indicator should update when database connections change
Not sure which OS we can get this to work, but ideally all.
Proposed Implementation
For Windows, we can use the setOverlayIcon API:
const{ BrowserWindow, nativeImage }=require('electron')constwin=newBrowserWindow()// Create and set an overlay iconconstoverlayIcon=nativeImage.createFromPath('path/to/overlay.png')win.setOverlayIcon(overlayIcon,'Description for overlay')
For macOS, we can use the dock badge API:
// In the main processapp.dock.setBadge('1')// Set a number// orapp.dock.setBadge('●')// Set a dot
Overview
We need to implement a visual indicator on the application's taskbar/dock icon to display the number of active database connections. This would provide users with at-a-glance visibility of connection status without opening the application.
Requirements
Proposed Implementation
For Windows, we can use the
setOverlayIcon
API:For macOS, we can use the dock badge API:
To clear the overlay:
Technical Considerations
Additional Notes
The text was updated successfully, but these errors were encountered: