mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-03-13 06:01:21 +00:00
add setSubtitle method
This commit is contained in:
parent
d4bf1f6c56
commit
a516aa958f
@ -53,17 +53,28 @@ class Header
|
||||
}
|
||||
|
||||
public function setTitle(
|
||||
?string $title = null
|
||||
?string $value = null
|
||||
): void
|
||||
{
|
||||
$this->gtk->set_title(
|
||||
is_null($title) ? $this->_title : sprintf(
|
||||
is_null($value) ? $this->_title : sprintf(
|
||||
'%s - %s',
|
||||
trim(
|
||||
$title
|
||||
$value
|
||||
),
|
||||
$this->_title
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
public function setSubtitle(
|
||||
?string $value = null
|
||||
): void
|
||||
{
|
||||
$this->gtk->set_subtitle(
|
||||
is_null($value) ? $this->_subtitle : trim(
|
||||
$value
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user