the other for the newer gtkdialog4 to show how easy it is
to put some color in message windows.
Code: Select all
#!/bin/sh
export VERSION=3.1
export MAIN_DIALOG='<window title="Examples" icon-name="gtk-info" resizable="false">
<hbox>
<frame>
<vbox>
<text width-request="100"><label>First Frame</label></text>
<text use-markup="true"><label>"<b><u><span size='"'large'"'>Pup</span><span size='"'large'"' color='"'blue'"'>Shutdown</span> 1.6</u></b>"</label></text>
<text use-markup="true"><label>"<b><span size='"'large'"' color='"'blue'"'>Pup</span><span size='"'large'"' color='"'red'"'>Shutdown</span> '$VERSION'</b>"</label></text>
<text use-markup="true"><label>"<b><span size='"'large'"' color='"'red'"'>Shutdown</span> '$VERSION'</b> text"</label></text>
<text use-markup="true"><label>"<u><span size='"'large'"' color='"'red'"'>Shutdown</span></u>"</label></text>
</vbox>
</frame>
<frame>
<vbox>
<text width-request="50"><label>Second Frame</label></text>
<text use-markup="true"><label>"<b><span size='"'large'"'>Pup</span><span size='"'large'"' color='"'blue'"'>Shutdown</span> 1.6</b>"</label></text>
<text use-markup="true"><label>"<b><span size='"'large'"' color='"'blue'"'>Pup</span><span size='"'large'"' color='"'red'"'>Shutdown</span> '$VERSION'</b>"</label></text>
<text use-markup="true"><label>"<b><span size='"'large'"' color='"'red'"'>Shutdown</span> '$VERSION'</b> text"</label></text>
<hbox>
<text space-expand="false" use-markup="true"><label>"<u><span size='"'large'"' color='"'red'"'>Shutdown</span></u>"</label></text>
<text space-expand="true" space-fill="true">
<label>""</label>
</text>
</hbox>
<hbox>
<button help></button>
</hbox>
</vbox>
</frame>
<vbox>
<hbox>
<vbox>
<text height-request="110"><label> </label></text>
<hbox><button ok></button>
</hbox>
</vbox>
</hbox>
</vbox>
</hbox>
</window>
'
gtkdialog --program=MAIN_DIALOG
Some notes:
Both bold and underlining is possible simultaneously
Code: Select all
[b][u]....text.....[/u][/b]
A color can be a hex number instead.
You can use mtpaint to get the hex number.
The dropper can be used anywhere on
your computer screen to find the appropriate color.
____________________________________________________