This commit is contained in:
Thomas Peterson 2025-11-15 11:54:21 +01:00
parent 4d153aba02
commit 3558819899
2 changed files with 12 additions and 32 deletions

View File

@ -377,25 +377,6 @@ if ($densityText !== '') {
$statusLabel->setText('Bereit. ' . $densityText); $statusLabel->setText('Bereit. ' . $densityText);
} }
$scaleInput = new TextInput(
'Scale (z.B. 1.0 oder 2.0)',
'w-40 border border-gray-300 rounded px-3 py-2 bg-white text-black',
);
$scaleInput->setOnChange(function (string $value) use ($statusLabel): void {
$value = trim($value);
if ($value === '') {
return;
}
$scale = (float) $value;
if ($scale <= 0.1 || $scale > 4.0) {
$statusLabel->setText('Skalierungsfaktor muss zwischen 0.1 und 4.0 liegen.');
return;
}
putenv('PHPNATIVE_UI_SCALE=' . $scale);
$statusLabel->setText(sprintf('Skalierung gesetzt auf %.2f bitte App neu starten.', $scale));
});
$boardInput = new TextInput('Neues Board', 'flex-1 border border-gray-300 rounded px-3 py-2 bg-white text-black'); $boardInput = new TextInput('Neues Board', 'flex-1 border border-gray-300 rounded px-3 py-2 bg-white text-black');
$boardAddButton = new Button('Board hinzufügen', 'px-4 py-2 bg-blue-600 text-white rounded hover:bg-blue-700'); $boardAddButton = new Button('Board hinzufügen', 'px-4 py-2 bg-blue-600 text-white rounded hover:bg-blue-700');
$boardAddButton->setOnClick(function () use ($kanbanView, $boardInput, $statusLabel): void { $boardAddButton->setOnClick(function () use ($kanbanView, $boardInput, $statusLabel): void {
@ -404,7 +385,6 @@ $boardAddButton->setOnClick(function () use ($kanbanView, $boardInput, $statusLa
}); });
$boardRow = new Container('flex flex-row gap-3 items-center'); $boardRow = new Container('flex flex-row gap-3 items-center');
$boardRow->addComponent($boardInput); $boardRow->addComponent($boardInput);
$boardRow->addComponent($scaleInput);
$boardRow->addComponent($boardAddButton); $boardRow->addComponent($boardAddButton);
$root->addComponent($boardRow); $root->addComponent($boardRow);

View File

@ -18,22 +18,11 @@
{ {
"id": "board_691661d89de806.79123800", "id": "board_691661d89de806.79123800",
"title": "In Arbeit", "title": "In Arbeit",
"tasks": [ "tasks": []
{
"id": "task_691661d89de7a0.19655479",
"title": "Mockups skizzieren",
"note": ""
}
]
}, },
{ {
"id": "board_691661d89de894.20053237", "id": "board_691661d89de894.20053237",
"title": "Erledigt", "title": "Erledigt",
"tasks": []
},
{
"id": "board_69170bcc2be8c6.34720864",
"title": "asd",
"tasks": [ "tasks": [
{ {
"id": "task_691661d89de858.46479539", "id": "task_691661d89de858.46479539",
@ -41,5 +30,16 @@
"note": "" "note": ""
} }
] ]
},
{
"id": "board_69170bcc2be8c6.34720864",
"title": "asd",
"tasks": [
{
"id": "task_691661d89de7a0.19655479",
"title": "Mockups skizzieren",
"note": ""
}
]
} }
] ]