Page 1 of 1

Background color

Posted: Fri Jan 21, 2011 7:49 pm
by francine
Hi all. I'm new to the Audacity code base. I was wondering if anyone knew how I could change the background color of the scroller area? I was able to change the main panel color in Project.cpp by doing a "pPage->SetBackgroundColour(theTheme.Colour( newColor ));" but the scroller background color remains gray. Thank you in advance!

Re: Background color

Posted: Sun Jan 23, 2011 1:13 pm
by Gale Andrews
Unfortunately I don't know much about Theming and colours. From the comment above this line:

Code: Select all

//pPage->SetBackgroundColour( theTheme.Colour( clrDark ));
that code is commented out because it can lead to the scroller background being painted as clrDark. So the intention of enabling that line is *not* to change the scroller background. Is the whole of the scroller background still the original light grey?

James knows most about these matters, so I would suggest you subscribe to audacity-devel mailing list and ask there for some pointers.



Gale

Re: Background color

Posted: Mon Jan 24, 2011 3:32 pm
by francine
Hi Gale,

Thanks for your reply. Yes, the scroller background area stays in the default light gray :(

Re: Background color

Posted: Mon Jan 24, 2011 10:37 pm
by Gale Andrews
Gale Andrews wrote:Unfortunately I don't know much about Theming and colours. From the comment above this line:

Code: Select all

//pPage->SetBackgroundColour( theTheme.Colour( clrDark ));
that code is commented out because it can lead to the scroller background being painted as clrDark.
If you uncomment that line with no other changes it paints the entire scroller background black without changing the background colour.



Gale

Re: Background color

Posted: Tue Jan 25, 2011 3:21 pm
by francine
Hi Gale,

When I uncomment that clrDark line, I see the areas surrounding the scroller background area to be dark, but the scroller background stays light gray. Have you changed something else?

Thanks!!

Re: Background color

Posted: Wed Jan 26, 2011 12:49 am
by Gale Andrews
francine wrote:Hi Gale,

When I uncomment that clrDark line, I see the areas surrounding the scroller background area to be dark, but the scroller background stays light gray. Have you changed something else?
No, all I did was remove the "//" from in front of that line, so:

Code: Select all

pPage->SetBackgroundColour( theTheme.Colour( clrDark ));


Gale