Class Aef2StandardLwtUtil
java.lang.Object
com._1c.g5.aef2.standard.internal.lwt.Aef2StandardLwtUtil
Class containing usefull methods for aef 2.
-
Field Summary
FieldsModifier 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 Summary
Modifier 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_COLOR
Key for border color.- See Also:
-
CONTROLS_BACKGROUND_COLOR
Key for background color for controls.- See Also:
-
CONTROLS_FOREGROUND_COLOR
Key for foreground color for controls.- See Also:
-
CONTROLS_BUTTONS_COLOR
Key for button color for controls.- See Also:
-
CONTROLS_DISABLED_BORDER_COLOR
Key for border color for disabled controls.- See Also:
-
CONTROLS_DISABLED_BACKGROUND_COLOR
Key for background color for disabled controls.- See Also:
-
CONTROLS_DISABLED_FOREGROUND_COLOR
Key for foreground color for disabled controls.- See Also:
-
CONTROLS_HOVER_BORDER_COLOR
Key for border color for hovered controls.- See Also:
-
CONTROLS_HOVER_BACKGROUND_COLOR
Key for background color for hovered controls.- See Also:
-
CONTROLS_HOVER_FOREGROUND_COLOR
Key for foreground color for hovered controls.- See Also:
-
-
Method Details
-
isDarkThemeActive
public static boolean isDarkThemeActive()Returnstrueif current eclipse theme is dark.- Returns:
trueif 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 benull.- Returns:
- disabled rgb using given enabled text rgb. Can't return
null.
-