mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
fix use const
This commit is contained in:
parent
bb3f7595f7
commit
0f01ecde96
5 changed files with 26 additions and 29 deletions
|
|
@ -18,10 +18,8 @@ class Tray
|
|||
public Tray\Tab $tab;
|
||||
|
||||
// Defaults
|
||||
protected bool $_actions = true;
|
||||
protected string $_title = 'Yoda';
|
||||
protected string $_subtitle = '';
|
||||
protected int $_margin = 8;
|
||||
public const MARGIN = 4;
|
||||
public const SPACING = 8;
|
||||
|
||||
public function __construct(
|
||||
Header $header
|
||||
|
|
@ -35,15 +33,15 @@ class Tray
|
|||
);
|
||||
|
||||
$this->gtk->set_margin_start(
|
||||
$this->_margin / 2
|
||||
$this::MARGIN
|
||||
);
|
||||
|
||||
$this->gtk->set_margin_end(
|
||||
$this->_margin / 2
|
||||
$this::MARGIN
|
||||
);
|
||||
|
||||
$this->gtk->set_spacing(
|
||||
$this->_margin
|
||||
$this::SPACING
|
||||
);
|
||||
|
||||
// Init navigation
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue