bilelmoussaoui / Hardcode-Tray

Fixes Hardcoded tray icons in Linux
Other
863 stars 63 forks source link

QTalarm alarm clock very stubborn tray icon #668

Closed katgetscash closed 3 years ago

katgetscash commented 3 years ago

### Image of problematic behavior

Specifications:

Expected behavior and actual behavior

Hello and good day. Am attempting to change hard-coded tray icon for QTalarm using this script in different ways. So far, have followed the instructions for building successfully, but this one application refuses to cooperate with my other tray icons.

Steps to reproduce the problem

  1. Building both apps from source, same outcome. Apps install and work correctly for other apps, but this app seems to have an qt qrc icon that will not obey even when replaced manually according to package maintainer in (/usr/share/icons/hicolor, 16x16, 24x24, and 32 x32 respectively.) This also doesn't seem to be affected by running the Hardcode-Tray app for my icon theme (papirus-dark 22px, and hicolor, or clearing the cache and starting over.
  2. Have tried following along with other recommendations here but this app uses PNG, conversion from SVG works everywhere else but in the tray. Is there a specific JSON entry or something else I am missing?
  3. Any ideas at this point? Thank you for taking a look at this request.

Regards,

varlesh commented 3 years ago

Yes, it's impossible. Used icons from binary QRC:

trayIcon->setIcon(QIcon(":/new/icons/Clock.png"));

open issue on QTalarm dev for add option use tray icon from theme+fallback icon: trayIcon->setIcon(QIcon::fromTheme("qtalarm-tray", QIcon(":/new/icons/Clock.png")));