Captive Imagination
August 01, 2010, 12:01:15 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Check out the teaser site for the first official game by Captive Imagination: http://www.galaxiesbeyond.com
 
   Home   Help Search Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Removing the gradient from the background color  (Read 875 times)
0 Members and 1 Guest are viewing this topic.
nymon
Newbie
*
Offline Offline

Posts: 23


View Profile
« on: July 03, 2009, 09:19:50 PM »

Can it be done?
Logged
darkfrog
Administrator
Inspired Imagination
*****
Offline Offline

Posts: 2650


View Profile
« Reply #1 on: July 04, 2009, 08:56:58 AM »

Yes, I believe if you set themeColor in Style in Application it should do it.
Logged
nymon
Newbie
*
Offline Offline

Posts: 23


View Profile
« Reply #2 on: July 07, 2009, 11:59:50 PM »

Still not having any luck. Tried setting every possible color in the application style to azure, and then tried a few in the default style from the theme object but I still have a white->azure gradient. Any other pointers? Up to this point I've just been adding a fullscreen box to cover it, but it would be nice to remove that extra component and do it right.

Code:
package test;
import org.jseamless.container.Application;
import org.jseamless.style.ColorFactory;

public class TestBackground extends Application {

  private static final long serialVersionUID = 1L;

  public TestBackground() {

    getStyle().setBackgroundColor(ColorFactory.AZURE.toColor());
    getStyle().setThemeColor(ColorFactory.AZURE.toColor());

    getTheme().getDefaultStyle().setBackgroundColor(ColorFactory.AZURE.toColor());
    getTheme().getDefaultStyle().setThemeColor(ColorFactory.AZURE.toColor());
  }
}
Logged
darkfrog
Administrator
Inspired Imagination
*****
Offline Offline

Posts: 2650


View Profile
« Reply #3 on: July 08, 2009, 07:21:36 AM »

Sorry, you may be stuck with the extra component.  Unfortunately some of the outworkings of this stuff is based on how Flex handles it internally and not what is logical. Wink

Also, unless something major comes up I've stopped development on the 1.x codebase and am solely working on 2.0 now.
Logged
nymon
Newbie
*
Offline Offline

Posts: 23


View Profile
« Reply #4 on: July 10, 2009, 08:51:42 PM »

Thats no problem, the extra component is working out fairly well for me. Looking forward to 2.0.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.157 seconds with 20 queries.