mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 18:48:51 +02:00
N°3791 - Panel: Use style defined in the DM for classes
Note that for now, semantic colors cannot be used directly in a <main_color> or <complementary_color> tag. Only valid CSS color (hexa, hsla, ...)
This commit is contained in:
@@ -434,10 +434,10 @@ class Panel extends UIContentBlock
|
||||
*/
|
||||
public function SetColorFromOrmStyle(ormStyle $oStyle)
|
||||
{
|
||||
if (strlen($oStyle->GetStyleClass()) === 0) {
|
||||
$this->SetColorFromColorSemantic(static::DEFAULT_COLOR_SCHEME);
|
||||
} else {
|
||||
if ($oStyle->HasStyleClass()) {
|
||||
$this->SetCSSColorClass($oStyle->GetStyleClass());
|
||||
} else {
|
||||
$this->SetColorFromColorSemantic(static::DEFAULT_COLOR_SCHEME);
|
||||
}
|
||||
|
||||
return $this;
|
||||
|
||||
Reference in New Issue
Block a user