diff options
author | Minteck <contact@minteck.org> | 2022-07-03 14:23:25 +0200 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-07-03 14:23:25 +0200 |
commit | d25bdc9f3f3f6547d6c023ed7e192fc5913e9bbc (patch) | |
tree | a8e538a8e32b66fece6a10c198fe700866d1e233 /StrawKit/Applications/Test MPA Application.app | |
download | strawberry-os-d25bdc9f3f3f6547d6c023ed7e192fc5913e9bbc.tar.gz strawberry-os-d25bdc9f3f3f6547d6c023ed7e192fc5913e9bbc.tar.bz2 strawberry-os-d25bdc9f3f3f6547d6c023ed7e192fc5913e9bbc.zip |
Initial commit
Diffstat (limited to 'StrawKit/Applications/Test MPA Application.app')
-rw-r--r-- | StrawKit/Applications/Test MPA Application.app/Main.js | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/StrawKit/Applications/Test MPA Application.app/Main.js b/StrawKit/Applications/Test MPA Application.app/Main.js new file mode 100644 index 0000000..20e30c5 --- /dev/null +++ b/StrawKit/Applications/Test MPA Application.app/Main.js @@ -0,0 +1,45 @@ +// noinspection JSUnresolvedVariable + +module.exports = () => { + Strawberry.App = "Test MPA Application"; + Strawberry.MultiPanes = true; + Strawberry.Menus = [ + "Some Menu" + ] + + Strawberry.WhenLoaded = () => { + load("Strawberry.Display"); + load("Strawberry.Menubar"); + } + + Strawberry.Panes[0] = { + name: "Main", + load: () => { + Strawberry.Display.Write("Hello world!", 0, 0); + Strawberry.Display.Write("This is a test application for the " + color.underline("Strawberry Operating System") + ".", 0, 1); + Strawberry.Display.Write(color.red.inverse("RED"), 0, 3); + Strawberry.Display.Write(color.yellow.inverse("YELLOW"), 0, 4); + Strawberry.Display.Write(color.green.inverse("GREEN"), 0, 5); + Strawberry.Display.Write(color.blue.inverse("BLUE"), 0, 6); + Strawberry.Display.Write(color.cyan.inverse("CYAN"), 0, 7); + Strawberry.Display.Write(color.magenta.inverse("MAGENTA"), 0, 8); + Strawberry.Display.Write(color.gray.inverse("GRAY"), 0, 9); + } + } + + Strawberry.Panes[1] = { + name: "Something", + load: () => { + Strawberry.Display.Write("Lorem Ipsum", 0, 0); + } + } + + Strawberry.Panes[2] = { + name: "Other Thing", + load: () => { + Strawberry.Display.Write("Lorem Ipsum Dolor Sit Amet", 0, 0); + } + } + + Strawberry.StartLoad(); +}
\ No newline at end of file |