Contentserv PHP API

CSSkin extends CSSkinWrapper
in package

Abstract class to serve as a base structure for multiple CSSkin's classes

Tags

Table of Contents

COLOR_ACCENT  = 'ColorAccent'
COLOR_ACCENT_DEFAULT  = self::COLOR_SECONDARY_DEFAULT
COLOR_BACKGROUND  = 'ColorBackground'
COLOR_BACKGROUND_DEFAULT  = '#FFFFFF'
COLOR_BLACK  = 'ColorBlack'
COLOR_BLACK_BLUE  = 'ColorBlackBlue'
COLOR_BLUE  = 'ColorBlue'
COLOR_BORDER  = 'ColorBorder'
COLOR_BORDER_DEFAULT  = '#3F587D10'
COLOR_CS_BLUE  = 'ColorCSBlue'
COLOR_CS_BLUE_DARK  = 'ColorCSBlueDark'
COLOR_CS_BLUE_LIGHT  = 'ColorCSBlueLight'
COLOR_CS_MAGENTA  = 'ColorCSMagenta'
COLOR_CS_TURQUOISE  = 'ColorCSTurquoise'
COLOR_DIALOG_TITLE_BACKGROUND  = 'ColorDialogTitleBackground'
COLOR_DIALOG_TITLE_BACKGROUND_DEFAULT  = '#FFFFFF'
COLOR_DIALOG_TITLE_FONT  = 'ColorDialogTitleFont'
COLOR_DIALOG_TITLE_FONT_DEFAULT  = self::COLOR_FONT_DEFAULT
COLOR_ERROR_200  = 'ColorError200'
COLOR_ERROR_600  = 'ColorError600'
The variants of the default error colors for the new UI design.
COLOR_FONT  = 'ColorFont'
COLOR_FONT_DEFAULT  = '#191D23'
COLOR_FONT_LINK  = 'ColorFontLink'
COLOR_FONT_LINK_DEFAULT  = '#426BDF'
COLOR_GRAY  = 'ColorGray'
COLOR_GRAY_LIGHT  = 'ColorGrayLight'
COLOR_GREEN  = 'ColorGreen'
COLOR_HEADER_BACKGROUND  = 'ColorHeaderBackground'
COLOR_HEADER_BACKGROUND_DEFAULT  = self::COLOR_PRIMARY_DEFAULT
COLOR_HEADER_FONT  = 'ColorHeaderFont'
COLOR_HEADER_FONT_DEFAULT  = '#FFFFFF'
COLOR_HEADER_SELECTED_FONT  = 'ColorHeaderSelectedFont'
COLOR_HEADER_SELECTED_FONT_DEFAULT  = '#FFFFFF'
COLOR_INFORMATION_DEFAULT  = 'ColorInfoDefault'
COLOR_INFORMATION_ERROR  = 'ColorInfoError'
COLOR_INFORMATION_SUCCESS  = 'ColorInfoSuccess'
COLOR_INFORMATION_WARNING  = 'ColorInfoWarning'
COLOR_INPUT_BORDER  = 'ColorInputBorder'
COLOR_INPUT_BORDER_FOCUS  = 'ColorInputBorderFocus'
COLOR_INPUT_BORDER_HOVER  = 'ColorInputBorderHover'
COLOR_LIST_HOVER  = 'ColorListHover'
COLOR_LIST_SELECTED  = 'ColorListSelected'
COLOR_LOGIN_BACKGROUND  = 'ColorLoginBackground'
COLOR_LOGIN_BACKGROUND_DEFAULT  = self::COLOR_PRIMARY_DEFAULT
COLOR_LOGIN_FONT  = 'ColorLoginFont'
COLOR_LOGIN_FONT_DEFAULT  = '#FFFFFF'
COLOR_LOGIN_FOREGROUND  = 'ColorLoginForeground'
COLOR_LOGIN_FOREGROUND_DEFAULT  = self::COLOR_SECONDARY_DEFAULT
COLOR_ORANGE  = 'ColorOrange'
COLOR_POPUP_MENU_BACKGROUND  = 'ColorPopupMenuBackground'
COLOR_POPUP_MENU_BACKGROUND_DEFAULT  = '#FFFFFF'
COLOR_POPUP_MENU_FONT  = 'ColorPopupMenuFont'
COLOR_POPUP_MENU_FONT_DEFAULT  = self::COLOR_FONT_DEFAULT
COLOR_POPUP_MENU_SELECTION  = 'ColorPopupMenuSelection'
COLOR_POPUP_MENU_SELECTION_DEFAULT  = '#3F587D10'
COLOR_PRIMARY  = 'ColorPrimary'
COLOR_PRIMARY_100  = 'ColorPrimary100'
COLOR_PRIMARY_20  = 'ColorPrimary20'
COLOR_PRIMARY_200  = 'ColorPrimary200'
COLOR_PRIMARY_300  = 'ColorPrimary300'
COLOR_PRIMARY_400  = 'ColorPrimary400'
COLOR_PRIMARY_50  = 'ColorPrimary50'
COLOR_PRIMARY_500  = 'ColorPrimary500'
COLOR_PRIMARY_600  = 'ColorPrimary600'
COLOR_PRIMARY_700  = 'ColorPrimary700'
COLOR_PRIMARY_800  = 'ColorPrimary800'
COLOR_PRIMARY_900  = 'ColorPrimary900'
The variants of the default primary color for the new UI design.
COLOR_PRIMARY_DEFAULT  = '#221F61'
COLOR_PRIMARY_FOREGROUND  = 'ColorPrimaryForeground'
The foreground colors for the primary & secondary color, which should be used for icon & text.
COLOR_PURPLE  = 'ColorPurple'
COLOR_RED  = 'ColorRed'
COLOR_SECONDARY  = 'ColorSecondary'
COLOR_SECONDARY_300  = 'ColorSecondary300'
COLOR_SECONDARY_400  = 'ColorSecondary400'
COLOR_SECONDARY_50  = 'ColorSecondary50'
COLOR_SECONDARY_500  = 'ColorSecondary500'
COLOR_SECONDARY_600  = 'ColorSecondary600'
COLOR_SECONDARY_700  = 'ColorSecondary700'
The variants of the default secondary color for the new UI design.
COLOR_SECONDARY_DEFAULT  = '#FE0074'
COLOR_SECONDARY_FOREGROUND  = 'ColorSecondaryForeground'
COLOR_SEPARATOR  = 'ColorSeparator'
COLOR_STUDIO_BAR_BACKGROUND  = 'ColorStudioBarBackground'
COLOR_STUDIO_BAR_BACKGROUND_DEFAULT  = self::COLOR_PRIMARY_DEFAULT
COLOR_STUDIO_BAR_FOREGROUND  = 'ColorStudioBarForeground'
COLOR_STUDIO_BAR_FOREGROUND_DEFAULT  = '#FFFFFF'
COLOR_STUDIO_BAR_SELECTED_FOREGROUND  = 'ColorStudioBarSelectedBackground'
COLOR_STUDIO_BAR_SELECTED_FOREGROUND_DEFAULT  = '#3A3783'
COLOR_TOOLBAR_BACKGROUND  = 'ColorToolbarBackground'
COLOR_TOOLBAR_BACKGROUND_DEFAULT  = '#FFFFFF'
COLOR_TOOLBAR_FONT  = 'ColorToolbarFont'
COLOR_TOOLBAR_FONT_DEFAULT  = self::COLOR_FONT_DEFAULT
COLOR_TOOLBAR_ICON  = 'ColorToolbarIcon'
COLOR_TOOLBAR_ICON_DEFAULT  = self::COLOR_FONT_DEFAULT
COLOR_TREE_BACKGROUND  = 'ColorTreeBackground'
COLOR_TREE_BACKGROUND_DEFAULT  = '#F3F5F7'
COLOR_TREE_ICON  = 'ColorTreeIcon'
COLOR_TREE_ICON_DEFAULT  = '#535961'
COLOR_TREE_SELECTION  = 'ColorTreeSelection'
COLOR_TREE_SELECTION_DEFAULT  = self::COLOR_SECONDARY_DEFAULT
COLOR_VIOLET  = 'ColorViolet'
COLOR_YELLOW  = 'ColorYellow'
LOGO_TYPE_LARGE  = 0
Logo types
LOGO_TYPE_SMALL  = 1
TOOLBAR_EXPAND_MENU  = 'ToolbarExpandMenu'
addTransparencyToHexColor()  : string
Adds the transparency part of the hex color based on a percentage. It will also overwrite already defined alpha channel in the color code.
createCSSFiles()  : mixed
Creates all CSS files required
getApplicationLogo()  : int|null
Method that retrieves the Theme logo's if in presence of a configured Theme, or the ones from the general settings.
getApplicationLogoForType()  : string
Returns the URL to the configured or standard application SVG logo.
getBottomBarBackgroundColor()  : string
getButtonBackgroundColor()  : string
getColor()  : mixed|null
Get a specific color based in a given token
getColorAccent()  : string
getColorBackground()  : string
getColorBorder()  : string
getColorDialogTitleBackground()  : string
getColorDialogTitleFont()  : string
getColorFont()  : string
getColorFontLink()  : string
getColorForBackgroundColor()  : the
Returns a foreground color recommended in front of a given background color
getColorForPrimaryColor()  : string
Returns the foreground color recommended in front of the primary color.
getColorForSecondaryColor()  : string
Returns the foreground color recommended in front of the secondary color.
getColorHeaderBackground()  : string
getColorHeaderFont()  : string
getColorHeaderSelectedFont()  : string
getColorLoginBackground()  : string
Returns the login background color which is defined in the skin options.
getColorLoginFont()  : string
Returns the login font color which is defined in the skin options.
getColorLoginForeground()  : string
Returns the login background color which is defined in the skin options.
getColorPopupMenuBackground()  : string
getColorPopupMenuFont()  : string
Gets the font color to be used on popup menus. If no color is defined, we dynamically calculate the font color based on COLOR_POPUP_MENU_BACKGROUND
getColorPopupMenuIcon()  : string
Tells the configured color of the popup menu icons
getColorPopupMenuSelection()  : string
getColorPrimary()  : string
Returns the color value of the primary color.
getColors()  : array<string|int, mixed>
Get all the colors defined
getColorSecondary()  : string
Returns the color value of the secondary color.
getColorStudioBarBackground()  : string
getColorStudioBarForeground()  : string
getColorStudioBarSelectedBackground()  : string
getColorToolbarBackground()  : string
getColorToolbarFont()  : string
getColorToolbarIcon()  : string
getColorTreeBackground()  : string
Defines the tree background color
getColorTreeIcon()  : string
Tells the configured color of the tree icons
getColorTreeSelection()  : string
getHeaderBackgroundColor()  : string
Older Version used before naming convention
getHeaderForegroundColor()  : string
Older Version used before naming convention
getHeaderLogo()  : string
getHeaderSelectedForegroundColor()  : string
Older Version used before naming convention
getHexColorFromBrightness()  : string
Calculates a new hex color based on a level of brightness
getLoginBackground()  : string
getLoginBackgroundFile()  : CSMamFile
getLoginLogo()  : string
getLoginTitle()  : string
getLuminance()  : float
This algorithm is taken from a formula for converting RGB values to YIQ values.
getOptionNames()  : string
Tells which option names are available
getParam()  : string
Returns a specific parameter value by name
getParamNames()  : array<string|int, mixed>
Returns which parameter names are available
getStandardColors()  : mixed
getStandardLuminance()  : float
Calculates the relative luminance which is the Standard way to calculate luminance
getStylesheetLink()  : string
getTableRowBackgroundColorEven()  : string
Defines the background color for even table rows
getTableRowBackgroundColorOdd()  : string
Defines the background color for odd table rows
getTabPaneBackgroundColor()  : mixed
getToolbarBorderColor()  : string
getToolbarIconColor()  : string
isBrightColor()  : bool
Tells if a color is bright against a dark background
isDarkColor()  : bool
Tells if a color is dark against a white background
isMenuBarExpanded()  : bool
parseColorParameter()  : mixed|null

Constants

COLOR_ACCENT

public mixed COLOR_ACCENT = 'ColorAccent'
Tags

COLOR_ACCENT_DEFAULT

public mixed COLOR_ACCENT_DEFAULT = self::COLOR_SECONDARY_DEFAULT
Tags

COLOR_BACKGROUND

public mixed COLOR_BACKGROUND = 'ColorBackground'
Tags

COLOR_BACKGROUND_DEFAULT

public mixed COLOR_BACKGROUND_DEFAULT = '#FFFFFF'
Tags

COLOR_BLACK

public mixed COLOR_BLACK = 'ColorBlack'
Tags

COLOR_BLACK_BLUE

public mixed COLOR_BLACK_BLUE = 'ColorBlackBlue'
Tags

COLOR_BLUE

public mixed COLOR_BLUE = 'ColorBlue'
Tags

COLOR_BORDER

public mixed COLOR_BORDER = 'ColorBorder'
Tags

COLOR_BORDER_DEFAULT

public mixed COLOR_BORDER_DEFAULT = '#3F587D10'
Tags

COLOR_CS_BLUE

public mixed COLOR_CS_BLUE = 'ColorCSBlue'
Tags

COLOR_CS_BLUE_DARK

public mixed COLOR_CS_BLUE_DARK = 'ColorCSBlueDark'
Tags

