Add text components and styling

This commit is contained in:
KernelDeimos
2024-05-06 00:02:46 -04:00
parent f9c5a688b1
commit a95fcc96be
8 changed files with 227 additions and 33 deletions
+3 -31
View File
@@ -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();