Package com._1c.g5.v8.dt.theming.ui.util
Class DtBrowsersThemingUtil
java.lang.Object
com._1c.g5.v8.dt.theming.ui.util.DtBrowsersThemingUtil
A theming utilities for browsers in EDT.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringGets browser scrollbars css style forWebViewbrowser.static StringGets browser scrollbars css style forBrowserbrowser.static StringinfilterThemeToCss(String cssText) Infilters preferences colors to css.
-
Method Details
-
infilterThemeToCss
Infilters preferences colors to css.- Parameters:
cssText- css text with preferences colors identifiers. Preferences color constants should be in the format "?parameter?". The following types of parameters are available:- ?color-colorConstant? — color from theme
ColorRegistryin "#RRGGBB" hex format. - ?,color-colorConstant? — color from theme
ColorRegistryin "r,g,b" comma-separated format. - ?pcolor-colorConstant? — color from theming.ui plugin
IPreferenceStorein "#RRGGBB" hex format. - ?,pcolor-colorConstant? — color from theming.ui plugin
IPreferenceStorein "r,g,b" comma-separated format. - ?? — escaped '?' character
null- ?color-colorConstant? — color from theme
- Returns:
- css text with infiltered colors. Never
null
-
getJavaFxBrowserScrollbarsStyle
Gets browser scrollbars css style forWebViewbrowser.- Returns:
- java FX web view scrollbars css style. Never
null
-
getSwtBrowserScrollbarsStyle
Gets browser scrollbars css style forBrowserbrowser.- Returns:
- SWT browser scrollbars css style. Never
null
-