Skip to content

Commit 5b222e9

Browse files
committed
Update submodule
1 parent d89e9e1 commit 5b222e9

File tree

13 files changed

+28
-25
lines changed

13 files changed

+28
-25
lines changed

Source/SmartBikeLights

Submodule SmartBikeLights updated 42 files
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<resources>
22
<font id="lightsFont" scope="glance" filename="../SmartBikeLights/Source/SmartBikeLights/resources/fonts/Lights48.fnt" antialias="true" />
3-
<font id="batteryFont" scope="glance" filename="../SmartBikeLights/Source/SmartBikeLights/resources/fonts/Battery24.fnt" antialias="false" />
3+
<font id="batteryFont" scope="glance" filename="../SmartBikeLights/Source/SmartBikeLights/resources/fonts/Battery24.fnt" antialias="true" />
44
<font id="controlModeFont" filename="../SmartBikeLights/Source/SmartBikeLights/resources/fonts/ControlMode18.fnt" antialias="true" />
55
</resources>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<resources>
22
<font id="lightsFont" scope="glance" filename="../SmartBikeLights/Source/SmartBikeLights/resources/fonts/Lights48.fnt" antialias="true" />
3-
<font id="batteryFont" scope="glance" filename="../SmartBikeLights/Source/SmartBikeLights/resources/fonts/Battery24.fnt" antialias="false" />
3+
<font id="batteryFont" scope="glance" filename="../SmartBikeLights/Source/SmartBikeLights/resources/fonts/Battery24.fnt" antialias="true" />
44
<font id="controlModeFont" filename="../SmartBikeLights/Source/SmartBikeLights/resources/fonts/ControlMode18.fnt" antialias="true" />
55
</resources>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<resources>
22
<font id="lightsFont" scope="glance" filename="../SmartBikeLights/Source/SmartBikeLights/resources/fonts/Lights48.fnt" antialias="true" />
3-
<font id="batteryFont" scope="glance" filename="../SmartBikeLights/Source/SmartBikeLights/resources/fonts/Battery24.fnt" antialias="false" />
3+
<font id="batteryFont" scope="glance" filename="../SmartBikeLights/Source/SmartBikeLights/resources/fonts/Battery24.fnt" antialias="true" />
44
<font id="controlModeFont" filename="../SmartBikeLights/Source/SmartBikeLights/resources/fonts/ControlMode18.fnt" antialias="true" />
55
</resources>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<resources>
22
<font id="lightsFont" scope="glance" filename="../SmartBikeLights/Source/SmartBikeLights/resources/fonts/Lights48.fnt" antialias="true" />
3-
<font id="batteryFont" scope="glance" filename="../SmartBikeLights/Source/SmartBikeLights/resources/fonts/Battery24.fnt" antialias="false" />
3+
<font id="batteryFont" scope="glance" filename="../SmartBikeLights/Source/SmartBikeLights/resources/fonts/Battery24.fnt" antialias="true" />
44
<font id="controlModeFont" filename="../SmartBikeLights/Source/SmartBikeLights/resources/fonts/ControlMode18.fnt" antialias="true" />
55
</resources>

Source/resources/resources.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<resources>
22
<font id="lightsFont" scope="glance" filename="../SmartBikeLights/Source/SmartBikeLights/resources/fonts/Lights32.fnt" antialias="true" />
3-
<font id="batteryFont" scope="glance" filename="../SmartBikeLights/Source/SmartBikeLights/resources/fonts/Battery16.fnt" antialias="false" />
3+
<font id="batteryFont" scope="glance" filename="../SmartBikeLights/Source/SmartBikeLights/resources/fonts/Battery16.fnt" antialias="true" />
44
<font id="controlModeFont" filename="../SmartBikeLights/Source/SmartBikeLights/resources/fonts/ControlMode12.fnt" antialias="true" />
55
</resources>

