Skip to content

Commit 56b88bd

Browse files
authored
Add files via upload
1 parent c596eb0 commit 56b88bd

File tree

8 files changed

+19
-5
lines changed

8 files changed

+19
-5
lines changed

resources-approachs7042mm/bitmaps.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<resources>
2+
<bitmap id="LauncherIcon" filename="images/MoveToBeActive.png"
3+
dithering="none" />
4+
</resources>
Loading
4.11 KB
Loading

resources-epix2pro47mm/bitmaps.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<resources>
2+
<bitmap id="LauncherIcon" filename="images/MoveToBeActive.png"
3+
dithering="none" />
4+
</resources>
5.77 KB
Loading

settings/AnalogSettingsView.mc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class AnalogSettingsViewTest extends WatchUi.Menu2 {
1818
function initialize() {
1919
Menu2.initialize(null);
2020

21-
var currentVersion=425;
21+
var currentVersion=430;
2222
if (Storage.getValue(23)==null or Storage.getValue(23)<currentVersion){
2323
Storage.setValue(23,currentVersion);
2424

@@ -101,8 +101,8 @@ class Menu2TestMenu2Delegate extends WatchUi.Menu2InputDelegate { // Sub-menu De
101101
} else if (item.getIcon() instanceof CustomThickness){ // Custom Thickness
102102
item.setSubLabel((item.getIcon() as CustomThickness).nextState(item.getId()));
103103
}
104-
} else if (item instanceof WatchUi.ToggleMenuItem) {
105-
Storage.setValue(item.getId(), item.isEnabled());
104+
} else if (item instanceof WatchUi.ToggleMenuItem and item.getId() instanceof Number) {
105+
Storage.setValue(item.getId() as Number, item.isEnabled());
106106
}
107107

108108
WatchUi.requestUpdate(); // really needed?

source/AnalogView.mc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class AnalogView extends WatchUi.WatchFace
4343
}
4444
}
4545

46-
var currentVersion=425;
46+
var currentVersion=430;
4747

4848
if (Storage.getValue(23)==null or Storage.getValue(23)<currentVersion){
4949
//Storage.setValue(23,currentVersion);

source/MtbA_functions.mc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1695,7 +1695,12 @@ class MtbA_functions {
16951695
clockTime.hour = 12;
16961696
}
16971697
}
1698-
seconds = clockTime.hour.format("%02d") + ":" + clockTime.min.format("%02d");
1698+
seconds = clockTime.hour.format("%2d") + ":" + clockTime.min.format("%02d");
1699+
if (clockTime.hour < 10 and clockTime.hour > 0 and width>=240){
1700+
xText=xText-(dc.getTextDimensions(clockTime.hour.format("%2d"),fontSize)[0])/2;
1701+
} else {
1702+
xText=xText-(dc.getTextDimensions("1",fontSize)[0])/2;
1703+
}
16991704
}
17001705

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

17331738
if (type==2){ //digital clock
1739+
//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);
17341740
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);
17351741
}
17361742

0 commit comments

Comments
 (0)