File: ComponentTopBar.java

package info (click to toggle)
mac-widgets 0.9.5%2Bsvn369-dfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,920 kB
  • sloc: java: 8,318; makefile: 13; sh: 12
file content (23 lines) | stat: -rw-r--r-- 698 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package com.explodingpixels.macwidgets;

import com.explodingpixels.painter.GradientWithBorderPainter;

import java.awt.Color;

public class ComponentTopBar extends TriAreaComponent {
    
    private static final Color TOP_BORDER_COLOR =
            new Color(212, 212, 212);

    private static final Color SOFT_TOP_GRADIENT_COLOR =
            new Color(248, 248, 248);

    private static final Color SOFT_BOTTOM_GRADIENT_COLOR =
            new Color(212, 212, 212);

    ComponentTopBar() {
        setBackgroundPainter(new GradientWithBorderPainter(
                TOP_BORDER_COLOR, SOFT_BOTTOM_GRADIENT_COLOR,
                SOFT_TOP_GRADIENT_COLOR, SOFT_BOTTOM_GRADIENT_COLOR));
    }
}