mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 08:35:28 +00:00
add separators, fix margins
This commit is contained in:
parent
6c3dd46c2a
commit
a5a798093d
1 changed files with 33 additions and 5 deletions
|
|
@ -8,10 +8,13 @@ use \Exception;
|
|||
use \GtkButtonsType;
|
||||
use \GtkDialogFlags;
|
||||
use \GtkEntry;
|
||||
use \GtkLabel;
|
||||
use \GtkMessageDialog;
|
||||
use \GtkMessageType;
|
||||
use \GtkOrientation;
|
||||
use \GtkRadioButton;
|
||||
use \GtkResponseType;
|
||||
use \GtkSeparator;
|
||||
|
||||
use \Yggverse\Yoda\Entity\Browser\Container\Page;
|
||||
|
||||
|
|
@ -136,6 +139,13 @@ class Auth
|
|||
}
|
||||
}
|
||||
|
||||
// Append separator
|
||||
$content->add(
|
||||
new GtkSeparator(
|
||||
GtkOrientation::VERTICAL
|
||||
)
|
||||
);
|
||||
|
||||
// Build options list
|
||||
foreach ($this->_options as $id => $option)
|
||||
{
|
||||
|
|
@ -144,18 +154,36 @@ class Auth
|
|||
$option
|
||||
);
|
||||
|
||||
// Append name entry after new identity option
|
||||
// Is new
|
||||
if (!$id)
|
||||
{
|
||||
// Append name entry after new identity option
|
||||
$content->add(
|
||||
$this->_name,
|
||||
true,
|
||||
true,
|
||||
0
|
||||
);
|
||||
|
||||
// Append separator
|
||||
$content->add(
|
||||
new GtkSeparator(
|
||||
GtkOrientation::VERTICAL
|
||||
)
|
||||
);
|
||||
|
||||
// Set margin
|
||||
$option->set_margin_bottom(
|
||||
self::DIALOG_CONTENT_OPTION_MARGIN
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// Append empty line separator
|
||||
$content->add(
|
||||
new GtkLabel
|
||||
);
|
||||
|
||||
// Render
|
||||
$this->gtk->show_all();
|
||||
|
||||
|
|
@ -228,6 +256,10 @@ class Auth
|
|||
$label
|
||||
);
|
||||
|
||||
$option->set_margin_top(
|
||||
$margin
|
||||
);
|
||||
|
||||
$option->set_margin_start(
|
||||
$margin
|
||||
);
|
||||
|
|
@ -236,10 +268,6 @@ class Auth
|
|||
$margin
|
||||
);
|
||||
|
||||
$option->set_margin_bottom(
|
||||
$margin
|
||||
);
|
||||
|
||||
$option->connect(
|
||||
'toggled',
|
||||
function(): void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue