Skip to content

Commit

Permalink
Fix Issues2
Browse files Browse the repository at this point in the history
Incorrect second display on fenix 5
(#2)
  • Loading branch information
zRenard committed Mar 31, 2020
1 parent 46e3bf1 commit 451d41b
Show file tree
Hide file tree
Showing 7 changed files with 246 additions and 195 deletions.
2 changes: 1 addition & 1 deletion bin/zRenardWatch2-settings.json

Large diffs are not rendered by default.

Binary file modified bin/zRenardWatch2.prg
Binary file not shown.
427 changes: 237 additions & 190 deletions bin/zRenardWatch2.prg.debug.xml

Large diffs are not rendered by default.

Binary file added dist/zRenardWatch2.iq
Binary file not shown.
2 changes: 1 addition & 1 deletion manifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!-- This is a generated file. It is highly recommended that you DO NOT edit this file. --><iq:manifest xmlns:iq="http://www.garmin.com/xml/connectiq" version="3">
<iq:application entry="zRenardWatch2App" id="397b4d3ca6a44ceb9ba33ed90adb9ef4" launcherIcon="@Drawables.LauncherIcon" minSdkVersion="3.0.0" name="@Strings.AppName" type="watchface" version="1.3.0">
<iq:application entry="zRenardWatch2App" id="397b4d3ca6a44ceb9ba33ed90adb9ef4" launcherIcon="@Drawables.LauncherIcon" minSdkVersion="3.0.0" name="@Strings.AppName" type="watchface" version="1.3.1">
<iq:products>
<iq:product id="fenix5"/>
<iq:product id="fenix5plus"/>
Expand Down
2 changes: 2 additions & 0 deletions resources-fre/strings/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
<string id="ForegroundColorTitle">Couleur du texte</string>
<string id="ForegroundColorHoursTitle">Couleur du texte des heures</string>
<string id="ForegroundColorMinutesTitle">Couleur du texte des minutes</string>
<string id="ForegroundColorSecondsTitle">Couleur du texte des secondes</string>
<string id="HighLightColorTitle">Couleur de la date</string>

<string id="ShowSecondsTitle">Affiche les secondes</string>
<string id="LeadingZeroTitle">Placer un zéro non significatif devant les heures, minutes et la date</string>
<string id="UseSleepModeTitle">Masque la date et les notifications en mode repos</string>
<string id="UltraSleepModeTitle">Si le niveau de batterie est critique, l'écran devient entièrement noir, et la montre est affiché uniquement en dehors du mode repos.</string>
Expand Down
8 changes: 5 additions & 3 deletions source/zRenardWatch2View.mc
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,13 @@ class zRenardWatch2View extends WatchUi.WatchFace {
var width = dc.getWidth();
var height = dc.getHeight();
var fgSC = Application.getApp().getProperty("ForegroundColorSeconds");

dc.setClip((width / 2)+45,(height/2)+7,45,Graphics.getFontHeight(Graphics.FONT_NUMBER_MILD ));
var bgC = Application.getApp().getProperty("BackgroundColor");
dc.setColor(fgSC,bgC);

dc.setClip((width / 2)+45,(height/2)+15,45,Graphics.getFontHeight(Graphics.FONT_NUMBER_MILD )+5);
dc.clear();
// dc.setColor(Graphics.COLOR_PINK,bgC);
// dc.drawRectangle((width / 2)+45,(height/2)+15,45,Graphics.getFontHeight(Graphics.FONT_NUMBER_MILD )+5);
dc.setColor(fgSC,bgC);
dc.drawText( (width / 2)+40+30, (height/2)+28-Graphics.getFontHeight(Graphics.FONT_NUMBER_MILD )/2, Graphics.FONT_NUMBER_MILD , mySecondes, Graphics.TEXT_JUSTIFY_CENTER);
}
}
Expand Down

0 comments on commit 451d41b

Please sign in to comment.