diff options
Diffstat (limited to 'plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/CommonUIConstants.java')
-rw-r--r-- | plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/CommonUIConstants.java | 98 |
1 files changed, 19 insertions, 79 deletions
diff --git a/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/CommonUIConstants.java b/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/CommonUIConstants.java index 958cb975d..7b4066132 100644 --- a/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/CommonUIConstants.java +++ b/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/CommonUIConstants.java @@ -20,9 +20,6 @@ package org.apache.directory.studio.common.ui; -import org.eclipse.swt.graphics.Color; -import org.eclipse.swt.graphics.RGB; - /** * Constants used in the connection UI plugin. @@ -47,82 +44,25 @@ public final class CommonUIConstants /** The pull-down image */ public static final String IMG_PULLDOWN = "resources/icons/pulldown.gif"; //$NON-NLS-1$ - /** - * The various colors in use. Each color have gradients, from black to white (ie from 0 to 255). We - * use colors by increments of 31 : - * <ul> - * <li>0 : Black or no color</li> - * <li>31 : Black Dark color (BD_[color]) for instance BD_GREEN</li> - * <li>63 : Dark color (D_[color]) for instance D_GREEN</li> - * <li>95 : Mid Dark Color(MD_[color]) for instance MD_GREEN</li> - * <li>127 : Mid color (M_[color]), for instance M_GREEN</li> - * <li>159 : Mid Light color (ML_[color]), for instance ML_GREEN</li> - * <li>191 : Light color (L_[color]), for instance L_GREEN</li> - * <li>224 : White Light color (WL_[color]), for instance WL_GREEN</li> - * <li>255 : Full color ([color]), for instance GREEN</li> - * </ul> - **/ - // To see the world in black and white - public static final RGB BLACK = new RGB( 0, 0, 0 ); - public static Color BLACK_COLOR; - public static final RGB WHITE = new RGB( 255, 255, 255 ); - public static Color WHITE_COLOR; - - // 7 shade of greys... From dark to light, with combinaisons - public static final RGB BD_GREY = new RGB( 31, 31, 31 ); // Black Dark grey - public static Color BD_GREY_COLOR; - public static final RGB D_GREY = new RGB( 63, 63, 63 ); // Dark grey - public static Color D_GREY_COLOR; - public static final RGB MD_GREY = new RGB( 95, 95, 95 ); // Medium Dark grey - public static Color MD_GREY_COLOR; - public static final RGB M_GREY = new RGB( 127, 127, 127 ); // Grey - public static Color M_GREY_COLOR; - public static final RGB ML_GREY = new RGB( 159, 159, 159 ); // Medium Light grey - public static Color ML_GREY_COLOR; - public static final RGB L_GREY = new RGB( 191, 191, 191 ); // Light grey - public static Color L_GREY_COLOR; - public static final RGB WL_GREY = new RGB( 224, 224, 224 ); // White Light grey - public static Color WL_GREY_COLOR; - - // Red - public static final RGB M_RED = new RGB( 127, 0, 0 ); // Medium red - public static Color M_RED_COLOR; - public static final RGB ML_RED = new RGB( 159, 0, 0 ); // Medium light red - public static Color ML_RED_COLOR; - public static final RGB RED = new RGB( 255, 0, 0 ); // Full red - public static Color RED_COLOR; - - // Green - public static final RGB M_GREEN = new RGB( 0, 127, 0 ); // Medium green - public static Color M_GREEN_COLOR; - public static final RGB ML_GREEN = new RGB( 0, 159, 0 ); // Medium Light green - public static Color ML_GREEN_COLOR; - public static final RGB GREEN = new RGB( 0, 255, 0 ); // Full green - public static Color GREEN_COLOR; - - // Blue - public static final RGB M_BLUE = new RGB( 0, 0, 127 ); // Medium blue - public static Color M_BLUE_COLOR; - public static final RGB L_BLUE = new RGB( 0, 0, 191 ); // Light blue - public static Color L_BLUE_COLOR; - public static final RGB BLUE = new RGB( 0, 0, 255 ); // Full blue - public static Color BLUE_COLOR; - - // Purple - public static final RGB M_PURPLE = new RGB( 127, 0, 127 ); // Middle purple - public static Color M_PURPLE_COLOR; - public static final RGB PURPLE = new RGB( 255, 0, 255 ); // Full purple - public static Color PURPLE_COLOR; - - // Other colors - public static final RGB R0_G127_B255 = new RGB( 0, 127, 255 ); - public static Color R0_G127_B255_COLOR; - public static final RGB R95_G63_B159 = new RGB( 95, 63, 159 ); - public static Color R95_G63_B159_COLOR; - public static final RGB R63_G127_B63 = new RGB( 63, 127, 63 ); - public static Color R63_G127_B63_COLOR; + /* + * Names of semantic colors. Actual color values are theme specific and defined in default.css and dark.css. + */ + public static final String DEFAULT_COLOR = "defaultColor"; + public static final String DISABLED_COLOR = "disabledColor"; + public static final String ERROR_COLOR = "errorColor"; + public static final String COMMENT_COLOR = "commentColor"; + public static final String KEYWORD_1_COLOR = "keyword1Color"; + public static final String KEYWORD_2_COLOR = "keyword2Color"; + public static final String OBJECT_CLASS_COLOR = "objectClassColor"; + public static final String ATTRIBUTE_TYPE_COLOR = "attributeTypeColor"; + public static final String VALUE_COLOR = "valueColor"; + public static final String OID_COLOR = "oidColor"; + public static final String SEPARATOR_COLOR = "separatorColor"; + public static final String ADD_COLOR = "addColor"; + public static final String DELETE_COLOR = "deleteColor"; + public static final String MODIFY_COLOR = "modifyColor"; + public static final String RENAME_COLOR = "renameColor"; - // Some specific colors - public static final String IMG_INFORMATION = "resources/icons/information.gif"; //$NON-NLS-1$ + } |