Return the current color values for the site

@return array
329919
public function getEntry()
    {
        $lines = file($this->less);

        $colors = [];

        $colors['bg']      = array('title' => 'Background Color',          'hex' => trim(substr(explode('@bg: ',               $lines[0])[1], 0, -2)));
        $colors['gray']    = array('title' => 'Main Gray',                 'hex' => trim(substr(explode('@gray: ',             $lines[1])[1], 0, -2)));
        $colors['primary'] = array('title' => 'Primary Color',             'hex' => trim(substr(explode('@brand-primary: ',    $lines[2])[1], 0, -2)));
        $colors['info']    = array('title' => 'Information Color',         'hex' => trim(substr(explode('@brand-info: ',       $lines[3])[1], 0, -2)));
        $colors['success'] = array('title' => 'Success Color',             'hex' => trim(substr(explode('@brand-success: ',    $lines[4])[1], 0, -2)));
        $colors['warning'] = array('title' => 'Warning Color',             'hex' => trim(substr(explode('@brand-warning: ',    $lines[5])[1], 0, -2)));
        $colors['danger']  = array('title' => 'Error Color',               'hex' => trim(substr(explode('@brand-danger: ',     $lines[6])[1], 0, -2)));
        $colors['menu']    = array('title' => 'Active Menu Link Color',    'hex' => trim(substr(explode('@menuColor: ',        $lines[7])[1], 0, -2)));

        return $colors;
    }
1174739
public function getColour()
    {
        switch ($this->level) {
            case self::LEVEL_INFO:
                return 'cyan';

            case self::LEVEL_WARNING:
                return 'brown';

            case self::LEVEL_ERROR:
                return 'red';

            default:
                throw new \UnexpectedValueException('Could not get a colour. Level was set to ' . $this->getLevel());
        }
    }
153706
public function current()
    {
        if ($this->page === null) {
            $this->page = $this->executeCall();
        }

        $page = $this->get($this->itemsPath, $this->page);

        if ($this->nextResultToken()) {
            return $page ?: [];
        }

        return $page;
    }
797263
public function getHsl(): array
    {
        $red   = $this->colors['r'] / 255;
        $green = $this->colors['g'] / 255;
        $blue  = $this->colors['b'] / 255;

        // Determine lowest & highest value and chroma
        $max    = max($red, $green, $blue);
        $min    = min($red, $green, $blue);
        $chroma = $max - $min;

        // Calculate Luminosity
        $lightness = ($max + $min) / 2;

        // If chroma is 0, the given color is grey
        // therefore hue and saturation are set to 0
        if ($chroma == 0) {
            return ['h' => 0, 's' => 0, 'l' => $lightness];
        }

        $saturation = $lightness > 0.5
            ? $chroma / (2 - $max - $min)
            : $chroma / ($max + $min);

        switch ($max) {
            case $red:
                $hue = ($green - $blue) / $chroma + ($green < $blue ? 6 : 0);
                break;

            case $green:
                $hue = ($blue - $red) / $chroma + 2;
                break;

            case $blue:
            default:
                $hue = ($red - $green) / $chroma + 4;
                break;
        }

        $hue /= 6;

        // Return HSL Color as array
        return [
            'h' => $hue,
            's' => $saturation,
            'l' => $lightness,
        ];
    }
19032
final public static function getValues(): array
    {
        if (isset(self::$cache[static::class])) {
            return self::$cache[static::class];
        }

        $rc = new \ReflectionClass(static::class);

        return self::$cache[static::class] = $rc->getConstants();
    }
1172265
public function current()
    {
        $part  = substr($this->string, ($this->index * $this->count), $this->count);
        $chars = array_pad(str_split($part), $this->count, 0);

        return [
            'r' => $chars[0],
            'g' => $chars[1],
            'b' => $chars[2],
        ];
    }
