mirror of
https://github.com/HeyPuter/puter.git
synced 2026-08-22 22:17:01 +00:00
Add text components and styling
This commit is contained in:
@@ -14,38 +14,10 @@ export default async function UIComponentWindow (options) {
|
||||
const placeholder = Placeholder();
|
||||
|
||||
await UIWindow({
|
||||
title: 'Instant Login!',
|
||||
app: 'instant-login',
|
||||
single_instance: true,
|
||||
icon: null,
|
||||
uid: null,
|
||||
is_dir: false,
|
||||
...options,
|
||||
|
||||
body_content: placeholder.html,
|
||||
has_head: false,
|
||||
selectable_body: false,
|
||||
allow_context_menu: false,
|
||||
is_resizable: false,
|
||||
is_droppable: false,
|
||||
init_center: true,
|
||||
allow_native_ctxmenu: false,
|
||||
allow_user_select: false,
|
||||
backdrop: true,
|
||||
width: 550,
|
||||
height: 'auto',
|
||||
dominant: true,
|
||||
show_in_taskbar: false,
|
||||
draggable_body: true,
|
||||
onAppend: function(this_window){
|
||||
},
|
||||
window_class: 'window-qr',
|
||||
body_css: {
|
||||
width: 'initial',
|
||||
height: '100%',
|
||||
'background-color': 'rgb(245 247 249)',
|
||||
'backdrop-filter': 'blur(3px)',
|
||||
padding: '20px',
|
||||
},
|
||||
})
|
||||
});
|
||||
|
||||
options.component.attach(placeholder);
|
||||
options.component.focus();
|
||||
|
||||
Reference in New Issue
Block a user