From 85379b359cc0ffac0b113fd53bd2dbac8660c9a6 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Mon, 28 Aug 2023 15:01:09 +1000 Subject: Add some cool battery icons --- tools/fonts/mkfonts.sh | 23 +++++++++++++++++++++++ tools/icons/raw/battery_20.png | Bin 0 -> 617 bytes tools/icons/raw/battery_40.png | Bin 0 -> 617 bytes tools/icons/raw/battery_60.png | Bin 0 -> 618 bytes tools/icons/raw/battery_80.png | Bin 0 -> 622 bytes tools/icons/raw/battery_empty.png | Bin 0 -> 614 bytes tools/icons/raw/battery_full.png | Bin 0 -> 618 bytes tools/mkfonts.sh | 23 ----------------------- 8 files changed, 23 insertions(+), 23 deletions(-) create mode 100755 tools/fonts/mkfonts.sh create mode 100644 tools/icons/raw/battery_20.png create mode 100644 tools/icons/raw/battery_40.png create mode 100644 tools/icons/raw/battery_60.png create mode 100644 tools/icons/raw/battery_80.png create mode 100644 tools/icons/raw/battery_empty.png create mode 100644 tools/icons/raw/battery_full.png delete mode 100755 tools/mkfonts.sh (limited to 'tools') diff --git a/tools/fonts/mkfonts.sh b/tools/fonts/mkfonts.sh new file mode 100755 index 00000000..7888512a --- /dev/null +++ b/tools/fonts/mkfonts.sh @@ -0,0 +1,23 @@ +#!/bin/sh +# To install this tool: +# npm i lv_font_conv -g +lv_font_conv \ + --font fonts/fusion/fusion-pixel-12px-proportional.ttf \ + -r 0x2000-0x206F \ + -r 0x20-0x7F,0xA0-0xFF \ + -r 0x3000-0x303f,0x3040-0x309F,0x30A0-0x30FF,0xFF00-0xFFEF,0x4E00-0x9FAF \ + --size 12 \ + --bpp 1 --format lvgl -o font_fusion.c + +lv_font_conv \ + --font fonts/font-awesome/FontAwesome5-Solid+Brands+Regular.woff \ + -r 0xf244,0xf243,0xf242,0xf241,0xf240 `# battery indicators, empty->full` \ + -r 0xf104,0xf0d7 \ + -r 61441,61448,61451,61452,61452,61453,61457,61459,61461,61465 \ + -r 61468,61473,61478,61479,61480,61502,61512,61515,61516,61517 \ + -r 61521,61522,61523,61524,61543,61544,61550,61552,61553,61556 \ + -r 61559,61560,61561,61563,61587,61589,61636,61637,61639,61671 \ + -r 61674,61683,61724,61732,61787,61931,62016,62017,62018,62019 \ + -r 62020,62087,62099,62212,62189,62810,63426,63650 \ + --size 12 \ + --bpp 1 --format lvgl -o font_symbols.c diff --git a/tools/icons/raw/battery_20.png b/tools/icons/raw/battery_20.png new file mode 100644 index 00000000..9012376f Binary files /dev/null and b/tools/icons/raw/battery_20.png differ diff --git a/tools/icons/raw/battery_40.png b/tools/icons/raw/battery_40.png new file mode 100644 index 00000000..88a0b448 Binary files /dev/null and b/tools/icons/raw/battery_40.png differ diff --git a/tools/icons/raw/battery_60.png b/tools/icons/raw/battery_60.png new file mode 100644 index 00000000..d86c997a Binary files /dev/null and b/tools/icons/raw/battery_60.png differ diff --git a/tools/icons/raw/battery_80.png b/tools/icons/raw/battery_80.png new file mode 100644 index 00000000..344b3703 Binary files /dev/null and b/tools/icons/raw/battery_80.png differ diff --git a/tools/icons/raw/battery_empty.png b/tools/icons/raw/battery_empty.png new file mode 100644 index 00000000..c9176e8c Binary files /dev/null and b/tools/icons/raw/battery_empty.png differ diff --git a/tools/icons/raw/battery_full.png b/tools/icons/raw/battery_full.png new file mode 100644 index 00000000..57122a23 Binary files /dev/null and b/tools/icons/raw/battery_full.png differ diff --git a/tools/mkfonts.sh b/tools/mkfonts.sh deleted file mode 100755 index 7888512a..00000000 --- a/tools/mkfonts.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -# To install this tool: -# npm i lv_font_conv -g -lv_font_conv \ - --font fonts/fusion/fusion-pixel-12px-proportional.ttf \ - -r 0x2000-0x206F \ - -r 0x20-0x7F,0xA0-0xFF \ - -r 0x3000-0x303f,0x3040-0x309F,0x30A0-0x30FF,0xFF00-0xFFEF,0x4E00-0x9FAF \ - --size 12 \ - --bpp 1 --format lvgl -o font_fusion.c - -lv_font_conv \ - --font fonts/font-awesome/FontAwesome5-Solid+Brands+Regular.woff \ - -r 0xf244,0xf243,0xf242,0xf241,0xf240 `# battery indicators, empty->full` \ - -r 0xf104,0xf0d7 \ - -r 61441,61448,61451,61452,61452,61453,61457,61459,61461,61465 \ - -r 61468,61473,61478,61479,61480,61502,61512,61515,61516,61517 \ - -r 61521,61522,61523,61524,61543,61544,61550,61552,61553,61556 \ - -r 61559,61560,61561,61563,61587,61589,61636,61637,61639,61671 \ - -r 61674,61683,61724,61732,61787,61931,62016,62017,62018,62019 \ - -r 62020,62087,62099,62212,62189,62810,63426,63650 \ - --size 12 \ - --bpp 1 --format lvgl -o font_symbols.c -- cgit v1.2.3