Skip to content

Commit 2b9a378

Browse files
devuterianspr4bhuamcolashJoshsg3claude
committed
fw: port Korean UI and requested features to v4.37
Integrate the Korean catalog from devuterian/pebble-korean-language-pack with built-in TUMBLED Lite Korean/Japanese font subsets for Time 2. Keep the existing flash layout and generate a 36px fallback from 28px. Port upstream PRs coredevices#1156, coredevices#1119 and coredevices#1982: charge limiting, system dark mode and six vibration patterns. Preserve current weather localization and settings layout behavior while resolving the older patches. Expose the charge-limit toggle on the watch, serialize evaluations on KernelMain, restore charging after unplug, and resume at 77 percent. Translate new controls into Korean. Retain the palm-to-watchface change. Add regression coverage for charge limiting and dark-mode decisions. Co-authored-by: Shashvat Prabhu <shashvatprabhu2006@gmail.com> Co-authored-by: Andrew McOlash <amcolash@gmail.com> Co-authored-by: Joshua Galea <joshua.galea@gmail.com> Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Antigravity <noreply@google.com> Co-authored-by: GPT-6 Astra <noreply@openai.com> Signed-off-by: devuterian <49933873+devuterian@users.noreply.github.com>
1 parent 4d6515f commit 2b9a378

105 files changed

Lines changed: 5571 additions & 236 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build-qemu.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Build Firmware (QEMU)
22

33
on:
4+
workflow_dispatch:
45
push:
56
branches: [main]
67
pull_request:
@@ -13,7 +14,7 @@ jobs:
1314
permissions:
1415
pull-requests: read
1516
outputs:
16-
should-build: ${{ github.event_name == 'push' || steps.filter.outputs.src == 'true' }}
17+
should-build: ${{ github.event_name != 'pull_request' || steps.filter.outputs.src == 'true' }}
1718
steps:
1819
- uses: dorny/paths-filter@v4
1920
if: github.event_name == 'pull_request'
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/* SPDX-FileCopyrightText: 2026 Shashvat Prabhu */
2+
/* SPDX-License-Identifier: Apache-2.0 */
3+
4+
#pragma once
5+
6+
#include "pbl/services/battery/battery_state.h"
7+
8+
// The battery charge limit service optionally stops charging at 80% to reduce battery
9+
// degradation from sustained high charge levels. Charging resumes if the level drops back
10+
// to 77% or lower.
11+
12+
void battery_charge_limit_init(void);
13+
14+
void battery_charge_limit_evaluate(PreciseBatteryChargeState state);
15+
16+
bool battery_charge_limit_is_active(void);
17+
18+
//! Queue an evaluation on KernelMain after the preference changes.
19+
void battery_charge_limit_refresh(void);

