Skip to content

Commit e281698

Browse files
authored
Merge pull request #20 from hellcp/emery
Emery support
2 parents 5a24644 + a9a92e5 commit e281698

37 files changed

Lines changed: 485 additions & 113 deletions

app/package.json

Lines changed: 36 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "Bobby",
33
"author": "Rebble",
4-
"version": "1.4.0",
4+
"version": "1.5.0",
55
"keywords": [
66
"pebble-app"
77
],
88
"private": true,
99
"dependencies": {
10-
"pebble-clay": "^1.0.4",
10+
"@rebble/clay": "^1.0.6",
1111
"pebble-events": "^1.2.0"
1212
},
1313
"pebble": {
@@ -21,7 +21,8 @@
2121
],
2222
"targetPlatforms": [
2323
"basalt",
24-
"diorite"
24+
"diorite",
25+
"emery"
2526
],
2627
"watchapp": {
2728
"watchface": false
@@ -332,7 +333,8 @@
332333
"name": "MENU_ICON_ABOUT",
333334
"type": "bitmap",
334335
"targetPlatforms": [
335-
"basalt"
336+
"basalt",
337+
"emery"
336338
]
337339
},
338340
{
@@ -349,7 +351,8 @@
349351
"name": "MENU_ICON_ALARMS",
350352
"type": "bitmap",
351353
"targetPlatforms": [
352-
"basalt"
354+
"basalt",
355+
"emery"
353356
]
354357
},
355358
{
@@ -366,7 +369,8 @@
366369
"name": "MENU_ICON_FEEDBACK",
367370
"type": "bitmap",
368371
"targetPlatforms": [
369-
"basalt"
372+
"basalt",
373+
"emery"
370374
]
371375
},
372376
{
@@ -383,7 +387,8 @@
383387
"name": "MENU_ICON_LEGAL",
384388
"type": "bitmap",
385389
"targetPlatforms": [
386-
"basalt"
390+
"basalt",
391+
"emery"
387392
]
388393
},
389394
{
@@ -400,7 +405,8 @@
400405
"name": "MENU_ICON_QUOTA",
401406
"type": "bitmap",
402407
"targetPlatforms": [
403-
"basalt"
408+
"basalt",
409+
"emery"
404410
]
405411
},
406412
{
@@ -417,7 +423,8 @@
417423
"name": "MENU_ICON_REMINDERS",
418424
"type": "bitmap",
419425
"targetPlatforms": [
420-
"basalt"
426+
"basalt",
427+
"emery"
421428
]
422429
},
423430
{
@@ -434,7 +441,8 @@
434441
"name": "MENU_ICON_TIMERS",
435442
"type": "bitmap",
436443
"targetPlatforms": [
437-
"basalt"
444+
"basalt",
445+
"emery"
438446
]
439447
},
440448
{
@@ -482,7 +490,8 @@
482490
"type": "bitmap",
483491
"memoryFormat": "2BitPalette",
484492
"targetPlatforms": [
485-
"basalt"
493+
"basalt",
494+
"emery"
486495
]
487496
},
488497
{
@@ -503,6 +512,22 @@
503512
"file": "text/changelog/1.4.txt",
504513
"name": "CHANGELOG_1_4",
505514
"type": "raw"
515+
},
516+
{
517+
"file": "fonts/GOTHIC_36.pbf",
518+
"name": "FONT_GOTHIC_36",
519+
"type": "raw",
520+
"targetPlatforms": [
521+
"emery"
522+
]
523+
},
524+
{
525+
"file": "fonts/GOTHIC_36_BOLD.pbf",
526+
"name": "FONT_GOTHIC_36_BOLD",
527+
"type": "raw",
528+
"targetPlatforms": [
529+
"emery"
530+
]
506531
}
507532
]
508533
}
267 Bytes
Loading

app/resources/fonts/GOTHIC_36.pbf

4.29 KB
Binary file not shown.
4.28 KB
Binary file not shown.

