Solved

Default backgound color

Posted on 2008-10-09
1
297 Views
Last Modified: 2008-10-10
Lets say you want to set the background color of your application to this

Application.application.setStyle("backgroundColor",0xFFFFFF);

what what i want to do is also set the background color to the default gradient look how would i do this.
0
Comment
Question by:stargateatlantis
1 Comment
 
LVL 19

Accepted Solution

by:
Gary Benade earned 500 total points
ID: 22684692
Application.application.setStyle("backgroundGradientColors",[0XFF0000,0X00FF00]);

Personally I try to avoid using Application.application:
StyleManager.getStyleDeclaration("Application").setStyle("backgroundGradientColors",[0XFF0000,0X00FF00]);

If you've set the backgroundcolor and just want it back to default, set it all to undefined

Application.application.setStyle("backgroundColor",undefined);
Application.application.setStyle("backgroundGradientColors",undefined);
//or
StyleManager.getStyleDeclaration("Application").setStyle("backgroundColor",undefined);
StyleManager.getStyleDeclaration("Application").setStyle("backgroundGradientColors",undefined);
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

First things first - Preparation We need all the part for this install and it's much nicer to have them all on hand when you need them so here's what's required. Download Eclipse 3.5 32 bit (I like the Classic flavour) from here. (http://www.e…
Employees depend heavily on their PCs, and new threats like ransomware make it even more critical to protect their important data.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question