Bug 303 : colours defined as hex not auto formatted
Last modified: 2010-03-26 07:07




Status:
RESOLVED
Resolution:
FIXED -
Priority:
P4
Severity:
normal

 

Reporter:
uoou
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2006-03-07 21:46
Really tiny thing but I imagien you want to know. When colours are given a
vlaue like this:

somecolour = #ff0000;
or
color somecolour = #ff0000;

They don't get autoformatted. As in, the don't get tabbed in, just left on
the left.

If it helps at all, they're fine like this:

somecolour = 0xff0000;

So I guess as with so many problems, it's down to the hash.

I'm not sure how to use this thing so I hope I've done ok. I had a quick
search but couldn't find this mentioned. Using version 0107 on winXP btw.
Additional Comment #1 From fry 2006-03-08 19:58
huh, that's a new one. thanks for posting.
Additional Comment #2 From fry 2007-07-27 19:36
*** Bug 601 has been marked as a duplicate of this bug. ***
Additional Comment #3 From obb64 2008-03-16 02:30
(In reply to comment #0)
>
> color somecolour = #ff0000;
>
> somecolour = 0xff0000;
>
I think you have to include the Alpha-Value too.
somecolour = 0xffff0000;
0xAARRGGBB
AA=Alpha
RR=Read
GG=Green
BB=Blue
Additional Comment #4 From fry 2009-12-15 04:33
*** Bug 1412 has been marked as a duplicate of this bug. ***
Additional Comment #5 From fry 2009-12-15 04:33
*** Bug 1411 has been marked as a duplicate of this bug. ***