include/pbl/services/vibes/vibes.def

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,9 @@ VIBE_DEF(11, Reveille, "Reveille", AlertType_Alarms, RESOURCE_ID_VIBE_SCORE_REVE
1313
VIBE_DEF(12, Mario, "Mario", AlertType_All, RESOURCE_ID_VIBE_SCORE_MARIO)
1414
VIBE_DEF(13, AlarmsLPM, "ALARMS LPM", AlertType_AlarmsLPM, RESOURCE_ID_VIBE_SCORE_ALARM_LPM)
1515
VIBE_DEF(14, Gentle, i18n_noop("Gentle"), AlertType_Alarms, RESOURCE_ID_VIBE_SCORE_GENTLE)
16+
VIBE_DEF(15, DoublePulseMedium, i18n_noop("Double Pulse Medium"), AlertType_All, RESOURCE_ID_VIBE_SCORE_DOUBLE_PULSE_MEDIUM)
17+
VIBE_DEF(16, PebbleMorse, i18n_noop("Pebble Morse"), AlertType_All, RESOURCE_ID_VIBE_SCORE_PEBBLE_MORSE)
18+
VIBE_DEF(17, Heartbeat, i18n_noop("Heartbeat"), AlertType_All, RESOURCE_ID_VIBE_SCORE_HEARTBEAT)
19+
VIBE_DEF(18, DoubleTap, i18n_noop("Double Tap"), AlertType_All, RESOURCE_ID_VIBE_SCORE_DOUBLE_TAP)
20+
VIBE_DEF(19, Wave, i18n_noop("Wave"), AlertType_All, RESOURCE_ID_VIBE_SCORE_WAVE)
21+
VIBE_DEF(20, Imperial, i18n_noop("Imperial"), AlertType_All, RESOURCE_ID_VIBE_SCORE_IMPERIAL)

resources/normal/asterix/resource_map.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,36 @@
301301
"name": "VIBE_SCORE_GENTLE",
302302
"file": "normal/snowy/vibes/gentle.json"
303303
},
304+
{
305+
"type": "vibe",
306+
"name": "VIBE_SCORE_DOUBLE_PULSE_MEDIUM",
307+
"file": "normal/snowy/vibes/double_pulse_medium.json"
308+
},
309+
{
310+
"type": "vibe",
311+
"name": "VIBE_SCORE_PEBBLE_MORSE",
312+
"file": "normal/snowy/vibes/pebble_morse.json"
313+
},
314+
{
315+
"type": "vibe",
316+
"name": "VIBE_SCORE_HEARTBEAT",
317+
"file": "normal/snowy/vibes/heartbeat.json"
318+
},
319+
{
320+
"type": "vibe",
321+
"name": "VIBE_SCORE_DOUBLE_TAP",
322+
"file": "normal/snowy/vibes/double_tap.json"
323+
},
324+
{
325+
"type": "vibe",
326+
"name": "VIBE_SCORE_WAVE",
327+
"file": "normal/snowy/vibes/wave.json"
328+
},
329+
{
330+
"type": "vibe",
331+
"name": "VIBE_SCORE_IMPERIAL",
332+
"file": "normal/snowy/vibes/imperial.json"
333+
},
304334
{
305335
"type": "png",
306336
"name": "SMART_ALARM_ICON_BLACK",
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
The SIL Open Font License version 1.1 is copied below, and is also
2+
available with a FAQ at http://scripts.sil.org/OFL.
3+
4+
5+
-----------------------------------------------------------
6+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
7+
-----------------------------------------------------------
8+
9+
PREAMBLE
10+
The goals of the Open Font License (OFL) are to stimulate worldwide
11+
development of collaborative font projects, to support the font creation
12+
efforts of academic and linguistic communities, and to provide a free and
13+
open framework in which fonts may be shared and improved in partnership
14+
with others.
15+
16+
The OFL allows the licensed fonts to be used, studied, modified and
17+
redistributed freely as long as they are not sold by themselves. The
18+
fonts, including any derivative works, can be bundled, embedded,
19+
redistributed and/or sold with any software provided that any reserved
20+
names are not used by derivative works. The fonts and derivatives,
21+
however, cannot be released under any other type of license. The
22+
requirement for fonts to remain under this license does not apply
23+
to any document created using the fonts or their derivatives.
24+
25+
DEFINITIONS
26+
"Font Software" refers to the set of files released by the Copyright
27+
Holder(s) under this license and clearly marked as such. This may
28+
include source files, build scripts and documentation.
29+
30+
"Reserved Font Name" refers to any names specified as such after the
31+
copyright statement(s).
32+
33+
"Original Version" refers to the collection of Font Software components as
34+
distributed by the Copyright Holder(s).
35+
36+
"Modified Version" refers to any derivative made by adding to, deleting,
37+
or substituting -- in part or in whole -- any of the components of the
38+
Original Version, by changing formats or by porting the Font Software to a
39+
new environment.
40+
41+
"Author" refers to any designer, engineer, programmer, technical
42+
writer or other person who contributed to the Font Software.
43+
44+
PERMISSION & CONDITIONS
45+
Permission is hereby granted, free of charge, to any person obtaining
46+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
47+
redistribute, and sell modified and unmodified copies of the Font
48+
Software, subject to the following conditions:
49+
50+
1) Neither the Font Software nor any of its individual components,
51+
in Original or Modified Versions, may be sold by itself.
52+
53+
2) Original or Modified Versions of the Font Software may be bundled,
54+
redistributed and/or sold with any software, provided that each copy
55+
contains the above copyright notice and this license. These can be
56+
included either as stand-alone text files, human-readable headers or
57+
in the appropriate machine-readable metadata fields within text or
58+
binary files as long as those fields can be easily viewed by the user.
59+
60+
3) No Modified Version of the Font Software may use the Reserved Font
61+
Name(s) unless explicit written permission is granted by the corresponding
62+
Copyright Holder. This restriction only applies to the primary font name as
63+
presented to the users.
64+
65+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
66+
Software shall not be used to promote, endorse or advertise any
67+
Modified Version, except to acknowledge the contribution(s) of the
68+
Copyright Holder(s) and the Author(s) or with their explicit written
69+
permission.
70+
71+
5) The Font Software, modified or unmodified, in part or in whole,
72+
must be distributed entirely under this license, and must not be
73+
distributed under any other license. The requirement for fonts to
74+
remain under this license does not apply to any document created
75+
using the Font Software.
76+
77+
TERMINATION
78+
This license becomes null and void if any of the above conditions are
79+
not met.
80+
81+
DISCLAIMER
82+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
83+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
84+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
85+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
86+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
87+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
88+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
89+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
90+
OTHER DEALINGS IN THE FONT SOFTWARE.
69.3 KB
Binary file not shown.
90.1 KB
Binary file not shown.
94.7 KB
Binary file not shown.
97.2 KB
Binary file not shown.
141 KB
Binary file not shown.

0 commit comments

Comments
 (0)