init database constructor

This commit is contained in:
yggverse 2024-04-14 15:07:49 +03:00
parent 7ac9260ba7
commit 2053ab01de
5 changed files with 71 additions and 5 deletions

View file

@ -6,6 +6,8 @@ namespace Yggverse\Yoda\Entity;
class App
{
public \Yggverse\Yoda\Model\Database $database;
public \GtkWindow $window;
public \GtkHeaderBar $header;
public \GtkNotebook $tabs;
@ -17,6 +19,13 @@ class App
// Init config
$this->config = \Yggverse\Yoda\Model\File::getConfig()->app; // @TODO
// Init database
$this->database = new \Yggverse\Yoda\Model\Database(
$this->config->database->name,
$this->config->database->username,
$this->config->database->password
);
// Init theme
$css = new \GtkCssProvider();