dragboard v0.04

master
thyttan 2022-04-19 23:33:09 +02:00
parent fcbb05753b
commit 1bc9329014
3 changed files with 3 additions and 8 deletions

View File

@ -1,3 +1,4 @@
0.01: New App! 0.01: New App!
0.02: Added some missing code. 0.02: Added some missing code.
0.03: Made the code shorter and somewhat more readable by writing some functions. Also made it work as a library where it returns the text once finished. The keyboard is now made to exit correctly when the 'back' event is called. The keyboard now uses theme colors correctly, although it still looks best with dark theme. The numbers row is now solidly green - except for highlights. 0.03: Made the code shorter and somewhat more readable by writing some functions. Also made it work as a library where it returns the text once finished. The keyboard is now made to exit correctly when the 'back' event is called. The keyboard now uses theme colors correctly, although it still looks best with dark theme. The numbers row is now solidly green - except for highlights.
0.04: Now displays the opened text string at launch.

View File

@ -44,12 +44,6 @@ exports.input = function(options) {
g.fillRect(NUMPADDING, g.getHeight()-rectHeight*4/3, g.getWidth()-NUMPADDING, g.getHeight()-rectHeight*2/3); g.fillRect(NUMPADDING, g.getHeight()-rectHeight*4/3, g.getWidth()-NUMPADDING, g.getHeight()-rectHeight*2/3);
} }
function initMarker() {
g.setColor(0.5,0,0);
g.fillRect(3,4+20,11,13+20);
g.setColor(HLCOLOR);
}
function updateTopString() { function updateTopString() {
"ram" "ram"
g.setColor(BGCOLOR); g.setColor(BGCOLOR);
@ -64,7 +58,7 @@ exports.input = function(options) {
drawAbcRow(); drawAbcRow();
drawNumRow(); drawNumRow();
initMarker(); updateTopString();
var abcHL; var abcHL;
var abcHLPrev = -10; var abcHLPrev = -10;

View File

@ -1,6 +1,6 @@
{ "id": "dragboard", { "id": "dragboard",
"name": "Dragboard", "name": "Dragboard",
"version":"0.03", "version":"0.04",
"description": "A library for text input via swiping keyboard", "description": "A library for text input via swiping keyboard",
"icon": "app.png", "icon": "app.png",
"type":"textinput", "type":"textinput",