Re: I don't understand the colour definitions in view.lua

From: mitchell <mforal.n....at.gmail.com>
Date: Mon, 5 Apr 2010 15:52:55 -0700 (PDT)

Russell,

> In files such as view.lua there are colour definitions such as the
> following:
>
> -- fold margin
> buffer:set_fold_margin_colour(1, 11184810) -- 0xAA | 0xAA << 8 | 0xAA
> << 16
> buffer:set_fold_margin_hi_colour(1, 11184810) -- 0xAA | 0xAA << 8 |
> 0xAA << 16
>
> To complete my preferred theme I want to change the above colours, but
> I simply don't understand the definition. I have no problem with the
> colour definitions which appear in lexer.lua, but am baffled by those
> above.
>

Color definitions according to Scintilla are

red | (green << 8) | (blue << 16)

When you get your RGB hex values, you can put them into something like
the Ruby interpreter to get a decimal value to give to ta. Lua doesn't
have that kind of syntax.

Mitchell

> Can anyone provide an explanation?
>
> Regards,
>
> Russell Dickenson
Received on Mon 05 Apr 2010 - 18:52:55 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:42:05 EST