add a windowed appearance for the settings

This commit is contained in:
buzzcode2007 2024-03-23 22:36:32 +08:00
parent 84cc60f829
commit 913fadedb8

24
gui/scripts/settings.JS Normal file
View file

@ -0,0 +1,24 @@
/* Settings.js
Build the interface for the settings
*/
import texts from './read.JS';
import windowman from './windowman.JS';
function start() {
windowman.prepare();
return(new windowman(`body`, null, null, {'Close': true}));
}
function populate(element) {
/* Populate the strings on the page. */
element.update('title', texts.localized(`GUI_title_prefs`));
}
function main() {
let tab = start();
populate(tab);
}
main();