! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Colored text support in genmon-plugin - <txtcolor></txtcolor> tag pair added
Status:
RESOLVED: DUPLICATE
Severity:
enhancement
Product:
Xfce4-genmon-plugin
Component:
General

Comments

Description Jaromír Cápík 2009-09-09 11:17:35 CEST
Created attachment 2533 
patch for colored text support

Hello.

I added a new tag pair <txtcolor></txtcolor>
where you can put either the color name
or the #RRGGBB hex value in order to change 
the color of the <txt></txt>-tagged label.
It's useful when You want to mark values
exceeding their limits or watermarks with 
a different color.


Examples:
<txtcolor>red</txtcolor>
or
<txtcolor>#FF0000</txtcolor>


The attached patch is applicable on genmon-plugin v3.2

Regards,
Jaromir.
Comment 1 Jaromír Cápík 2009-09-09 11:30:34 CEST
Created attachment 2534 
how it looks like

If You wanna see how it looks like ... here's the preview ...
Comment 2 Jaromír Cápík 2009-09-09 15:28:42 CEST
I accidently didn't notice the following PR submitted by Chris Green in the past.

http://bugzilla.xfce.org/show_bug.cgi?id=5124

It's opened since March, but hasn't been merged yet.
As it seems to be more flexible and suitable for the next release, I would vote for it :)

Regards,
Jaromir.
Comment 3 Florian Rivoal editbugs 2011-02-24 14:53:00 CET

*** This bug has been marked as a duplicate of bug 5124 ***

Bug #5751

Reported by:
Jaromír Cápík
Reported on: 2009-09-09
Last modified on: 2011-02-24

People

Assignee:
Florian Rivoal
CC List:
0 users

Version

Version:
3.2 or older

Attachments

patch for colored text support (1.35 KB, application/octet-stream)
2009-09-09 11:17 CEST , Jaromír Cápík
no flags
how it looks like (4.84 KB, image/jpeg)
2009-09-09 11:30 CEST , Jaromír Cápík
no flags

Additional information