mirror of https://github.com/espruino/BangleApps
Merge pull request #732 from awkirk71/master
Sliding Clock BUGFIX: widgets interfering with clock drawingpull/733/head^2
commit
16a16be5d8
|
@ -219,7 +219,7 @@
|
|||
{ "id": "slidingtext",
|
||||
"name": "Sliding Clock",
|
||||
"icon": "slidingtext.png",
|
||||
"version":"0.04",
|
||||
"version":"0.05",
|
||||
"description": "Inspired by the Pebble sliding clock, old times are scrolled off the screen and new times on. You are also able to change language on the fly so you can see the time written in other languages using button 1. Currently English, French, Japanese, Spanish and German are supported",
|
||||
"tags": "clock",
|
||||
"type":"clock",
|
||||
|
|
|
@ -2,3 +2,4 @@
|
|||
0.02: Color Themes, Smoother scrolling
|
||||
0.03: Added Spanish Language
|
||||
0.04: Added German Language
|
||||
0.05: BUGFIX: pedometer widget interfered with the clock Font Alignment
|
||||
|
|
|
@ -135,11 +135,13 @@ class ShiftText {
|
|||
}
|
||||
}
|
||||
show() {
|
||||
g.setFontAlign(-1,-1,0);
|
||||
g.setFont(this.font_name,this.font_size);
|
||||
g.setColor(this.color[0],this.color[1],this.color[2]);
|
||||
g.drawString(this.txt, this.x, this.y);
|
||||
}
|
||||
hide(){
|
||||
g.setFontAlign(-1,-1,0);
|
||||
g.setFont(this.font_name,this.font_size);
|
||||
//console.log("bgcolor:" + this.bg_color);
|
||||
g.setColor(this.bg_color[0],this.bg_color[1],this.bg_color[2]);
|
||||
|
|
Loading…
Reference in New Issue