adasd
This commit is contained in:
@@ -71,10 +71,12 @@ h1 {
|
|||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
padding: 24px;
|
padding: 24px 24px 120px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.desktop-icons {
|
.desktop-icons {
|
||||||
|
position: relative;
|
||||||
|
z-index: 10;
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
|
grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
|
||||||
gap: 16px;
|
gap: 16px;
|
||||||
@@ -226,7 +228,7 @@ h1 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.taskbar {
|
.taskbar {
|
||||||
position: absolute;
|
position: fixed;
|
||||||
left: 24px;
|
left: 24px;
|
||||||
right: 24px;
|
right: 24px;
|
||||||
bottom: 24px;
|
bottom: 24px;
|
||||||
@@ -261,7 +263,7 @@ h1 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.start-menu {
|
.start-menu {
|
||||||
position: absolute;
|
position: fixed;
|
||||||
left: 24px;
|
left: 24px;
|
||||||
bottom: 102px;
|
bottom: 102px;
|
||||||
z-index: 130;
|
z-index: 130;
|
||||||
|
|||||||
@@ -16,29 +16,6 @@ final class WindowManager
|
|||||||
*/
|
*/
|
||||||
public function defaultWindows(): array
|
public function defaultWindows(): array
|
||||||
{
|
{
|
||||||
$defaults = ['welcome-center', 'public-dashboard'];
|
return [];
|
||||||
$windows = [];
|
|
||||||
|
|
||||||
foreach ($defaults as $index => $appId) {
|
|
||||||
$app = $this->registry->find($appId);
|
|
||||||
|
|
||||||
if ($app === null) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
$windows[] = [
|
|
||||||
'window_id' => 'window-' . $appId,
|
|
||||||
'app_id' => $appId,
|
|
||||||
'title' => $app['title'],
|
|
||||||
'state' => $index === 0 ? 'focused' : 'open',
|
|
||||||
'x' => 72 + ($index * 48),
|
|
||||||
'y' => 84 + ($index * 36),
|
|
||||||
'width' => $app['default_width'] ?? 640,
|
|
||||||
'height' => $app['default_height'] ?? 420,
|
|
||||||
'content' => $app['summary'] ?? '',
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
return $windows;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user