Merge pull request #732 from awkirk71/master

Sliding Clock BUGFIX: widgets interfering with clock drawing
pull/733/head^2
Gordon Williams 2021-04-28 13:29:37 +01:00 committed by GitHub
commit 16a16be5d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

View File

@ -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",

View File

@ -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

View File

@ -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]);