add larger circle icon

This commit is contained in:
Michele Balistreri 2024-05-16 17:06:00 +02:00
parent 49bbcfefe6
commit 08560f2a35
No known key found for this signature in database
GPG Key ID: E9567DA33A4F791A
4 changed files with 64 additions and 5 deletions

View File

@ -25,4 +25,15 @@ extern const font_t free_sans_18px;
extern const font_t plat_nomor_16px;
extern const font_t icons_28px;
typedef enum {
ICON_BATTERY_LOW = 0x80,
ICON_BATTERY_ONE = 0x81,
ICON_BATTERY_TWO = 0x82,
ICON_BATTERY_FULL = 0x83,
ICON_BATTERY_CHARGING = 0x84,
ICON_CIRCLE_EMPTY = 0x85,
ICON_CIRCLE_FULL = 0x86,
ICON_CIRCLE_EMPTY_LARGE = 0x87,
} icons_t;
#endif

View File

@ -21,7 +21,13 @@ const uint8_t icons_28px_bitmaps[] = {
0x03, 0xf0, 0x03, 0xff, 0x01, 0xff, 0xe0, 0xff, 0xfc, 0x7f, 0xff, 0x9f,
0xff, 0xef, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0x7f, 0xff, 0x9f, 0xff, 0xe3, 0xff, 0xf0, 0x7f, 0xf8,
0x0f, 0xfc, 0x00, 0xfc, 0x00,
0x0f, 0xfc, 0x00, 0xfc, 0x00, 0x00, 0xfe, 0x00, 0x03, 0xff, 0xc0, 0x07,
0x81, 0xe0, 0x1e, 0x00, 0x78, 0x18, 0x00, 0x18, 0x30, 0x00, 0x0c, 0x70,
0x00, 0x0e, 0x60, 0x00, 0x06, 0xe0, 0x00, 0x07, 0xc0, 0x00, 0x03, 0xc0,
0x00, 0x03, 0xc0, 0x00, 0x03, 0xc0, 0x00, 0x03, 0xc0, 0x00, 0x03, 0xc0,
0x00, 0x03, 0xe0, 0x00, 0x06, 0x60, 0x00, 0x06, 0x70, 0x00, 0x0e, 0x30,
0x00, 0x0c, 0x18, 0x00, 0x18, 0x1e, 0x00, 0x78, 0x07, 0x81, 0xe0, 0x03,
0xff, 0xc0, 0x00, 0x7f, 0x00,
};
const glyph_t icons_28px_glyphs[] = {
@ -32,6 +38,7 @@ const glyph_t icons_28px_glyphs[] = {
{ 124, 22, 14, 28, 3, -19}, // 0x84
{ 163, 18, 18, 28, 5, -17}, // 0x85
{ 204, 18, 18, 28, 5, -17}, // 0x86
{ 245, 24, 24, 28, 2, -23}, // 0x87
};
const font_t icons_28px = { icons_28px_bitmaps, icons_28px_glyphs, 0x80, 0x86, 24, 28 };
const font_t icons_28px = { icons_28px_bitmaps, icons_28px_glyphs, 0x80, 0x87, 24, 28 };

View File

@ -43,7 +43,13 @@ static app_err_t input_render_secret(uint16_t yOff, int len, int pos) {
char secret[len + 1];
for (int i = 0; i < len; i++) {
secret[i] = i < pos ? 0x86 : 0x85;
if (i < pos) {
secret[i] = ICON_CIRCLE_FULL;
} else if (i == pos) {
secret[i] = ICON_CIRCLE_EMPTY_LARGE;
} else {
secret[i] = ICON_CIRCLE_EMPTY;
}
}
secret[len] = '\0';

View File

@ -22,7 +22,7 @@ OS2Version: 4
OS2_WeightWidthSlopeOnly: 0
OS2_UseTypoMetrics: 1
CreationTime: 1711441984
ModificationTime: 1715866851
ModificationTime: 1715871607
PfmFamily: 17
TTFWeight: 400
TTFWidth: 5
@ -90,7 +90,7 @@ FitToEm: 0
WinInfo: 38 38 14
BeginPrivate: 0
EndPrivate
BeginChars: 1114115 10
BeginChars: 1114115 11
StartChar: .notdef
Encoding: 1114112 -1 0
@ -417,5 +417,40 @@ SplineSet
366.446289062 642.857421875 366.446289062 642.857421875 500 642.857421875 c 128,-1,1
EndSplineSet
EndChar
StartChar: uni0087
Encoding: 135 135 10
Width: 1000
LayerCount: 2
Fore
SplineSet
500 785.713867188 m 128,-1,1
597.401367188 785.713867188 597.401367188 785.713867188 679.627929688 738.069335938 c 128,-1,2
761.853515625 690.424804688 761.853515625 690.424804688 809.498046875 608.19921875 c 128,-1,3
857.142578125 525.97265625 857.142578125 525.97265625 857.142578125 428.571289062 c 128,-1,4
857.142578125 331.169921875 857.142578125 331.169921875 809.498046875 248.943359375 c 128,-1,5
761.853515625 166.717773438 761.853515625 166.717773438 679.627929688 119.073242188 c 128,-1,6
597.401367188 71.4287109375 597.401367188 71.4287109375 500 71.4287109375 c 128,-1,7
402.598632812 71.4287109375 402.598632812 71.4287109375 320.372070312 119.073242188 c 128,-1,8
238.146484375 166.717773438 238.146484375 166.717773438 190.501953125 248.943359375 c 128,-1,9
142.857421875 331.169921875 142.857421875 331.169921875 142.857421875 428.571289062 c 128,-1,10
142.857421875 525.97265625 142.857421875 525.97265625 190.501953125 608.19921875 c 128,-1,11
238.146484375 690.424804688 238.146484375 690.424804688 320.372070312 738.069335938 c 128,-1,0
402.598632812 785.713867188 402.598632812 785.713867188 500 785.713867188 c 128,-1,1
500 857.142578125 m 128,-1,13
383.263671875 857.142578125 383.263671875 857.142578125 284.575195312 799.913085938 c 128,-1,14
185.88671875 742.684570312 185.88671875 742.684570312 128.658203125 643.99609375 c 128,-1,15
71.4287109375 545.307617188 71.4287109375 545.307617188 71.4287109375 428.571289062 c 128,-1,16
71.4287109375 311.834960938 71.4287109375 311.834960938 128.658203125 213.146484375 c 128,-1,17
185.88671875 114.458007812 185.88671875 114.458007812 284.575195312 57.2294921875 c 128,-1,18
383.263671875 0 383.263671875 0 500 0 c 128,-1,19
616.736328125 0 616.736328125 0 715.424804688 57.2294921875 c 128,-1,20
814.11328125 114.458007812 814.11328125 114.458007812 871.341796875 213.146484375 c 128,-1,21
928.571289062 311.834960938 928.571289062 311.834960938 928.571289062 428.571289062 c 128,-1,22
928.571289062 545.307617188 928.571289062 545.307617188 871.341796875 643.99609375 c 128,-1,23
814.11328125 742.684570312 814.11328125 742.684570312 715.424804688 799.913085938 c 128,-1,12
616.736328125 857.142578125 616.736328125 857.142578125 500 857.142578125 c 128,-1,13
EndSplineSet
EndChar
EndChars
EndSplineFont