mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
implement bookmarks browser
This commit is contained in:
parent
107718022d
commit
49ec6ee23d
16 changed files with 840 additions and 1 deletions
35
src/Entity/Browser/Bookmark/Header.php
Normal file
35
src/Entity/Browser/Bookmark/Header.php
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Yggverse\Yoda\Entity\Browser\Bookmark;
|
||||
|
||||
use \GtkHeaderBar;
|
||||
|
||||
class Header
|
||||
{
|
||||
public GtkHeaderBar $gtk;
|
||||
|
||||
public const ACTIONS = true;
|
||||
public const TITLE = 'Bookmark - Yoda';
|
||||
public const SUBTITLE = '';
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->gtk = new GtkHeaderBar;
|
||||
|
||||
$this->gtk->set_show_close_button(
|
||||
$this::ACTIONS
|
||||
);
|
||||
|
||||
$this->gtk->set_title(
|
||||
_($this::TITLE)
|
||||
);
|
||||
|
||||
$this->gtk->set_subtitle(
|
||||
_($this::SUBTITLE)
|
||||
);
|
||||
|
||||
$this->gtk->show();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue