/* * This file is part of WebLookAndFeel library. * * WebLookAndFeel library is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * WebLookAndFeel library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with WebLookAndFeel library. If not, see . */ package com.alee.laf.button; import com.alee.extended.painter.Painter; import com.alee.global.StyleConstants; import java.awt.*; /** * WebButton style class. * * @author Mikle Garin */ public final class WebButtonStyle { /** * Top background color. */ public static Color topBgColor = StyleConstants.topBgColor; /** * Bottom background color. */ public static Color bottomBgColor = StyleConstants.bottomBgColor; /** * Top selected background color. */ public static Color topSelectedBgColor = StyleConstants.selectedBgColor; /** * Bottom selected background color. */ public static Color bottomSelectedBgColor = new Color ( 210, 210, 210 ); /** * Selected button foreground. */ public static Color selectedForeground = StyleConstants.selectedTextColor; /** * Whether should draw rollover shine or not. */ public static boolean rolloverShine = false; /** * Rollover shine color. */ public static Color shineColor = StyleConstants.shineColor; /** * Whether should draw dark border on rollover only or not. */ public static boolean rolloverDarkBorderOnly = StyleConstants.rolloverDarkBorderOnly; /** * Whether should draw shade or not. */ public static boolean drawShade = StyleConstants.drawShade; /** * Whether should draw shade on rollover only or not. */ public static boolean rolloverShadeOnly = StyleConstants.rolloverShadeOnly; /** * Whether should draw shade when button is disabled or not. */ public static boolean showDisabledShade = StyleConstants.showDisabledShade; /** * Button corners rounding. */ public static int round = StyleConstants.mediumRound; /** * Icon button corners rounding. */ public static int iconRound = StyleConstants.smallRound; /** * Button shade width. */ public static int shadeWidth = StyleConstants.shadeWidth; /** * Button margin. */ public static Insets margin = StyleConstants.emptyMargin; /** * Shade color. */ public static Color shadeColor = StyleConstants.shadeColor; /** * Inner shade width. */ public static int innerShadeWidth = StyleConstants.innerShadeWidth; /** * Inner shade color. */ public static Color innerShadeColor = StyleConstants.innerShadeColor; /** * Left and right button content spacing. */ public static int leftRightSpacing = StyleConstants.leftRightSpacing; /** * Left and right icon button content spacing. */ public static int iconLeftRightSpacing = 0; /** * Whether should make unselected toggle button icon semi-transparent or not. */ public static boolean shadeToggleIcon = StyleConstants.shadeToggleIcon; /** * Unselected toggle button icon transparency. */ public static float shadeToggleIconTransparency = StyleConstants.shadeToggleIconTransparency; /** * Whether should draw button focus or not. */ public static boolean drawFocus = StyleConstants.drawFocus; /** * Whether should draw button decoration on rollover only or not. */ public static boolean rolloverDecoratedOnly = StyleConstants.rolloverDecoratedOnly; /** * Whether should animate button transitions. */ public static boolean animate = StyleConstants.animate; /** * Whether should undecorate button or not. */ public static boolean undecorated = StyleConstants.undecorated; /** * Button painter. * If set it will override WebLaF styling. */ public static Painter painter = null; /** * Whether should move button icon a bit when button is pressed or not. */ public static boolean moveIconOnPress = true; }