Re: Setting the color of the background (was Re: Shortcuts text colour and Command Center window problems on Puppy Linux)

2020-03-04 Thread Lib Lists
On Tue, 3 Mar 2020 at 22:25, Richard Shann  wrote:
>
> On Tue, 2020-03-03 at 18:59 +0200, Lib Lists wrote:
> > > > Talking about colours, is it possible to modify the background
> > > > colour
> > > > of both the editing
> > > >   and print view windows?
> > >
> > > The "editing window" that is, the Denemo Display, can have its
> > > color
> > > set from Scheme - I forget the syntax, ask if you need it - while
> > > the
> > > Print View is (IIRC) just the default i.e. theme-able.
> >
> > It'd be nice to be able change the background colour of the Denemo
> > Display.
>
> I searched the Help->Browse Manual for "color" and came up with
>
> SetBackground. Set passed 24 bit number as RGB color of background.
>
> which is cryptic to say the least it means
>
> (d-SetBackground 0)
>
> would set the background to black.
> (d-SetBackground #x00ff00) turns red and blue off etc.
> There is a Denemo procedure to get a color from the user, too. (d-
> SelectColor) which returns a list of r, g and b values in range 0.0-1.0
> that would need converting to use with d-SetBackground.

Great, thanks, that works perfectly!

lib
>
> HTH
>
> Richard
>



Setting the color of the background (was Re: Shortcuts text colour and Command Center window problems on Puppy Linux)

2020-03-03 Thread Richard Shann
On Tue, 2020-03-03 at 18:59 +0200, Lib Lists wrote:
> > > Talking about colours, is it possible to modify the background
> > > colour
> > > of both the editing
> > >   and print view windows?
> > 
> > The "editing window" that is, the Denemo Display, can have its
> > color
> > set from Scheme - I forget the syntax, ask if you need it - while
> > the
> > Print View is (IIRC) just the default i.e. theme-able.
> 
> It'd be nice to be able change the background colour of the Denemo
> Display.

I searched the Help->Browse Manual for "color" and came up with

SetBackground. Set passed 24 bit number as RGB color of background. 

which is cryptic to say the least it means

(d-SetBackground 0)

would set the background to black. 
(d-SetBackground #x00ff00) turns red and blue off etc.
There is a Denemo procedure to get a color from the user, too. (d-
SelectColor) which returns a list of r, g and b values in range 0.0-1.0
that would need converting to use with d-SetBackground.

HTH

Richard