Package org.tomighty.ui.theme

Examples of org.tomighty.ui.theme.Colors.background()


    Dimension size = tray.iconSize();
    Colors colors = look.colors();
    Canvas canvas = new Canvas(size);
    canvas.fontSize((float) size.height * 0.58f);
    canvas.paintGradient(colors.background());
    canvas.drawBorder(colors.background().darker().darker().darker());
    canvas.drawCentralizedText(time.shortestString());

    cache.store(canvas.image(), iconName);

View Full Code Here


    Dimension size = tray.iconSize();
    Colors colors = look.colors();
    Canvas canvas = new Canvas(size);
    canvas.fontSize((float) size.height * 0.58f);
    canvas.paintGradient(colors.background());
    canvas.drawBorder(colors.background().darker().darker().darker());
    canvas.drawCentralizedText(time.shortestString());

    cache.store(canvas.image(), iconName);

    return canvas.image();
View Full Code Here

public class Gradient extends CachedTheme {
 
  @Override
  public void paint(Canvas canvas, Look look) {
    Colors colors = look.colors();
    Color background = colors.background();
    canvas.paintGradient(background);
  }

}
View Full Code Here

  @Override
  public void paint(Canvas canvas, Look look) {
    Colors colors = look.colors();
    BrushedMetalFilter filter = new BrushedMetalFilter();
    filter.setColor(colors.background().getRGB());
    filter.setRadius(10);
    filter.setAmount(0.15f);
    filter.setMonochrome(true);
    filter.setShine(0.2f);
    canvas.applyFilter(filter);
View Full Code Here

public class Grainy extends CachedTheme {

  @Override
  public void paint(Canvas canvas, Look look) {
    Colors colors = look.colors();
    canvas.paintGradient(colors.background());
    NoiseFilter filter = new NoiseFilter();
    filter.setMonochrome(true);
    filter.setDensity(0.5f);
    filter.setAmount(13);
    canvas.applyFilter(filter);
View Full Code Here

public class Shiny extends CachedTheme {

  @Override
  public void paint(Canvas canvas, Look look) {
    Colors colors = look.colors();
    Color background = colors.background();
    Color bright = background.brighter().brighter();
    Color dark = background.darker();
    canvas.paintShinyBackground(bright, dark);
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.