COLOR_CS_BLUE_LIGHT

public mixed COLOR_CS_BLUE_LIGHT = 'ColorCSBlueLight'
Tags

COLOR_CS_MAGENTA

public mixed COLOR_CS_MAGENTA = 'ColorCSMagenta'
Tags

COLOR_CS_TURQUOISE

public mixed COLOR_CS_TURQUOISE = 'ColorCSTurquoise'
Tags

COLOR_DIALOG_TITLE_BACKGROUND

public mixed COLOR_DIALOG_TITLE_BACKGROUND = 'ColorDialogTitleBackground'
Tags

COLOR_DIALOG_TITLE_BACKGROUND_DEFAULT

public mixed COLOR_DIALOG_TITLE_BACKGROUND_DEFAULT = '#FFFFFF'
Tags

COLOR_DIALOG_TITLE_FONT

public mixed COLOR_DIALOG_TITLE_FONT = 'ColorDialogTitleFont'
Tags

COLOR_DIALOG_TITLE_FONT_DEFAULT

public mixed COLOR_DIALOG_TITLE_FONT_DEFAULT = self::COLOR_FONT_DEFAULT
Tags

COLOR_ERROR_200

public mixed COLOR_ERROR_200 = 'ColorError200'
Tags

COLOR_ERROR_600

