Add the on-device data field catalogue, always-on mode, and real icons
Fields 75 selectable fields across date/time, activity, body, system, environment, weather and custom text, numbered to match watchface.io/docs/datafields so the two catalogues line up. All four slots (both top, both bottom) pick from the same table and the bottom captions follow the selection. tools/gen_fields.py owns the table and emits FieldTable.mc, settings.xml and both languages' strings, so those cannot drift apart. Fields.Ctx fetches each API at most once per draw, and only if some slot asks -- the forecast, user profile and sensor history lookups are lazy. The rest of that catalogue is deliberately absent: OpenWeatherMap and StormGlass need network calls and user API keys, the per-sport weekly and 28-day aggregates come from a phone-side Garmin Connect integration rather than any on-device API, and the app complications need those apps installed. README section 7 lists what was left out and why. Permissions UserProfile and SensorHistory are now declared; without them resting heart rate, VO2 max, pulse ox and body battery throw at runtime. Sensor turns out to be rejected outright for type="watchface", so altitude and pressure read from Activity.Info instead. Always-on display AMOLED devices need the lit-pixel count cut while asleep. drawAmbient drops the band fill and the unlit ticks, dims what remains, hides the complications, and walks the layout within +/-4 px per minute so nothing burns in. Gated on requiresBurnInProtection, so MIP devices are untouched. Icons The comps' sunrise and weather icons have two- and three-pixel features. Rebuilding them from circles and lines looked right at 454 px and turned to mush at 280. They are now rasterised from the design paths once per screen width and tinted with drawBitmap2(:tintColor) -- which needs packingFormat="png", since a palettised source is refused at runtime. Launcher icons are generated at the five sizes the devices ask for. All 17 devices build; checked on fenix847mm and enduro3 in the simulator. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -10,10 +10,20 @@
|
||||
<string id="SettingRightTop">右上数据</string>
|
||||
<string id="SettingBottomLeft">左下数据</string>
|
||||
<string id="SettingBottomRight">右下数据</string>
|
||||
<string id="SettingTempUnit">温度单位</string>
|
||||
<string id="SettingAltOffset1">第二时区 1(相对本地分钟数)</string>
|
||||
<string id="SettingAltOffset2">第二时区 2(相对本地分钟数)</string>
|
||||
<string id="SettingCustom1">自定义文字 1</string>
|
||||
<string id="SettingCustom2">自定义文字 2</string>
|
||||
<string id="SettingCustom3">自定义文字 3</string>
|
||||
<string id="SettingShowTop">显示顶部一行</string>
|
||||
<string id="SettingShowBand">显示日期带</string>
|
||||
<string id="SettingShowBottom">显示底部一行</string>
|
||||
|
||||
<string id="TempUnitAuto">跟随手表</string>
|
||||
<string id="TempUnitC">摄氏度 (°C)</string>
|
||||
<string id="TempUnitF">华氏度 (°F)</string>
|
||||
|
||||
<string id="ThemeEmber">1 · 余烬</string>
|
||||
<string id="ThemeAurora">2 · 极光</string>
|
||||
<string id="ThemeBrass">3 · 黄铜</string>
|
||||
@@ -22,32 +32,9 @@
|
||||
<string id="ThemeAcid">6 · 酸绿</string>
|
||||
<string id="ThemeKelp">7 · 海藻</string>
|
||||
|
||||
<string id="MetricSteps">步数</string>
|
||||
<string id="MetricCalories">卡路里</string>
|
||||
<string id="MetricDistance">距离</string>
|
||||
<string id="MetricFloors">楼层</string>
|
||||
<string id="MetricMoveBar">动动条</string>
|
||||
|
||||
<string id="FieldWeather">气温</string>
|
||||
<string id="FieldHiLo">最高 / 最低气温</string>
|
||||
<string id="FieldSunrise">日出</string>
|
||||
<string id="FieldSunset">日落</string>
|
||||
<string id="FieldCalories">卡路里</string>
|
||||
<string id="FieldSteps">步数</string>
|
||||
<string id="FieldDistance">距离</string>
|
||||
<string id="FieldFloors">楼层</string>
|
||||
<string id="FieldBattery">电量</string>
|
||||
<string id="FieldHeartRate">心率</string>
|
||||
|
||||
<!-- 表盘上的文案。逗号分隔的列表在运行时拆分。 -->
|
||||
<string id="DowNames">周日,周一,周二,周三,周四,周五,周六</string>
|
||||
<string id="MonNames">1月,2月,3月,4月,5月,6月,7月,8月,9月,10月,11月,12月</string>
|
||||
<string id="DateFormat">$1$$2$日</string>
|
||||
<string id="Meridiem">上午,下午</string>
|
||||
<string id="FieldLabels">气温,卡路里,步数,距离,楼层,电量,日出,日落,高低温,心率</string>
|
||||
|
||||
<string id="SettingTempUnit">温度单位</string>
|
||||
<string id="TempUnitAuto">跟随手表</string>
|
||||
<string id="TempUnitC">摄氏度 (°C)</string>
|
||||
<string id="TempUnitF">华氏度 (°F)</string>
|
||||
</strings>
|
||||
|
||||
Reference in New Issue
Block a user