@Override
    public PaintResource get(Widget widget) {
        final boolean temp = (highlight && widget.isHovered());
        return new PaintResource(new GradientPaint(widget.getX(), widget.getY(), (temp) ? primary.brighter() : primary, widget.getX() + ((direction & HORIZONTAL) == HORIZONTAL ? widget.getWidth() : 0), widget.getY() + ((direction & VERTICAL) == VERTICAL ? widget.getHeight() : 0), (temp) ? secondary.brighter() : secondary));
    }