Source/source-generated/BikeLightsGlanceView.HighResolution.mc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,12 +229,13 @@ class BikeLightsGlanceView extends WatchUi.GlanceView {
229229

230230
// Do not draw the indicator in case the light is not connected anymore or an invalid status is given
231231
// The only way to detect whether the light is still connected is to check whether the its battery status is not null
232-
if (batteryStatus > 5) {
232+
if (batteryStatus > 6) {
233233
return;
234234
}
235235

236236
// Draw the battery indicator
237-
var color = batteryStatus == 5 /* BATT_STATUS_CRITICAL */ ? 0xFF0000 /* COLOR_RED */
237+
var color = batteryStatus == 6 /* BATT_STATUS_CHARGE */ ? fgColor
238+
: batteryStatus == 5 /* BATT_STATUS_CRITICAL */ ? 0xFF0000 /* COLOR_RED */
238239
: batteryStatus > 2 /* BATT_STATUS_GOOD */ ? 0xFF5500 /* COLOR_ORANGE */
239240
: 0x00AA00; /* COLOR_DK_GREEN */
240241
dc.setColor(color, -1 /* COLOR_TRANSPARENT */);

Source/source-generated/BikeLightsGlanceView.MediumResolution.mc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,12 +229,13 @@ class BikeLightsGlanceView extends WatchUi.GlanceView {
229229

230230
// Do not draw the indicator in case the light is not connected anymore or an invalid status is given
231231
// The only way to detect whether the light is still connected is to check whether the its battery status is not null
232-
if (batteryStatus > 5) {
232+
if (batteryStatus > 6) {
233233
return;
234234
}
235235

236236
// Draw the battery indicator
237-
var color = batteryStatus == 5 /* BATT_STATUS_CRITICAL */ ? 0xFF0000 /* COLOR_RED */
237+
var color = batteryStatus == 6 /* BATT_STATUS_CHARGE */ ? fgColor
238+
: batteryStatus == 5 /* BATT_STATUS_CRITICAL */ ? 0xFF0000 /* COLOR_RED */
238239
: batteryStatus > 2 /* BATT_STATUS_GOOD */ ? 0xFF5500 /* COLOR_ORANGE */
239240
: 0x00AA00; /* COLOR_DK_GREEN */
240241
dc.setColor(color, -1 /* COLOR_TRANSPARENT */);

Source/source-generated/BikeLightsView.Rectangle.mc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ class BikeLightsView extends WatchUi.View {
8686
protected var _lightY;
8787
protected var _titleY;
8888
protected var _offsetX;
89-
9089
// Parsed filters
9190
protected var _globalFilters;
9291

@@ -599,12 +598,13 @@ class BikeLightsView extends WatchUi.View {
599598

600599
// Do not draw the indicator in case the light is not connected anymore or an invalid status is given
601600
// The only way to detect whether the light is still connected is to check whether the its battery status is not null
602-
if (batteryStatus > 5) {
601+
if (batteryStatus > 6) {
603602
return;
604603
}
605604

606605
// Draw the battery indicator
607-
var color = batteryStatus == 5 /* BATT_STATUS_CRITICAL */ ? 0xFF0000 /* COLOR_RED */
606+
var color = batteryStatus == 6 /* BATT_STATUS_CHARGE */ ? fgColor
607+
: batteryStatus == 5 /* BATT_STATUS_CRITICAL */ ? 0xFF0000 /* COLOR_RED */
608608
: batteryStatus > 2 /* BATT_STATUS_GOOD */ ? 0xFF5500 /* COLOR_ORANGE */
609609
: 0x00AA00; /* COLOR_DK_GREEN */
610610
setTextColor(dc, color);

Source/source-generated/BikeLightsView.Round.mc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ class BikeLightsView extends WatchUi.View {
8686
protected var _lightY;
8787
protected var _titleY;
8888
protected var _offsetX;
89-
9089
// Parsed filters
9190
protected var _globalFilters;
9291

@@ -599,12 +598,13 @@ class BikeLightsView extends WatchUi.View {
599598

600599
// Do not draw the indicator in case the light is not connected anymore or an invalid status is given
601600
// The only way to detect whether the light is still connected is to check whether the its battery status is not null
602-
if (batteryStatus > 5) {
601+
if (batteryStatus > 6) {
603602
return;
604603
}
605604

606605
// Draw the battery indicator
607-
var color = batteryStatus == 5 /* BATT_STATUS_CRITICAL */ ? 0xFF0000 /* COLOR_RED */
606+
var color = batteryStatus == 6 /* BATT_STATUS_CHARGE */ ? fgColor
607+
: batteryStatus == 5 /* BATT_STATUS_CRITICAL */ ? 0xFF0000 /* COLOR_RED */
608608
: batteryStatus > 2 /* BATT_STATUS_GOOD */ ? 0xFF5500 /* COLOR_ORANGE */
609609
: 0x00AA00; /* COLOR_DK_GREEN */
610610
setTextColor(dc, color);

0 commit comments

Comments
 (0)