Package com.biglybt.ui.swt.mainwindow
Class Colors
java.lang.Object
com.biglybt.ui.swt.mainwindow.Colors
- All Implemented Interfaces:
ParameterListener
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.eclipse.swt.graphics.Color[]
static org.eclipse.swt.graphics.Color
static org.eclipse.swt.graphics.Color
static org.eclipse.swt.graphics.Color
static org.eclipse.swt.graphics.Color[]
static final int
static final int
static final int
static final int
static final org.eclipse.swt.graphics.Color[]
private static final AEMonitor
static org.eclipse.swt.graphics.Color
static org.eclipse.swt.graphics.Color
static org.eclipse.swt.graphics.Color
static org.eclipse.swt.graphics.Color
static org.eclipse.swt.graphics.Color
static org.eclipse.swt.graphics.Color
static org.eclipse.swt.graphics.Color
static org.eclipse.swt.graphics.Color
static org.eclipse.swt.graphics.Color
private final ParameterListener
static org.eclipse.swt.graphics.Color
static org.eclipse.swt.graphics.Color
static int
static float
static float
private org.eclipse.swt.widgets.Display
static org.eclipse.swt.graphics.Color[]
static final int
static final int
static org.eclipse.swt.graphics.Color
static org.eclipse.swt.graphics.Color
static org.eclipse.swt.graphics.Color
static org.eclipse.swt.graphics.Color
private static AEDiagnosticsEvidenceGenerator
static org.eclipse.swt.graphics.Color
static org.eclipse.swt.graphics.Color
private static Colors
static org.eclipse.swt.graphics.Color
(package private) static List<ParameterListener>
private static final LogIDs
static org.eclipse.swt.graphics.Color
static org.eclipse.swt.graphics.Color
static org.eclipse.swt.graphics.Color
static org.eclipse.swt.graphics.Color
static org.eclipse.swt.graphics.Color
static org.eclipse.swt.graphics.Color
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
private void
void
private void
private void
private void
private void
private void
allocateDynamicColors
(boolean first_time) private void
private void
dipose()
static void
org.eclipse.swt.graphics.RGB
getAlternativeRowColor
(org.eclipse.swt.graphics.Color normal) static Colors
org.eclipse.swt.graphics.Color
getLighterColor
(org.eclipse.swt.graphics.Color c, int percent) org.eclipse.swt.graphics.Color
getReadableColor
(org.eclipse.swt.graphics.Color forBG) org.eclipse.swt.graphics.Color
getSlightlyFadedColor
(org.eclipse.swt.graphics.Color c) static org.eclipse.swt.graphics.Color
getSystemColor
(org.eclipse.swt.graphics.Device d, int id) static org.eclipse.swt.graphics.Color
getWindowsDarkSystemColor
(org.eclipse.swt.graphics.Device d, int id) static boolean
isBlackTextReadable
(org.eclipse.swt.graphics.Color forBG) static boolean
isColorContrastOk
(org.eclipse.swt.graphics.Color color1, org.eclipse.swt.graphics.Color color2) void
parameterChanged
(String parameterName) Called, when a parameter has changed.void
-
Field Details
-
LOGID
-
instance
-
BLUES_LIGHTEST
public static final int BLUES_LIGHTEST- See Also:
-
BLUES_DARKEST
public static final int BLUES_DARKEST- See Also:
-
BLUES_MIDLIGHT
public static final int BLUES_MIDLIGHT- See Also:
-
BLUES_MIDDARK
public static final int BLUES_MIDDARK- See Also:
-
FADED_LIGHTEST
public static final int FADED_LIGHTEST- See Also:
-
FADED_DARKEST
public static final int FADED_DARKEST- See Also:
-
bluesFixed
public static final org.eclipse.swt.graphics.Color[] bluesFixed -
blues
public static org.eclipse.swt.graphics.Color[] blues -
faded
public static org.eclipse.swt.graphics.Color[] faded -
colorProgressBar
public static org.eclipse.swt.graphics.Color colorProgressBar -
colorInverse
public static org.eclipse.swt.graphics.Color colorInverse -
colorShiftLeft
public static org.eclipse.swt.graphics.Color colorShiftLeft -
colorShiftRight
public static org.eclipse.swt.graphics.Color colorShiftRight -
colorError
public static org.eclipse.swt.graphics.Color colorError -
colorErrorBG
public static org.eclipse.swt.graphics.Color colorErrorBG -
colorAltRowDefault
public static org.eclipse.swt.graphics.Color colorAltRowDefault -
colorAltRow
public static org.eclipse.swt.graphics.Color colorAltRow -
colorWarning
public static org.eclipse.swt.graphics.Color colorWarning -
black
public static org.eclipse.swt.graphics.Color black -
light_grey
public static org.eclipse.swt.graphics.Color light_grey -
dark_grey
public static org.eclipse.swt.graphics.Color dark_grey -
blue
public static org.eclipse.swt.graphics.Color blue -
fadedBlue
public static org.eclipse.swt.graphics.Color fadedBlue -
green
public static org.eclipse.swt.graphics.Color green -
fadedGreen
public static org.eclipse.swt.graphics.Color fadedGreen -
grey
public static org.eclipse.swt.graphics.Color grey -
red
public static org.eclipse.swt.graphics.Color red -
fadedRed
public static org.eclipse.swt.graphics.Color fadedRed -
maroon
public static org.eclipse.swt.graphics.Color maroon -
yellow
public static org.eclipse.swt.graphics.Color yellow -
fadedYellow
public static org.eclipse.swt.graphics.Color fadedYellow -
white
public static org.eclipse.swt.graphics.Color white -
background
public static org.eclipse.swt.graphics.Color background -
red_ConsoleView
public static org.eclipse.swt.graphics.Color red_ConsoleView -
cyan
public static org.eclipse.swt.graphics.Color cyan -
orange
public static org.eclipse.swt.graphics.Color orange -
class_mon
-
diffHue
public static int diffHue -
diffSatPct
public static float diffSatPct -
diffLumPct
public static float diffLumPct -
alternatingColors
public static final org.eclipse.swt.graphics.Color[] alternatingColors -
listeners
-
genColorCache
-
configListener
-
display
private org.eclipse.swt.widgets.Display display
-
-
Constructor Details
-
Colors
private Colors()
-
-
Method Details
-
allocateBlues
private void allocateBlues() -
allocateColorProgressBar
private void allocateColorProgressBar() -
allocateColorErrorBG
private void allocateColorErrorBG() -
allocateColorError
private void allocateColorError() -
allocateColorWarning
private void allocateColorWarning() -
getAlternativeRowColor
public org.eclipse.swt.graphics.RGB getAlternativeRowColor(org.eclipse.swt.graphics.Color normal) -
allocateColorAltRow
public void allocateColorAltRow() -
allocateDynamicColors
private void allocateDynamicColors(boolean first_time) -
allocateNonDynamicColors
private void allocateNonDynamicColors() -
getInstance
-
disposeInstance
public static void disposeInstance() -
dipose
private void dipose() -
addColorsChangedListener
-
removeColorsChangedListener
-
parameterChanged
Description copied from interface:ParameterListener
Called, when a parameter has changed. The listener could only react if the parameter name is relevant. Or the listener can just read all parameters again.- Specified by:
parameterChanged
in interfaceParameterListener
- Parameters:
parameterName
- the name of the parameter that has changed
-
getWindowsDarkSystemColor
public static org.eclipse.swt.graphics.Color getWindowsDarkSystemColor(org.eclipse.swt.graphics.Device d, int id) -
getSystemColor
public static org.eclipse.swt.graphics.Color getSystemColor(org.eclipse.swt.graphics.Device d, int id) -
getSlightlyFadedColor
public org.eclipse.swt.graphics.Color getSlightlyFadedColor(org.eclipse.swt.graphics.Color c) -
getLighterColor
public org.eclipse.swt.graphics.Color getLighterColor(org.eclipse.swt.graphics.Color c, int percent) -
isBlackTextReadable
public static boolean isBlackTextReadable(org.eclipse.swt.graphics.Color forBG) -
getReadableColor
public org.eclipse.swt.graphics.Color getReadableColor(org.eclipse.swt.graphics.Color forBG) -
isColorContrastOk
public static boolean isColorContrastOk(org.eclipse.swt.graphics.Color color1, org.eclipse.swt.graphics.Color color2)
-