The variants of the default error colors for the new UI design.

public string COLOR_ERROR_600 = 'ColorError600'
Tags

COLOR_FONT

public mixed COLOR_FONT = 'ColorFont'
Tags

COLOR_FONT_DEFAULT

public mixed COLOR_FONT_DEFAULT = '#191D23'
Tags
public mixed COLOR_FONT_LINK = 'ColorFontLink'
Tags
public mixed COLOR_FONT_LINK_DEFAULT = '#426BDF'
Tags

COLOR_GRAY

public mixed COLOR_GRAY = 'ColorGray'
Tags

COLOR_GRAY_LIGHT

public mixed COLOR_GRAY_LIGHT = 'ColorGrayLight'
Tags

COLOR_GREEN

public mixed COLOR_GREEN = 'ColorGreen'
Tags

COLOR_HEADER_BACKGROUND

public mixed COLOR_HEADER_BACKGROUND = 'ColorHeaderBackground'
Tags

COLOR_HEADER_BACKGROUND_DEFAULT

public mixed COLOR_HEADER_BACKGROUND_DEFAULT = self::COLOR_PRIMARY_DEFAULT
Tags

COLOR_HEADER_FONT

public mixed COLOR_HEADER_FONT = 'ColorHeaderFont'
Tags

COLOR_HEADER_FONT_DEFAULT

public mixed COLOR_HEADER_FONT_DEFAULT = '#FFFFFF'
Tags

COLOR_HEADER_SELECTED_FONT

public mixed COLOR_HEADER_SELECTED_FONT = 'ColorHeaderSelectedFont'
Tags

COLOR_HEADER_SELECTED_FONT_DEFAULT

public mixed COLOR_HEADER_SELECTED_FONT_DEFAULT = '#FFFFFF'
Tags

COLOR_INFORMATION_DEFAULT

public mixed COLOR_INFORMATION_DEFAULT = 'ColorInfoDefault'
Tags

COLOR_INFORMATION_ERROR

public mixed COLOR_INFORMATION_ERROR = 'ColorInfoError'
Tags

COLOR_INFORMATION_SUCCESS

public mixed COLOR_INFORMATION_SUCCESS = 'ColorInfoSuccess'
Tags

COLOR_INFORMATION_WARNING

public mixed COLOR_INFORMATION_WARNING = 'ColorInfoWarning'
Tags

COLOR_INPUT_BORDER

public mixed COLOR_INPUT_BORDER = 'ColorInputBorder'
Tags

COLOR_INPUT_BORDER_FOCUS

public mixed COLOR_INPUT_BORDER_FOCUS = 'ColorInputBorderFocus'
Tags

COLOR_INPUT_BORDER_HOVER

public mixed COLOR_INPUT_BORDER_HOVER = 'ColorInputBorderHover'
Tags

COLOR_LIST_HOVER

public mixed COLOR_LIST_HOVER = 'ColorListHover'
Tags

COLOR_LIST_SELECTED

public mixed COLOR_LIST_SELECTED = 'ColorListSelected'
Tags

COLOR_LOGIN_BACKGROUND

public mixed COLOR_LOGIN_BACKGROUND = 'ColorLoginBackground'
Tags

COLOR_LOGIN_BACKGROUND_DEFAULT

public mixed COLOR_LOGIN_BACKGROUND_DEFAULT = self::COLOR_PRIMARY_DEFAULT
Tags

COLOR_LOGIN_FONT

public mixed COLOR_LOGIN_FONT = 'ColorLoginFont'
Tags

COLOR_LOGIN_FONT_DEFAULT

public mixed COLOR_LOGIN_FONT_DEFAULT = '#FFFFFF'
Tags

COLOR_LOGIN_FOREGROUND

public mixed COLOR_LOGIN_FOREGROUND = 'ColorLoginForeground'
Tags

COLOR_LOGIN_FOREGROUND_DEFAULT

public mixed COLOR_LOGIN_FOREGROUND_DEFAULT = self::COLOR_SECONDARY_DEFAULT
Tags

COLOR_ORANGE

public mixed COLOR_ORANGE = 'ColorOrange'
Tags

COLOR_POPUP_MENU_BACKGROUND

