Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
fevieira27 authored Aug 12, 2023
1 parent c596eb0 commit 56b88bd
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 5 deletions.
4 changes: 4 additions & 0 deletions resources-approachs7042mm/bitmaps.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<resources>
<bitmap id="LauncherIcon" filename="images/MoveToBeActive.png"
dithering="none" />
</resources>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources-approachs7042mm/images/garmin5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions resources-epix2pro47mm/bitmaps.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<resources>
<bitmap id="LauncherIcon" filename="images/MoveToBeActive.png"
dithering="none" />
</resources>
Binary file added resources-epix2pro47mm/images/MoveToBeActive.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions settings/AnalogSettingsView.mc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class AnalogSettingsViewTest extends WatchUi.Menu2 {
function initialize() {
Menu2.initialize(null);

var currentVersion=425;
var currentVersion=430;
if (Storage.getValue(23)==null or Storage.getValue(23)<currentVersion){
Storage.setValue(23,currentVersion);

Expand Down Expand Up @@ -101,8 +101,8 @@ class Menu2TestMenu2Delegate extends WatchUi.Menu2InputDelegate { // Sub-menu De
} else if (item.getIcon() instanceof CustomThickness){ // Custom Thickness
item.setSubLabel((item.getIcon() as CustomThickness).nextState(item.getId()));
}
} else if (item instanceof WatchUi.ToggleMenuItem) {
Storage.setValue(item.getId(), item.isEnabled());
} else if (item instanceof WatchUi.ToggleMenuItem and item.getId() instanceof Number) {
Storage.setValue(item.getId() as Number, item.isEnabled());
}

WatchUi.requestUpdate(); // really needed?
Expand Down
2 changes: 1 addition & 1 deletion source/AnalogView.mc
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class AnalogView extends WatchUi.WatchFace
}
}

var currentVersion=425;
var currentVersion=430;

if (Storage.getValue(23)==null or Storage.getValue(23)<currentVersion){
//Storage.setValue(23,currentVersion);
Expand Down
8 changes: 7 additions & 1 deletion source/MtbA_functions.mc
Original file line number Diff line number Diff line change
Expand Up @@ -1695,7 +1695,12 @@ class MtbA_functions {
clockTime.hour = 12;
}
}
seconds = clockTime.hour.format("%02d") + ":" + clockTime.min.format("%02d");
seconds = clockTime.hour.format("%2d") + ":" + clockTime.min.format("%02d");
if (clockTime.hour < 10 and clockTime.hour > 0 and width>=240){
xText=xText-(dc.getTextDimensions(clockTime.hour.format("%2d"),fontSize)[0])/2;
} else {
xText=xText-(dc.getTextDimensions("1",fontSize)[0])/2;
}
}

// placeholder for implementation of Partial Update
Expand Down Expand Up @@ -1731,6 +1736,7 @@ class MtbA_functions {
dc.drawText(xText, yText, fontSize, seconds, Graphics.TEXT_JUSTIFY_LEFT);

if (type==2){ //digital clock
//dc.drawText(xText + dc.getTextWidthInPixels(seconds,fontSize), yText + fontSize*((dc.getFontHeight(Graphics.FONT_TINY)-dc.getFontHeight(Graphics.FONT_XTINY))*0.9 - (width>=360 ? 1 : 0)), 0, am_pm, Graphics.TEXT_JUSTIFY_LEFT);
dc.drawText(xText + dc.getTextWidthInPixels(seconds,fontSize), yText + fontSize*((dc.getFontHeight(Graphics.FONT_TINY)-dc.getFontHeight(Graphics.FONT_XTINY))*0.9 - (width>=360 ? 1 : 0)), 0, am_pm, Graphics.TEXT_JUSTIFY_LEFT);
}

Expand Down

0 comments on commit 56b88bd

Please sign in to comment.