?
Solved

Default backgound color

Posted on 2008-10-09
1
Medium Priority
?
301 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 19

Accepted Solution

by:
Gary Benade earned 2000 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

Cloud Training Guides

FREE GUIDES: In-depth and hand-crafted Linux, AWS, OpenStack, DevOps, Azure, and Cloud training guides created by Linux Academy instructors and the community.

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…
The Summer 2017 Scholarship Winners have been announced!
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

771 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