Background color

This section is now closed.
Forum rules
Audacity 1.3.x is now obsolete. Please use the current Audacity 2.1.x version.

The final version of Audacity for Windows 98/ME is the legacy 2.0.0 version.
Locked
francine
Posts: 3
Joined: Fri Jan 21, 2011 7:38 pm
Operating System: Please select

Background color

Post by francine » Fri Jan 21, 2011 7:49 pm

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!

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Background color

Post by Gale Andrews » Sun Jan 23, 2011 1:13 pm

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
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

francine
Posts: 3
Joined: Fri Jan 21, 2011 7:38 pm
Operating System: Please select

Re: Background color

Post by francine » Mon Jan 24, 2011 3:32 pm

Hi Gale,

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

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Background color

Post by Gale Andrews » Mon Jan 24, 2011 10:37 pm

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
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

francine
Posts: 3
Joined: Fri Jan 21, 2011 7:38 pm
Operating System: Please select

Re: Background color

Post by francine » Tue Jan 25, 2011 3:21 pm

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!!

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Background color

Post by Gale Andrews » Wed Jan 26, 2011 12:49 am

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
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

Locked