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 String
Key for border color.static final String
Key for background color for controls.static final String
Key for button color for controls.static final String
Key for background color for disabled controls.static final String
Key for border color for disabled controls.static final String
Key for foreground color for disabled controls.static final String
Key for foreground color for controls.static final String
Key for background color for hovered controls.static final String
Key for border color for hovered controls.static final String
Key for foreground color for hovered controls. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.eclipse.swt.graphics.RGB
getDisabledBackgroundRgb
(org.eclipse.swt.graphics.RGB enabledBackgroundRgb) Returns rgb making given enabled background rgb darker.static boolean
Returnstrue
if 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()Returnstrue
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 benull
.- Returns:
- disabled rgb using given enabled text rgb. Can't return
null
.
-