Browse Source

rename Main box to Tab

PHP-GTK3
yggverse 8 months ago
parent
commit
a1fa9f96e7
  1. 4
      src/Box/Tab.php
  2. 2
      src/Theme/default.css
  3. 4
      src/Yoda.php

4
src/Box/Main.php → src/Box/Tab.php

@ -4,7 +4,7 @@ declare(strict_types=1);
namespace Yggverse\Yoda\Box; namespace Yggverse\Yoda\Box;
class Main class Tab
{ {
public \GtkBox $box; public \GtkBox $box;
@ -16,7 +16,7 @@ class Main
public \Yggverse\Yoda\Model\Memory $memory; public \Yggverse\Yoda\Model\Memory $memory;
public function __construct( public function __construct(
string $name = 'boxMain' string $name = 'boxTab'
) { ) {
// Init memory // Init memory
$this->memory = new \Yggverse\Yoda\Model\Memory(); $this->memory = new \Yggverse\Yoda\Model\Memory();

2
src/Theme/default.css

@ -1,3 +1,3 @@
#boxMenu {} #boxMenu {}
#boxNavigation {} #boxNavigation {}
#boxMain {} #boxTab {}

4
src/Yoda.php

@ -61,10 +61,10 @@ $window->connect(
} }
); );
$main = new \Yggverse\Yoda\Box\Main(); $tab = new \Yggverse\Yoda\Box\Tab();
$window->add( $window->add(
$main->box $tab->box
); );
$window->show_all(); $window->show_all();

Loading…
Cancel
Save