color settings in preferences

2001-01-23 Thread Kornel Benko
Hi, set (and save) colors with preferences dialog. Then the "preferences" file will contain lines like: egrep set_color preferences preferences:\set_color "selection" "#84cfff" preferences:\set_color "latex" "#f9" preferences:\set_color "floats" "#ff7e00" preferences:\set_color "note"

Re: color settings in preferences

2001-01-23 Thread Angus Leeming
Hmmm! Moreover, once you've saved your selection, all non-GUI colours come up as black which isn't very useful. You have to restart LyX to get the colours back and then this ignores the changes you've made. Fortunately, only colours are affected by this. Wierd. I'll investigate. Thanks for

Re: color settings in preferences

2001-01-23 Thread Jean-Marc Lasgouttes
"Angus" == Angus Leeming [EMAIL PROTECTED] writes: Angus Hmmm! Moreover, once you've saved your selection, all non-GUI Angus colours come up as black which isn't very useful. You have to Angus restart LyX to get the colours back and then this ignores the Angus changes you've made. Angus

Re: color settings in preferences

2001-01-23 Thread Angus Leeming
;-) I think that this patch clears both bugs. Angus On Tuesday 23 January 2001 11:42, Jean-Marc Lasgouttes wrote: "Angus" == Angus Leeming [EMAIL PROTECTED] writes: Angus Hmmm! Moreover, once you've saved your selection, all non-GUI Angus colours come up as black which isn't very

Re: color settings in preferences

2001-01-23 Thread Lars Gullik Bjønnes
Angus Leeming [EMAIL PROTECTED] writes: | +++ src/frontends/xforms/FormPreferences.C2001/01/23 12:22:39 | @@ -806,9 +806,9 @@ | // Note that X stores the RGB values in the range 0 - 65535 | // whilst we require them in the range 0 - 255. | RGBColor

Re: color settings in preferences

2001-01-23 Thread Angus Leeming
Can you do this by shifting instead, since that is what we really do. We just removes the lower 8 bits. col.r = xcol.red 8; Never, ever use shift on portable code without thinking REALLY hard about what you're doing. What about big/little endian machines? Anyway, the two

Re: color settings in preferences

2001-01-23 Thread Angus Leeming
Actually, scratch that. Col.r, g, b are all ints. I used the static_castunsigned char as a hack. Please, therefore, apply the original patch. Angus On Tuesday 23 January 2001 13:14, Angus Leeming wrote: Can you do this by shifting instead, since that is what we really do. We just

Re: color settings in preferences

2001-01-23 Thread Lars Gullik Bjønnes
Angus Leeming [EMAIL PROTECTED] writes: | Actually, scratch that. Col.r, g, b are all ints. I used the | static_castunsigned char as a hack. Please, therefore, apply the original | patch. Ok. (you can do it yourself) Lgb | Angus | | | | On Tuesday 23 January 2001 13:14, Angus

Re: color settings in preferences

2001-01-23 Thread Kornel Benko
Perfect! But only after make clean make For some reason the library dependencies are not correct. I'm compiling with --frontend-kde. Kornel -- Kornel Benko [EMAIL PROTECTED]

color settings in preferences

2001-01-23 Thread Kornel Benko
Hi, set (and save) colors with preferences dialog. Then the "preferences" file will contain lines like: egrep set_color preferences preferences:\set_color "selection" "#84cfff" preferences:\set_color "latex" "#f9" preferences:\set_color "floats" "#ff7e00" preferences:\set_color "note"

Re: color settings in preferences

2001-01-23 Thread Angus Leeming
Hmmm! Moreover, once you've saved your selection, all non-GUI colours come up as black which isn't very useful. You have to restart LyX to get the colours back and then this ignores the changes you've made. Fortunately, only colours are affected by this. Wierd. I'll investigate. Thanks for

Re: color settings in preferences

2001-01-23 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> Hmmm! Moreover, once you've saved your selection, all non-GUI Angus> colours come up as black which isn't very useful. You have to Angus> restart LyX to get the colours back and then this ignores the Angus> changes you've made.

Re: color settings in preferences

2001-01-23 Thread Angus Leeming
;-) I think that this patch clears both bugs. Angus On Tuesday 23 January 2001 11:42, Jean-Marc Lasgouttes wrote: > > "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: > > Angus> Hmmm! Moreover, once you've saved your selection, all non-GUI > Angus> colours come up as black which

Re: color settings in preferences

2001-01-23 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | +++ src/frontends/xforms/FormPreferences.C2001/01/23 12:22:39 | @@ -806,9 +806,9 @@ | // Note that X stores the RGB values in the range 0 - 65535 | // whilst we require them in the range 0 - 255. | RGBColor

Re: color settings in preferences

2001-01-23 Thread Angus Leeming
> Can you do this by shifting instead, since that is what we really do. > We just removes the lower 8 bits. > > col.r = xcol.red >> 8; Never, ever use shift on portable code without thinking REALLY hard about what you're doing. What about big/little endian machines? Anyway,

Re: color settings in preferences

2001-01-23 Thread Angus Leeming
Actually, scratch that. Col.r, g, b are all ints. I used the static_cast as a hack. Please, therefore, apply the original patch. Angus On Tuesday 23 January 2001 13:14, Angus Leeming wrote: > > > Can you do this by shifting instead, since that is what we really do. > > We just removes the

Re: color settings in preferences

2001-01-23 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | Actually, scratch that. Col.r, g, b are all ints. I used the | static_cast as a hack. Please, therefore, apply the original | patch. Ok. (you can do it yourself) Lgb | Angus | | | | On Tuesday 23 January 2001 13:14, Angus Leeming wrote:

Re: color settings in preferences

2001-01-23 Thread Kornel Benko
Perfect! But only after make clean make For some reason the library dependencies are not correct. I'm compiling with --frontend-kde. Kornel -- Kornel Benko [EMAIL PROTECTED]