public mixed COLOR_POPUP_MENU_BACKGROUND = 'ColorPopupMenuBackground'
Tags

COLOR_POPUP_MENU_BACKGROUND_DEFAULT

public mixed COLOR_POPUP_MENU_BACKGROUND_DEFAULT = '#FFFFFF'
Tags

COLOR_POPUP_MENU_FONT

public mixed COLOR_POPUP_MENU_FONT = 'ColorPopupMenuFont'
Tags

COLOR_POPUP_MENU_FONT_DEFAULT

public mixed COLOR_POPUP_MENU_FONT_DEFAULT = self::COLOR_FONT_DEFAULT
Tags
deprecated

Please use getColorPopupMenuFont() to get the correct default value dynamically calculated

COLOR_POPUP_MENU_SELECTION

public mixed COLOR_POPUP_MENU_SELECTION = 'ColorPopupMenuSelection'
Tags

COLOR_POPUP_MENU_SELECTION_DEFAULT

public mixed COLOR_POPUP_MENU_SELECTION_DEFAULT = '#3F587D10'
Tags

COLOR_PRIMARY

public mixed COLOR_PRIMARY = 'ColorPrimary'
Tags

COLOR_PRIMARY_100

public mixed COLOR_PRIMARY_100 = 'ColorPrimary100'
Tags

COLOR_PRIMARY_20

public mixed COLOR_PRIMARY_20 = 'ColorPrimary20'
Tags

COLOR_PRIMARY_200

public mixed COLOR_PRIMARY_200 = 'ColorPrimary200'
Tags

COLOR_PRIMARY_300

public mixed COLOR_PRIMARY_300 = 'ColorPrimary300'
Tags

COLOR_PRIMARY_400

public mixed COLOR_PRIMARY_400 = 'ColorPrimary400'
Tags

COLOR_PRIMARY_50

public mixed COLOR_PRIMARY_50 = 'ColorPrimary50'
Tags

COLOR_PRIMARY_500

public mixed COLOR_PRIMARY_500 = 'ColorPrimary500'
Tags

COLOR_PRIMARY_600

public mixed COLOR_PRIMARY_600 = 'ColorPrimary600'
Tags

COLOR_PRIMARY_700

public mixed COLOR_PRIMARY_700 = 'ColorPrimary700'
Tags

COLOR_PRIMARY_800

public mixed COLOR_PRIMARY_800 = 'ColorPrimary800'
Tags

COLOR_PRIMARY_900

The variants of the default primary color for the new UI design.

public string COLOR_PRIMARY_900 = 'ColorPrimary900'
Tags

COLOR_PRIMARY_DEFAULT

public mixed COLOR_PRIMARY_DEFAULT = '#221F61'
Tags

COLOR_PRIMARY_FOREGROUND

The foreground colors for the primary & secondary color, which should be used for icon & text.

public string COLOR_PRIMARY_FOREGROUND = 'ColorPrimaryForeground'
Tags

COLOR_PURPLE

public mixed COLOR_PURPLE = 'ColorPurple'
Tags

COLOR_RED

public mixed COLOR_RED = 'ColorRed'
Tags

COLOR_SECONDARY

public mixed COLOR_SECONDARY = 'ColorSecondary'
Tags

COLOR_SECONDARY_300

public mixed COLOR_SECONDARY_300 = 'ColorSecondary300'
Tags

COLOR_SECONDARY_400

public mixed COLOR_SECONDARY_400 = 'ColorSecondary400'
Tags

COLOR_SECONDARY_50

public mixed COLOR_SECONDARY_50 = 'ColorSecondary50'
Tags

COLOR_SECONDARY_500

public mixed COLOR_SECONDARY_500 = 'ColorSecondary500'
Tags

COLOR_SECONDARY_600

public mixed COLOR_SECONDARY_600 = 'ColorSecondary600'
Tags

COLOR_SECONDARY_700

The variants of the default secondary color for the new UI design.

public string COLOR_SECONDARY_700 = 'ColorSecondary700'
Tags

COLOR_SECONDARY_DEFAULT

public mixed COLOR_SECONDARY_DEFAULT = '#FE0074'
Tags

COLOR_SECONDARY_FOREGROUND

public mixed COLOR_SECONDARY_FOREGROUND = 'ColorSecondaryForeground'
Tags

COLOR_SEPARATOR

public mixed COLOR_SEPARATOR = 'ColorSeparator'
Tags

COLOR_STUDIO_BAR_BACKGROUND

public mixed COLOR_STUDIO_BAR_BACKGROUND = 'ColorStudioBarBackground'
Tags

COLOR_STUDIO_BAR_BACKGROUND_DEFAULT

public mixed COLOR_STUDIO_BAR_BACKGROUND_DEFAULT = self::COLOR_PRIMARY_DEFAULT
Tags

