Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Commit

Permalink
Changed tooltip from HTML to plaintext
Browse files Browse the repository at this point in the history
  • Loading branch information
aekaisato authored and falkTX committed Mar 11, 2021
1 parent 41ab083 commit 64dc781
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions src/cadence.py
Expand Up @@ -1516,16 +1516,14 @@ def setAppDetails(self, desktop):
self.label_app_comment.setText(comment)

def updateSystrayTooltip(self):
systrayText = "Cadence<br/>"
systrayText += "<font size=\"-1\">"
systrayText += "<b>%s:</b>&nbsp;%s<br/>" % (self.tr("JACK Status"), self.label_jack_status.text())
systrayText += "<b>%s:</b>&nbsp;%s<br/>" % (self.tr("Realtime"), self.label_jack_realtime.text())
systrayText += "<b>%s:</b>&nbsp;%s<br/>" % (self.tr("DSP Load"), self.label_jack_dsp.text())
systrayText += "<b>%s:</b>&nbsp;%s<br/>" % (self.tr("Xruns"), self.label_jack_xruns.text())
systrayText += "<b>%s:</b>&nbsp;%s<br/>" % (self.tr("Buffer Size"), self.label_jack_bfsize.text())
systrayText += "<b>%s:</b>&nbsp;%s<br/>" % (self.tr("Sample Rate"), self.label_jack_srate.text())
systrayText += "<b>%s:</b>&nbsp;%s" % (self.tr("Block Latency"), self.label_jack_latency.text())
systrayText += "</font><font size=\"-2\"><br/></font>"
systrayText = "Cadence\n"
systrayText += "%s: %s\n" % (self.tr("JACK Status"), self.label_jack_status.text())
systrayText += "%s: %s\n" % (self.tr("Realtime"), self.label_jack_realtime.text())
systrayText += "%s: %s\n" % (self.tr("DSP Load"), self.label_jack_dsp.text())
systrayText += "%s: %s\n" % (self.tr("Xruns"), self.label_jack_xruns.text())
systrayText += "%s: %s\n" % (self.tr("Buffer Size"), self.label_jack_bfsize.text())
systrayText += "%s: %s\n" % (self.tr("Sample Rate"), self.label_jack_srate.text())
systrayText += "%s: %s" % (self.tr("Block Latency"), self.label_jack_latency.text())

self.systray.setToolTip(systrayText)

Expand Down

0 comments on commit 64dc781

Please sign in to comment.