add a windowed appearance for the settings
This commit is contained in:
parent
84cc60f829
commit
913fadedb8
1 changed files with 24 additions and 0 deletions
24
gui/scripts/settings.JS
Normal file
24
gui/scripts/settings.JS
Normal 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();
|
Loading…
Add table
Add a link
Reference in a new issue