Class Aef2StandardLwtUtil

java.lang.Object
com._1c.g5.aef2.standard.internal.lwt.Aef2StandardLwtUtil

public final class Aef2StandardLwtUtil extends Object
Class containing usefull methods for aef 2.
  • Field Details

    • BORDER_COLOR

      public static final String BORDER_COLOR
      Key for border color.
      See Also:
    • CONTROLS_BACKGROUND_COLOR

      public static final String CONTROLS_BACKGROUND_COLOR
      Key for background color for controls.
      See Also:
    • CONTROLS_FOREGROUND_COLOR

      public static final String CONTROLS_FOREGROUND_COLOR
      Key for foreground color for controls.
      See Also:
    • CONTROLS_BUTTONS_COLOR

      public static final String CONTROLS_BUTTONS_COLOR
      Key for button color for controls.
      See Also:
    • CONTROLS_DISABLED_BORDER_COLOR

      public static final String CONTROLS_DISABLED_BORDER_COLOR
      Key for border color for disabled controls.
      See Also:
    • CONTROLS_DISABLED_BACKGROUND_COLOR

      public static final String CONTROLS_DISABLED_BACKGROUND_COLOR
      Key for background color for disabled controls.
      See Also:
    • CONTROLS_DISABLED_FOREGROUND_COLOR

      public static final String CONTROLS_DISABLED_FOREGROUND_COLOR
      Key for foreground color for disabled controls.
      See Also:
    • CONTROLS_HOVER_BORDER_COLOR

      public static final String CONTROLS_HOVER_BORDER_COLOR
      Key for border color for hovered controls.
      See Also:
    • CONTROLS_HOVER_BACKGROUND_COLOR

      public static final String CONTROLS_HOVER_BACKGROUND_COLOR
      Key for background color for hovered controls.
      See Also:
    • CONTROLS_HOVER_FOREGROUND_COLOR

      public static final String CONTROLS_HOVER_FOREGROUND_COLOR
      Key for foreground color for hovered controls.
      See Also:
  • Method Details

    • isDarkThemeActive

      public static boolean isDarkThemeActive()
      Returns true if current eclipse theme is dark.
      Returns:
      true if current eclipse theme is dark.
    • getDisabledBackgroundRgb

      public static org.eclipse.swt.graphics.RGB getDisabledBackgroundRgb(org.eclipse.swt.graphics.RGB enabledBackgroundRgb)
      Returns rgb making given enabled background rgb darker.
      Parameters:
      enabledBackgroundRgb - - enabled background rgb. Can't be null.
      Returns:
      disabled rgb using given enabled text rgb. Can't return null.