app/resources/fonts/LICENSE

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
Copyright (c) 2026, AmberW (amberw26237@gmail.com),
2+
with Reserved Font Name GOTHIC_36 and GOTHIC_36_BOLD.
3+
4+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
5+
This license is copied below, and is also available with a FAQ at:
6+
https://openfontlicense.org
7+
8+
9+
-----------------------------------------------------------
10+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
11+
-----------------------------------------------------------
12+
13+
PREAMBLE
14+
The goals of the Open Font License (OFL) are to stimulate worldwide
15+
development of collaborative font projects, to support the font creation
16+
efforts of academic and linguistic communities, and to provide a free and
17+
open framework in which fonts may be shared and improved in partnership
18+
with others.
19+
20+
The OFL allows the licensed fonts to be used, studied, modified and
21+
redistributed freely as long as they are not sold by themselves. The
22+
fonts, including any derivative works, can be bundled, embedded,
23+
redistributed and/or sold with any software provided that any reserved
24+
names are not used by derivative works. The fonts and derivatives,
25+
however, cannot be released under any other type of license. The
26+
requirement for fonts to remain under this license does not apply
27+
to any document created using the fonts or their derivatives.
28+
29+
DEFINITIONS
30+
"Font Software" refers to the set of files released by the Copyright
31+
Holder(s) under this license and clearly marked as such. This may
32+
include source files, build scripts and documentation.
33+
34+
"Reserved Font Name" refers to any names specified as such after the
35+
copyright statement(s).
36+
37+
"Original Version" refers to the collection of Font Software components as
38+
distributed by the Copyright Holder(s).
39+
40+
"Modified Version" refers to any derivative made by adding to, deleting,
41+
or substituting -- in part or in whole -- any of the components of the
42+
Original Version, by changing formats or by porting the Font Software to a
43+
new environment.
44+
45+
"Author" refers to any designer, engineer, programmer, technical
46+
writer or other person who contributed to the Font Software.
47+
48+
PERMISSION & CONDITIONS
49+
Permission is hereby granted, free of charge, to any person obtaining
50+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
51+
redistribute, and sell modified and unmodified copies of the Font
52+
Software, subject to the following conditions:
53+
54+
1) Neither the Font Software nor any of its individual components,
55+
in Original or Modified Versions, may be sold by itself.
56+
57+
2) Original or Modified Versions of the Font Software may be bundled,
58+
redistributed and/or sold with any software, provided that each copy
59+
contains the above copyright notice and this license. These can be
60+
included either as stand-alone text files, human-readable headers or
61+
in the appropriate machine-readable metadata fields within text or
62+
binary files as long as those fields can be easily viewed by the user.
63+
64+
3) No Modified Version of the Font Software may use the Reserved Font
65+
Name(s) unless explicit written permission is granted by the corresponding
66+
Copyright Holder. This restriction only applies to the primary font name as
67+
presented to the users.
68+
69+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
70+
Software shall not be used to promote, endorse or advertise any
71+
Modified Version, except to acknowledge the contribution(s) of the
72+
Copyright Holder(s) and the Author(s) or with their explicit written
73+
permission.
74+
75+
5) The Font Software, modified or unmodified, in part or in whole,
76+
must be distributed entirely under this license, and must not be
77+
distributed under any other license. The requirement for fonts to
78+
remain under this license does not apply to any document created
79+
using the Font Software.
80+
81+
TERMINATION
82+
This license becomes null and void if any of the above conditions are
83+
not met.
84+
85+
DISCLAIMER
86+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
87+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
88+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
89+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
90+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
91+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
92+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
93+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
94+
OTHER DEALINGS IN THE FONT SOFTWARE.
95+
1.59 KB
Loading
169 Bytes
Binary file not shown.
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# New Features
2+
Bobby has been updated! We have some new features:
3+
## Support for Content Size
4+
Bobby will now follow the same scale setting as your system notifications! You can change the scale in Settings -> Notiications -> Text Size.
5+
## Native Core Time 2 resolution
6+
With new hardware comes new Bobby! The interface has been adapted to work with the new Core Time 2 hardware, to make it easier and more pleasant to use your favourite assistant on it. Huge thanks to AmberW who provided the fonts needed for the large text size option and the title screen!

app/src/c/alarms/alarm_window.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
*/
1616

1717
#include "alarm_window.h"
18+
#include "../util/fonts.h"
1819
#include "../util/style.h"
1920
#include "../util/vector_sequence_layer.h"
2021
#include "../util/result_window.h"
@@ -86,20 +87,21 @@ static void prv_window_load(Window *window) {
8687
AlarmWindowData* data = window_get_user_data(window);
8788
Layer* root_layer = window_get_root_layer(window);
8889
GRect rect = layer_get_bounds(root_layer);
90+
const FontsConfig *fonts = fonts_get_config();
8991
data->title_layer = btext_layer_create(GRect(0, STATUS_BAR_LAYER_HEIGHT, rect.size.w - ACTION_BAR_WIDTH, 70));
9092
if (data->name) {
9193
text_layer_set_text(data->title_layer, data->name);
9294
} else {
9395
text_layer_set_text(data->title_layer, data->is_timer ? "Time's up!" : "Alarm!");
9496
}
95-
text_layer_set_font(data->title_layer, fonts_get_system_font(FONT_KEY_GOTHIC_28_BOLD));
97+
text_layer_set_font(data->title_layer, fonts->title_font);
9698
text_layer_set_text_alignment(data->title_layer, GTextAlignmentCenter);
9799
text_layer_set_background_color(data->title_layer, GColorClear);
98100
layer_add_child(root_layer, (Layer *)data->title_layer);
99101
GSize title_size = text_layer_get_content_size(data->title_layer);
100102
int16_t remaining_height = rect.size.h - STATUS_BAR_LAYER_HEIGHT - title_size.h - 49;
101-
data->time_layer = btext_layer_create(GRect(0, STATUS_BAR_LAYER_HEIGHT + title_size.h + remaining_height / 2 - 22 / 2, rect.size.w - ACTION_BAR_WIDTH, 32));
102-
text_layer_set_font(data->time_layer, fonts_get_system_font(FONT_KEY_LECO_32_BOLD_NUMBERS));
103+
data->time_layer = btext_layer_create(GRect(0, STATUS_BAR_LAYER_HEIGHT + title_size.h + remaining_height / 2 - 22 / 2, rect.size.w - ACTION_BAR_WIDTH, fonts->content_font_cap * 2));
104+
text_layer_set_font(data->time_layer, fonts->content_font);
103105
text_layer_set_text_alignment(data->time_layer, GTextAlignmentCenter);
104106
text_layer_set_background_color(data->time_layer, GColorClear);
105107
layer_add_child(root_layer, (Layer *)data->time_layer);
@@ -263,4 +265,4 @@ static SadVibeScore *prv_load_vibe_score(bool is_timer) {
263265
}
264266
uint32_t resource_id = prv_resource_id_for_setting(vibe_setting);
265267
return sad_vibe_score_create_with_resource(resource_id);
266-
}
268+
}

0 commit comments

Comments
 (0)