! 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 !
Custom colors in output
Status:
RESOLVED: INVALID
Product:
Xfce4-genmon-plugin
Component:
General

Comments

Description Leinnan 2016-06-15 22:53:15 CEST
[New feature]
Lets add other than default, not for all output once but how many user want. Output can look like this:
<txt>Default Color text<color=BeDead>LigthGreenText</color>And now default again</txt>

Color will be hexadecimal value, maybe with some predefined options.
Comment 1 ToZ editbugs 2016-06-16 04:30:21 CEST
I forgot to mention this in the forum response, but this is already possible using pango markup (see: https://developer.gnome.org/pango/stable/PangoMarkupFormat.html). For your example, you would use:

<txt>Default Color text<span fgcolor="#BeDead">LightGreenText</span>And now default again</txt>

If you are echo-ing this out, make sure you escape the quotes:

echo "<txt>Default Color text<span fgcolor=\"#BeDead\">LightGreenText</span>And now default again</txt>"

...or use single quotes:

echo "<txt>Default Color text<span fgcolor='#BeDead'>LightGreenText</span>And now default again</txt>"

Bug #12653

Reported by:
Leinnan
Reported on: 2016-06-15
Last modified on: 2016-06-16

People

Assignee:
Florian Rivoal
CC List:
1 user

Version

Version:
unspecified

Attachments

Additional information