mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
add subtitle default property
This commit is contained in:
parent
ec391a8dd9
commit
815d86b2be
1 changed files with 5 additions and 0 deletions
|
|
@ -10,6 +10,7 @@ abstract class HeaderBar
|
||||||
|
|
||||||
protected bool $_actions = true;
|
protected bool $_actions = true;
|
||||||
protected string $_title = 'Yoda';
|
protected string $_title = 'Yoda';
|
||||||
|
protected string $_subtitle = '';
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
|
|
@ -22,6 +23,10 @@ abstract class HeaderBar
|
||||||
$this->gtk->set_title(
|
$this->gtk->set_title(
|
||||||
$this->_title
|
$this->_title
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$this->gtk->set_subtitle(
|
||||||
|
$this->_subtitle
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setTitle(
|
public function setTitle(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue