From 10a0225fbfe99f4605b2a4e65c925f6226995731 Mon Sep 17 00:00:00 2001 From: Xuan Sang LE Date: Sat, 14 Apr 2018 17:10:58 +0000 Subject: [PATCH] update --- LuaPlayground/assets/scheme.html | 5 ++++- LuaPlayground/build/debug/main.css | 9 +++++++++ LuaPlayground/build/debug/main.js | 8 +++++++- LuaPlayground/build/debug/scheme.html | 5 ++++- LuaPlayground/coffees/main.coffee | 5 +++-- LuaPlayground/css/main.css | 9 +++++++++ LuaPlayground/project.apj | 2 +- 7 files changed, 37 insertions(+), 6 deletions(-) diff --git a/LuaPlayground/assets/scheme.html b/LuaPlayground/assets/scheme.html index c7e664d..2c2ac8a 100644 --- a/LuaPlayground/assets/scheme.html +++ b/LuaPlayground/assets/scheme.html @@ -1,7 +1,10 @@
- + + + +
\ No newline at end of file diff --git a/LuaPlayground/build/debug/main.css b/LuaPlayground/build/debug/main.css index 9784767..6bd2b73 100644 --- a/LuaPlayground/build/debug/main.css +++ b/LuaPlayground/build/debug/main.css @@ -17,3 +17,12 @@ afx-app-window[data-id="LuaPlayground"] afx-resizer{ background-color: #2f3129; border-right: 0; } +afx-app-window[data-id="LuaPlayground"] afx-hbox[data-id="bottom-vbox"] { + background-color:#2f3129; +} +afx-app-window[data-id="LuaPlayground"] afx-hbox[data-id="bottom-vbox"] afx-button button{ + background-color:#2f3129; + color:white; + border:0; + border-radius: 0; +} \ No newline at end of file diff --git a/LuaPlayground/build/debug/main.js b/LuaPlayground/build/debug/main.js index 635b342..b83df93 100644 --- a/LuaPlayground/build/debug/main.js +++ b/LuaPlayground/build/debug/main.js @@ -23,7 +23,13 @@ this.on("vboxchange", function() { return me.editor.resize(); }); - return this.socket = null; + (this.find("log-clear")).set("onbtclick", function(e) { + return me.log("clean"); + }); + this.socket = null; + return this.bindKey("CTRL-R", function() { + return me.run(); + }); } menu() { diff --git a/LuaPlayground/build/debug/scheme.html b/LuaPlayground/build/debug/scheme.html index c7e664d..2c2ac8a 100644 --- a/LuaPlayground/build/debug/scheme.html +++ b/LuaPlayground/build/debug/scheme.html @@ -1,7 +1,10 @@
- + + + +
\ No newline at end of file diff --git a/LuaPlayground/coffees/main.coffee b/LuaPlayground/coffees/main.coffee index 2de1ca9..9beb35f 100644 --- a/LuaPlayground/coffees/main.coffee +++ b/LuaPlayground/coffees/main.coffee @@ -17,9 +17,10 @@ class LuaPlayground extends this.OS.GUI.BaseApplication @editor.setTheme "ace/theme/monokai" @on "vboxchange", () -> me.editor.resize() - + (@find "log-clear").set "onbtclick", (e) -> + me.log "clean" @socket = null - + @bindKey "CTRL-R", () -> me.run() menu: () -> me = @ menu = [{ diff --git a/LuaPlayground/css/main.css b/LuaPlayground/css/main.css index 9582186..7a503db 100644 --- a/LuaPlayground/css/main.css +++ b/LuaPlayground/css/main.css @@ -16,3 +16,12 @@ afx-app-window[data-id="LuaPlayground"] afx-resizer{ background-color: #2f3129; border-right: 0; } +afx-app-window[data-id="LuaPlayground"] afx-hbox[data-id="bottom-vbox"] { + background-color:#2f3129; +} +afx-app-window[data-id="LuaPlayground"] afx-hbox[data-id="bottom-vbox"] afx-button button{ + background-color:#2f3129; + color:white; + border:0; + border-radius: 0; +} \ No newline at end of file diff --git a/LuaPlayground/project.apj b/LuaPlayground/project.apj index 61e0ed8..e5e4dd5 100644 --- a/LuaPlayground/project.apj +++ b/LuaPlayground/project.apj @@ -1 +1 @@ -{"name":"LuaPlayground","root":"home://antosdk-apps/LuaPlayground","css":["css/main.css"],"javascripts":[],"coffees":["coffees/main.coffee"],"copies":["assets/scheme.html","package.json","README.md"]} \ No newline at end of file +{"name":"LuaPlayground","root":"home://workspace/LuaPlayground","css":["css/main.css"],"javascripts":[],"coffees":["coffees/main.coffee"],"copies":["assets/scheme.html","package.json","README.md"]} \ No newline at end of file