Class Colors

java.lang.Object
com.biglybt.ui.swt.mainwindow.Colors
All Implemented Interfaces:
ParameterListener

public class Colors extends Object implements ParameterListener
  • Field Details

    • LOGID

      private static final LogIDs LOGID
    • instance

      private static Colors 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

      private static final AEMonitor 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

      static List<ParameterListener> listeners
    • genColorCache

      private static AEDiagnosticsEvidenceGenerator genColorCache
    • configListener

      private final ParameterListener 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

      public static Colors getInstance()
    • disposeInstance

      public static void disposeInstance()
    • dipose

      private void dipose()
    • addColorsChangedListener

      public void addColorsChangedListener(ParameterListener l)
    • removeColorsChangedListener

      public void removeColorsChangedListener(ParameterListener l)
    • parameterChanged

      public void parameterChanged(String parameterName)
      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 interface ParameterListener
      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)