PanelFactory: Fix neutral panel default to color to proper constant

This commit is contained in:
Molkobain
2021-02-23 19:39:23 +01:00
parent ad93d6dd41
commit 22ffb4ecee

View File

@@ -35,9 +35,11 @@ use ormStyle;
*/ */
class PanelUIBlockFactory extends AbstractUIBlockFactory class PanelUIBlockFactory extends AbstractUIBlockFactory
{ {
/** @inheritDoc */
public const TWIG_TAG_NAME = 'UIPanel'; public const TWIG_TAG_NAME = 'UIPanel';
/** @inheritDoc */
public const UI_BLOCK_CLASS_NAME = Panel::class; public const UI_BLOCK_CLASS_NAME = Panel::class;
/** /**
* Make a basis Panel component * Make a basis Panel component
* *
@@ -48,8 +50,7 @@ class PanelUIBlockFactory extends AbstractUIBlockFactory
public static function MakeNeutral(string $sTitle) public static function MakeNeutral(string $sTitle)
{ {
$oPanel = new Panel($sTitle); $oPanel = new Panel($sTitle);
// TODO 3.0.0: Set this back to neutral when object details are done $oPanel->SetColor(Panel::ENUM_COLOR_NEUTRAL);
$oPanel->SetColor(Panel::ENUM_COLOR_BLUE);
return $oPanel; return $oPanel;
} }