80824
protected function getStatusValues()
    {
        $values = array();
        foreach ($this->dbObject('Status')->enumValues() as $value) {
            $values[$value] = _t('SilverStripe\Omnipay\Model\Payment.STATUS_' . strtoupper($value), $value);
        }
        return $values;
    }
670742
protected function _typesNice() {
        $enumValues = singleton("SilverStripe\SiteConfig\SiteConfig")->dbObject("Type")->enumValues();

        $values = array();

        foreach($enumValues as $enumValue) {
            $values[$enumValue] = _t("SiteInfo.TYPE" . strtoupper($enumValue), $enumValue);
        }

        return $values;
    }
317156
public function getActiveThemesList()
    {
        $config = \OxidEsales\Eshop\Core\Registry::getConfig();

        $activeThemeList = [];
        if (!$this->isAdmin()) {
            $activeThemeList[] = $config->getConfigParam('sTheme');

            if ($customThemeId = $config->getConfigParam('sCustomTheme')) {
                $activeThemeList[] = $customThemeId;
            }
        }

        return $activeThemeList;
    }
873882
public function getViewportValues()
    {
        $values = [];
        
        foreach ($this->getViewports() as $viewport) {
            $values[$viewport] = $this->getViewportField($viewport)->dataValue();
        }
        
        return $values;
    }
43994
public function values()
	{
		return array(
			'name' => $this->name,
			'description' => $this->description,
			'level' => $this->level,
			'status' => $this->status,
			'currentValue' => $this->value,
		);
	}
838574
public function getAvailableThemes()
    {

        $returnValue = array();
        foreach ($this->getMap() as $target => $value) {
            //ugly
            if($target == ThemeRegistry::WEBSOURCE) {
                continue;
            }
            //retrieve all other value
            $returnValue[$target] = $value;

            // adapt path for all theme
            $returnValue[$target]['available'] = array();
            foreach ($value['available'] as $theme) {
                $returnValue[$target]['available'][] = $this->updatePath($theme);
            }

            $returnValue[$target]['base'] = $this->getResolvedBase($target);
        }
        return $returnValue;
    }
55294
public function getValues()
    {
        $values = [];
        foreach ($this->findScenario() as $name) {
            $values[$name] = $this->$name;
        }
        return $values;
    }
315659
public function getColorVertices()
    {
        $colors = $this->getColors();
        $ret = array(0 => array(), 1 => array());

        foreach ($this->graph->getVertices()->getMap() as $vid => $vertex) {
            $ret[$colors[$vid]][$vid] = $vertex;
        }

        return $ret;
    }
772294
private static function index() {

		$colors = ColorList :: get('colors');

		foreach($colors as $hex => $color) {

			$rgb = static :: rgb($hex);
		  	$hsl = static :: hsl($hex);

		  	$shade = ColorList :: get(['shades', $color['s']]);
		  	$base  = ColorList :: get(['base', $shade['b']]);

			static :: $list[$hex] = (object) [
				
				'r' => $rgb -> r,
				'g' => $rgb -> g,
				'b' => $rgb -> b,
				'h' => $hsl -> h,
				's' => $hsl -> s,
				'l' => $hsl -> l,
				'hex' => $hex,
				'title' => $color['t'],
				'shade' => (object) [

					'id' => $color['s'],
					'hex' => $shade['h']
				],
				'base' => (object) [

					'id' => $shade['b'],
					'hex' => $base['h'],
					'title' => $base['t']
				]
			];
		}
	}
429055
public function getBorderColor() {
		$t = $this->getBorderTopColor();
		$l = $this->getBorderLeftColor();
		$r = $this->getBorderRightColor();
		$b = $this->getBorderBottomColor();
		
		return array($t, $l, $r, $b);
	}
1308816
public function stylesAll(): array
    {
        $styles = [];
        foreach ($this->getAll() as $name => $plugin) {
            $styles[$name] = $plugin->styles();
        }
        return $styles;
    }