Class Aef2StandardLwtUtil
java.lang.Object
com._1c.g5.aef2.standard.internal.lwt.Aef2StandardLwtUtil
Class containing usefull methods for aef 2.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringKey for border color.static final StringKey for background color for controls.static final StringKey for button color for controls.static final StringKey for background color for disabled controls.static final StringKey for border color for disabled controls.static final StringKey for foreground color for disabled controls.static final StringKey for foreground color for controls.static final StringKey for background color for hovered controls.static final StringKey for border color for hovered controls.static final StringKey for foreground color for hovered controls.
- 
Method SummaryModifier and TypeMethodDescriptionstatic org.eclipse.swt.graphics.RGBgetDisabledBackgroundRgb(org.eclipse.swt.graphics.RGB enabledBackgroundRgb) Returns rgb making given enabled background rgb darker.static booleanReturnstrueif current eclipse theme is dark.
- 
Field Details- 
BORDER_COLORKey for border color.- See Also:
 
- 
CONTROLS_BACKGROUND_COLORKey for background color for controls.- See Also:
 
- 
CONTROLS_FOREGROUND_COLORKey for foreground color for controls.- See Also:
 
- 
CONTROLS_BUTTONS_COLORKey for button color for controls.- See Also:
 
- 
CONTROLS_DISABLED_BORDER_COLORKey for border color for disabled controls.- See Also:
 
- 
CONTROLS_DISABLED_BACKGROUND_COLORKey for background color for disabled controls.- See Also:
 
- 
CONTROLS_DISABLED_FOREGROUND_COLORKey for foreground color for disabled controls.- See Also:
 
- 
CONTROLS_HOVER_BORDER_COLORKey for border color for hovered controls.- See Also:
 
- 
CONTROLS_HOVER_BACKGROUND_COLORKey for background color for hovered controls.- See Also:
 
- 
CONTROLS_HOVER_FOREGROUND_COLORKey for foreground color for hovered controls.- See Also:
 
 
- 
- 
Method Details- 
isDarkThemeActivepublic static boolean isDarkThemeActive()Returnstrueif current eclipse theme is dark.- Returns:
- trueif current eclipse theme is dark.
 
- 
getDisabledBackgroundRgbpublic 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.
 
 
-