summaryrefslogtreecommitdiff
path: root/StrawKit/Applications/Test Application.app/Main.js
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-07-03 14:23:25 +0200
committerMinteck <contact@minteck.org>2022-07-03 14:23:25 +0200
commitd25bdc9f3f3f6547d6c023ed7e192fc5913e9bbc (patch)
treea8e538a8e32b66fece6a10c198fe700866d1e233 /StrawKit/Applications/Test Application.app/Main.js
downloadstrawberry-os-d25bdc9f3f3f6547d6c023ed7e192fc5913e9bbc.tar.gz
strawberry-os-d25bdc9f3f3f6547d6c023ed7e192fc5913e9bbc.tar.bz2
strawberry-os-d25bdc9f3f3f6547d6c023ed7e192fc5913e9bbc.zip
Initial commit
Diffstat (limited to 'StrawKit/Applications/Test Application.app/Main.js')
-rw-r--r--StrawKit/Applications/Test Application.app/Main.js27
1 files changed, 27 insertions, 0 deletions
diff --git a/StrawKit/Applications/Test Application.app/Main.js b/StrawKit/Applications/Test Application.app/Main.js
new file mode 100644
index 0000000..4a507d4
--- /dev/null
+++ b/StrawKit/Applications/Test Application.app/Main.js
@@ -0,0 +1,27 @@
+// noinspection JSUnresolvedVariable
+
+module.exports = () => {
+ Strawberry.App = "Test Application";
+ Strawberry.MultiPanes = false;
+ Strawberry.Menus = [
+ "Menu Item",
+ "Draw Garbage",
+ "Programmatic Quit"
+ ]
+
+ Strawberry.StartLoad();
+ Strawberry.WhenLoaded = () => {
+ load("Strawberry.Display");
+ load("Strawberry.Menubar");
+
+ 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);
+ }
+} \ No newline at end of file