How to set ui-backcolor use RGB color

251 views
Skip to first unread message

JoeZhong

unread,
Jan 8, 2011, 8:11:52 AM1/8/11
to Fiddler
I write a FiddlerScript to change session background color with a RGB
color string, but it doesn't work.

Is only work when set a color name, like red, green? how can i set
backcolor with my custom color?

my code doesn't work:
oSession["ui-backcolor"] = "#00ff00";
//or
oSession["ui-backcolor"] = "00ff00";
//or
oSession["ui-backcolor"] = "rgb(00, 255, 00)";

the code is OK
oSession["ui-backcolor"] = "red";

EricLaw

unread,
Jan 8, 2011, 11:39:52 AM1/8/11
to Fiddler
As you noticed, ui-backcolor only accepts color names. Is that really
a problem?

JoeZhong

unread,
Jan 8, 2011, 12:39:39 PM1/8/11
to Fiddler
I write a extension that user can mark the session with custom color.
User chooses color string from a colorDialog(C#), and I use
colorDialog.Color.Name try to get color name, but some colors convert
result is a HTML GRB string, like "ff008040". These color string can't
use in FiddlerScript directly.

EricLaw

unread,
Jan 9, 2011, 7:13:37 PM1/9/11
to Fiddler
Interesting -- I see how this might be useful. I'll add this to the
next version; you'll be able to use this syntax:

oSession["ui-backcolor"] = "#00ff00";

JoeZhong

unread,
Jan 9, 2011, 9:27:57 PM1/9/11
to Fiddler
Thank you and waiting for the next version :)

EricLaw

unread,
Jan 10, 2011, 12:52:03 PM1/10/11
to Fiddler
Version 2.3.1.1 is now available. http://www.getfiddler.com
> > oSession["ui-backcolor"] = "#00ff00";- Hide quoted text -
>
> - Show quoted text -
Reply all
Reply to author
Forward
0 new messages