sleek icon indicating copy to clipboard operation
sleek copied to clipboard

Support theme-based tray icon on Linux

Open andrei-a-papou opened this issue 1 year ago • 1 comments

Feature Request

Description: Currently, the tray icon on Linux is the same as the app icon, so it does not blend well with the overall look and feel for popular Linux desktop themes, most of which use monochrome icons. Here's a screenshot of the current situation, this uses the Papirus Dark theme:

image

To provide a better user experience, I propose picking an icon from the currently selected icon theme. If the icon is not there, fall back to the built-in app icon.

I've disabled the tray icon for now (thank you for this feature) as it looks too large and out of place in my tray, but would love to use it in the future. It's definitely not a deal breaker, but I do think the UX would benefit from an icon that matches the rest.

Implementation Details: Not sure electron supports themable notification area icons :( If it doesn't, perhaps a command line option could be implemented (e.g. --tray-icon=/path/to/icon.svg)?

andrei-a-papou avatar Nov 26 '23 18:11 andrei-a-papou

I don't know if electron supports SVG images already, but it seems there's a workaround to use them: https://github.com/electron/electron/issues/9642#issuecomment-986255696

Using SVG is important for Linux notification area as its height and/or size of icon slots can be dynamically changed by the user. An SVG image would then be resized as well, with no blurriness.

andrei-a-papou avatar Nov 26 '23 18:11 andrei-a-papou