mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
rename update button, change location in the navbar
This commit is contained in:
parent
a76f3a87c6
commit
b8ca2cdce4
3 changed files with 13 additions and 13 deletions
|
|
@ -49,7 +49,7 @@ class Page
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->gtk->set_focus_child(
|
$this->gtk->set_focus_child(
|
||||||
$this->navbar->go->gtk // replace autofocus priority
|
$this->navbar->update->gtk // replace autofocus priority
|
||||||
);
|
);
|
||||||
|
|
||||||
// Init content
|
// Init content
|
||||||
|
|
|
||||||
|
|
@ -15,9 +15,9 @@ class Navbar
|
||||||
|
|
||||||
// Requirements
|
// Requirements
|
||||||
public Navbar\Base $base;
|
public Navbar\Base $base;
|
||||||
public Navbar\Go $go;
|
|
||||||
public Navbar\History $history;
|
public Navbar\History $history;
|
||||||
public Navbar\Request $request;
|
public Navbar\Request $request;
|
||||||
|
public Navbar\Update $update;
|
||||||
|
|
||||||
// Defaults
|
// Defaults
|
||||||
public const MARGIN = 8;
|
public const MARGIN = 8;
|
||||||
|
|
@ -71,6 +71,15 @@ class Navbar
|
||||||
$this->history->gtk
|
$this->history->gtk
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Append update button
|
||||||
|
$this->update = new Navbar\Update(
|
||||||
|
$this
|
||||||
|
);
|
||||||
|
|
||||||
|
$this->gtk->add(
|
||||||
|
$this->update->gtk
|
||||||
|
);
|
||||||
|
|
||||||
// Append request entry, fill empty space
|
// Append request entry, fill empty space
|
||||||
$this->request = new Navbar\Request(
|
$this->request = new Navbar\Request(
|
||||||
$this
|
$this
|
||||||
|
|
@ -83,15 +92,6 @@ class Navbar
|
||||||
0
|
0
|
||||||
);
|
);
|
||||||
|
|
||||||
// Append go button
|
|
||||||
$this->go = new Navbar\Go(
|
|
||||||
$this
|
|
||||||
);
|
|
||||||
|
|
||||||
$this->gtk->add(
|
|
||||||
$this->go->gtk
|
|
||||||
);
|
|
||||||
|
|
||||||
// Render
|
// Render
|
||||||
$this->gtk->show();
|
$this->gtk->show();
|
||||||
}
|
}
|
||||||
|
|
@ -99,7 +99,7 @@ class Navbar
|
||||||
public function refresh()
|
public function refresh()
|
||||||
{
|
{
|
||||||
$this->base->refresh();
|
$this->base->refresh();
|
||||||
$this->go->refresh();
|
$this->update->refresh();
|
||||||
$this->history->refresh();
|
$this->history->refresh();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -6,7 +6,7 @@ namespace Yggverse\Yoda\Entity\Browser\Container\Page\Navbar;
|
||||||
|
|
||||||
use \Yggverse\Yoda\Abstract\Entity\Browser\Container\Page\Navbar\Button;
|
use \Yggverse\Yoda\Abstract\Entity\Browser\Container\Page\Navbar\Button;
|
||||||
|
|
||||||
class Go extends Button
|
class Update extends Button
|
||||||
{
|
{
|
||||||
public const IMAGE = 'view-refresh-symbolic';
|
public const IMAGE = 'view-refresh-symbolic';
|
||||||
public const LABEL = 'Go';
|
public const LABEL = 'Go';
|
||||||
Loading…
Add table
Add a link
Reference in a new issue