COLOR_STUDIO_BAR_FOREGROUND

public mixed COLOR_STUDIO_BAR_FOREGROUND = 'ColorStudioBarForeground'
Tags

COLOR_STUDIO_BAR_FOREGROUND_DEFAULT

public mixed COLOR_STUDIO_BAR_FOREGROUND_DEFAULT = '#FFFFFF'
Tags

COLOR_STUDIO_BAR_SELECTED_FOREGROUND

public mixed COLOR_STUDIO_BAR_SELECTED_FOREGROUND = 'ColorStudioBarSelectedBackground'
Tags

COLOR_STUDIO_BAR_SELECTED_FOREGROUND_DEFAULT

public mixed COLOR_STUDIO_BAR_SELECTED_FOREGROUND_DEFAULT = '#3A3783'
Tags

COLOR_TOOLBAR_BACKGROUND

public mixed COLOR_TOOLBAR_BACKGROUND = 'ColorToolbarBackground'
Tags

COLOR_TOOLBAR_BACKGROUND_DEFAULT

public mixed COLOR_TOOLBAR_BACKGROUND_DEFAULT = '#FFFFFF'
Tags

COLOR_TOOLBAR_FONT

public mixed COLOR_TOOLBAR_FONT = 'ColorToolbarFont'
Tags

COLOR_TOOLBAR_FONT_DEFAULT

public mixed COLOR_TOOLBAR_FONT_DEFAULT = self::COLOR_FONT_DEFAULT
Tags

COLOR_TOOLBAR_ICON

public mixed COLOR_TOOLBAR_ICON = 'ColorToolbarIcon'
Tags

COLOR_TOOLBAR_ICON_DEFAULT

public mixed COLOR_TOOLBAR_ICON_DEFAULT = self::COLOR_FONT_DEFAULT
Tags

COLOR_TREE_BACKGROUND

public mixed COLOR_TREE_BACKGROUND = 'ColorTreeBackground'
Tags

COLOR_TREE_BACKGROUND_DEFAULT

public mixed COLOR_TREE_BACKGROUND_DEFAULT = '#F3F5F7'
Tags

COLOR_TREE_ICON

public mixed COLOR_TREE_ICON = 'ColorTreeIcon'
Tags

COLOR_TREE_ICON_DEFAULT

public mixed COLOR_TREE_ICON_DEFAULT = '#535961'
Tags

COLOR_TREE_SELECTION

public mixed COLOR_TREE_SELECTION = 'ColorTreeSelection'
Tags

COLOR_TREE_SELECTION_DEFAULT

public mixed COLOR_TREE_SELECTION_DEFAULT = self::COLOR_SECONDARY_DEFAULT
Tags

COLOR_VIOLET

public mixed COLOR_VIOLET = 'ColorViolet'
Tags

COLOR_YELLOW

public mixed COLOR_YELLOW = 'ColorYellow'
Tags

LOGO_TYPE_LARGE

Logo types

public int LOGO_TYPE_LARGE = 0
Tags

TOOLBAR_EXPAND_MENU

public mixed TOOLBAR_EXPAND_MENU = 'ToolbarExpandMenu'
Tags

Methods

addTransparencyToHexColor()

Adds the transparency part of the hex color based on a percentage. It will also overwrite already defined alpha channel in the color code.

public static addTransparencyToHexColor(string $sHexColor, float $fPercent) : string
Parameters
$sHexColor : string

the hex code color definition

$fPercent : float

the percentage of transparency to add to the color, if negative makes it darker, if positive makes it brighter, value between 0 and 1

Tags
throws
CSException

Throws exception if the provided parameters are invalid

Return values
string

the 8 digit hex color, being the last 2 digits the alpha channel

createCSSFiles()

Creates all CSS files required

public static createCSSFiles(int $iThemeId) : mixed
Parameters
$iThemeId : int
Tags
Return values
mixed

Method that retrieves the Theme logo's if in presence of a configured Theme, or the ones from the general settings.

public static getApplicationLogo([int $iType = self::LOGO_TYPE_LARGE ]) : int|null

The method can be called for either the standard (large) application logo, or small.

Parameters
$iType : int = self::LOGO_TYPE_LARGE

The type of logo to be requested (Large or Small).

Tags
Return values
int|null

The application logo ID.

getApplicationLogoForType()

Returns the URL to the configured or standard application SVG logo.

public static getApplicationLogoForType([int $iType = self::LOGO_TYPE_LARGE ][, string $sBackgroundColor = '' ]) : string

If a HEX background color is given the standard application SVG logo will be returned with a contrast color.

Parameters
$iType : int = self::LOGO_TYPE_LARGE

The size type of the application logo. Please use the available logo type constants: LOGO_TYPE_*

$sBackgroundColor : string = ''

The HEX background color to return the logo with the most contrast for the given background color.

Tags
Return values
string

getBottomBarBackgroundColor()

public static getBottomBarBackgroundColor() : string
Tags
Return values
string

the background color for bottom bars

getButtonBackgroundColor()

public static getButtonBackgroundColor() : string
Tags
Return values
string

the color for the background of buttons

getColor()

Get a specific color based in a given token

public final static getColor(mixed $sToken[, mixed $sDefault = '' ]) : mixed|null
Parameters
$sToken : mixed

string The token corresponding the color to be retrieved

$sDefault : mixed = ''

string The color to default to

Tags
Return values
mixed|null

getColorAccent()

public static getColorAccent() : string
Tags
Return values
string

the accent color

getColorBackground()

public static getColorBackground() : string
Tags
Return values
string

The background color

getColorBorder()

public static getColorBorder() : string
Tags
Return values
string

the border color

getColorDialogTitleBackground()

public static getColorDialogTitleBackground() : string
Tags
Return values
string

the background color of CSGui Dialog Titles

getColorDialogTitleFont()

public static getColorDialogTitleFont() : string
Tags
Return values
string

the font color of CSGui Dialog Titles

getColorFont()

public static getColorFont() : string
Tags
Return values
string

the default font color

public static getColorFontLink() : string
Tags
Return values
string

the default font link color

getColorForBackgroundColor()

Returns a foreground color recommended in front of a given background color

public static getColorForBackgroundColor([mixed $sBackgroundColor = '#FFFFFF' ]) : the
Parameters
$sBackgroundColor : mixed = '#FFFFFF'

the foreground color

Tags
Return values
the

recommended foreground color

getColorForPrimaryColor()

Returns the foreground color recommended in front of the primary color.

public static getColorForPrimaryColor() : string

Please keep the return colors consistent with the JS method "CSColor.getTextColor()" defintion.

Tags
Return values
string

getColorForSecondaryColor()

Returns the foreground color recommended in front of the secondary color.

public static getColorForSecondaryColor() : string

Please keep the return colors consistent with the JS method "CSColor.getTextColor()" definition.

Tags
Return values
string

getColorHeaderBackground()

public static getColorHeaderBackground() : string
Tags
Return values
string

the header background color

getColorHeaderFont()

public static getColorHeaderFont() : string
Tags
Return values
string

the header font color

getColorHeaderSelectedFont()

public static getColorHeaderSelectedFont() : string
Tags
Return values
string

the header foreground color for selected tabs

getColorLoginBackground()

Returns the login background color which is defined in the skin options.

public static getColorLoginBackground() : string
Tags
deprecated

use getLoginPrimaryColor

Return values
string

with the login background color which is defined in the skin options.

getColorLoginFont()

Returns the login font color which is defined in the skin options.

public static getColorLoginFont() : string
Tags
Return values
string

with the login font color which is defined in the skin options.

getColorLoginForeground()

Returns the login background color which is defined in the skin options.

public static getColorLoginForeground() : string
Tags
deprecated

use getLoginSecondaryColor

Return values
string

with the login background color which is defined in the skin options.

getColorPopupMenuBackground()

public static getColorPopupMenuBackground() : string
Tags
Return values
string

the background color of context menus with a slight transparency as rgba color

getColorPopupMenuFont()

Gets the font color to be used on popup menus. If no color is defined, we dynamically calculate the font color based on COLOR_POPUP_MENU_BACKGROUND

public static getColorPopupMenuFont() : string
Tags
Return values
string

the font color of context menus

getColorPopupMenuIcon()

Tells the configured color of the popup menu icons

public static getColorPopupMenuIcon() : string
Tags
Return values
string

the color of the icons

getColorPopupMenuSelection()

public static getColorPopupMenuSelection() : string
Tags
Return values
string

the selected popup menu background color

getColorPrimary()

Returns the color value of the primary color.

public static getColorPrimary() : string
Tags
Return values
string

getColors()

Get all the colors defined

public final static getColors() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>

getColorSecondary()

Returns the color value of the secondary color.

public static getColorSecondary() : string
Tags
Return values
string

getColorStudioBarBackground()

public static getColorStudioBarBackground() : string
Tags
Return values
string

the background color of the studio vertical toolbar

getColorStudioBarForeground()

public static getColorStudioBarForeground() : string
Tags
Return values
string

the icon color of the studio vertical toolbar

getColorStudioBarSelectedBackground()

public static getColorStudioBarSelectedBackground() : string
Tags
Return values
string

the background color of the studio vertical toolbar for selected tabs

getColorToolbarBackground()

public static getColorToolbarBackground() : string
Tags
Return values
string

the background color for toolbars

getColorToolbarFont()

public static getColorToolbarFont() : string
Tags
Return values
string

the toolbar font color

getColorToolbarIcon()

public static getColorToolbarIcon() : string
Tags
Return values
string

the toolbar icon color

getColorTreeBackground()

Defines the tree background color

public static getColorTreeBackground() : string
Tags
Return values
string

getColorTreeIcon()

Tells the configured color of the tree icons

public static getColorTreeIcon() : string
Tags
Return values
string

the color of the tree icon

getColorTreeSelection()

public static getColorTreeSelection() : string
Tags
Return values
string

the tree selection color

getHeaderBackgroundColor()

Older Version used before naming convention

public static getHeaderBackgroundColor() : string
Tags
deprecated
Return values
string

the header background color

getHeaderForegroundColor()

Older Version used before naming convention

public static getHeaderForegroundColor() : string
Tags
deprecated
Return values
string

the header foreground color

public static getHeaderLogo() : string
Tags
Return values
string

the url to the header logo

getHeaderSelectedForegroundColor()

Older Version used before naming convention

public static getHeaderSelectedForegroundColor() : string
Tags
deprecated
Return values
string

the header selected foreground color

getHexColorFromBrightness()

Calculates a new hex color based on a level of brightness

public static getHexColorFromBrightness(string $sHexColor, float $fPercent) : string
Parameters
$sHexColor : string

the hex code color definition

$fPercent : float

the percentage of brightness to change the color, if negative makes it darker, if positive makes it brighter, value between 1 and -1

Tags
throws
CSException

Throws exception if the provided parameters are invalid

Return values
string

the calculated hex color

getLoginBackground()

public static getLoginBackground() : string
Tags
Return values
string

the url to the login logo as configured

getLoginBackgroundFile()

public static getLoginBackgroundFile() : CSMamFile
Tags
Return values
CSMamFile

the url to the login logo as configured

public static getLoginLogo() : string
Tags
Return values
string

the url to the login logo as configured

getLoginTitle()

public static getLoginTitle() : string
Tags
Return values
string

the title of the login screen shown in the upper right corner

getLuminance()

This algorithm is taken from a formula for converting RGB values to YIQ values.

public static getLuminance(string $sHexColor) : float

This gives a perceived luminance for a color.

Parameters
$sHexColor : string

$sHexColor the color as 6/8 character hex code color definition, transparency is supported.

Tags
Return values
float

the perceived luminance

getOptionNames()

Tells which option names are available

public static getOptionNames() : string
Tags
inheritDoc
Return values
string

getParam()

Returns a specific parameter value by name

public final static getParam(string $sName) : string
Parameters
$sName : string

The name of the parameter to request

Tags
Return values
string

The value from the requested parameter

getParamNames()

Returns which parameter names are available

public final static getParamNames() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>

An array with the parameter names available

getStandardColors()

public static getStandardColors() : mixed
Tags
Return values
mixed

getStandardLuminance()

Calculates the relative luminance which is the Standard way to calculate luminance

public static getStandardLuminance(string $sHexColor) : float
Parameters
$sHexColor : string

$sHexColor the color as a 6/8 character hex code color definition, transparency is supported.

Tags
Return values
float

relative luminance

public static getStylesheetLink() : string
Tags
Return values
string

returns a style sheet holding all Skin params

getTableRowBackgroundColorEven()

Defines the background color for even table rows

public static getTableRowBackgroundColorEven() : string
Tags
Return values
string

the color as hex code

getTableRowBackgroundColorOdd()

Defines the background color for odd table rows

public static getTableRowBackgroundColorOdd() : string
Tags
Return values
string

the color as hex code

getTabPaneBackgroundColor()

public static getTabPaneBackgroundColor() : mixed
Tags
Return values
mixed

the tab pane background color

getToolbarBorderColor()

public static getToolbarBorderColor() : string
Tags
Return values
string

the border color for toolbars

getToolbarIconColor()

public static getToolbarIconColor() : string
Tags
Return values
string

the icon color for toolbars

isBrightColor()

Tells if a color is bright against a dark background

public static isBrightColor(string $sHexColor) : bool
Parameters
$sHexColor : string

the color as 6 character hex code color definition, optional with leading #

Tags
Return values
bool

true if bright

isDarkColor()

Tells if a color is dark against a white background

public static isDarkColor(string $sHexColor) : bool
Parameters
$sHexColor : string

the color as 6 character hex code color definition, optional with leading #

Tags
Return values
bool

true if dark

isMenuBarExpanded()

public static isMenuBarExpanded() : bool
Tags
Return values
bool

true if the menu bar should be expanded

parseColorParameter()

public static parseColorParameter(mixed $sColor) : mixed|null
Parameters
$sColor : mixed

string The color to retrieve

Tags
Return values
mixed|null

        

Search results