Add custom icon fonts to lvgl-module (#499)

* **New Features**
  * Added Material Design symbol fonts and LVGL font aliases for launcher, status bar, and shared UI icons.

* **Style**
  * Migrated app icons across the UI to the new symbol font system.
  * Updated launcher button sizing, font styling, recoloring and icon text color for consistency.
  * Default text/icon font macros set for consistent sizing across the UI.

* **Documentation**
  * Updated third‑party notices to include Material Design Icons links.
This commit is contained in:
Ken Van Hoeylandt 2026-02-13 20:27:08 +01:00 committed by GitHub
parent 4ab29ae466
commit 72c9b2b113
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
53 changed files with 1356 additions and 79 deletions

View File

@ -2,6 +2,14 @@ if (COMMAND tactility_add_module)
return() return()
endif() endif()
macro(tactility_get_module_name NAME OUT_NAME)
if (DEFINED ENV{ESP_IDF_VERSION})
set(${OUT_NAME} ${COMPONENT_LIB})
else ()
set(${OUT_NAME} ${NAME})
endif ()
endmacro()
macro(tactility_add_module NAME) macro(tactility_add_module NAME)
set(options) set(options)
set(oneValueArgs) set(oneValueArgs)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 421 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 518 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 308 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 239 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 287 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 412 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 417 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 489 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 290 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 498 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 448 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 530 B

View File

@ -2,6 +2,7 @@
## Before release ## Before release
- Remove incubating flag from various devices
- Add `// SPDX-License-Identifier: GPL-3.0-only` and `// SPDX-License-Identifier: Apache-2.0` to individual files in the project - Add `// SPDX-License-Identifier: GPL-3.0-only` and `// SPDX-License-Identifier: Apache-2.0` to individual files in the project
- Elecrow Basic & Advance 3.5" memory issue: not enough memory for App Hub - Elecrow Basic & Advance 3.5" memory issue: not enough memory for App Hub
- App Hub crashes if you close it while an app is being installed - App Hub crashes if you close it while an app is being installed

2
Modules/lvgl-module/Assets/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*.ttf
*.codepoints

View File

@ -0,0 +1,175 @@
import os
import urllib.request
def download_file(url: str, filename: str):
if not os.path.exists(filename):
print(f"Downloading {filename} from {url}")
urllib.request.urlretrieve(url, filename)
else:
print(f"{filename} already exists, skipping download.")
def generate(bpp, size, font_file: str, symbols: list, output: str):
output_file_name = f"{output}_{size}.c"
output_path = os.path.join("..", "Source", "fonts", output_file_name)
print(f"Generating {output_file_name}")
cmd = "lv_font_conv --no-compress --no-prefilter --bpp {} --size {} --font {} -r {} --format lvgl -o {} --force-fast-kern-format".format(bpp, size, font_file, ",".join(symbols), output_path)
os.system(cmd)
def read_code_points_map(file_path: str):
codepoints = {}
with open(file_path, 'r') as f:
for line in f:
parts = line.strip().split()
if len(parts) >= 2:
name, cp = parts[0].lower(), parts[1]
codepoints[name] = cp
if len(codepoints) == 0:
raise ValueError(f"Code points map is empty or wasn't found at {file_path}")
return codepoints
def get_code_points(codepoints, names: list) -> list:
result = []
for name in names:
safe_name = name.lower()
if not safe_name in codepoints:
raise ValueError(f"Code point '{safe_name}' not found in map")
result.append(f"0x{codepoints[safe_name].upper()}")
return result
def generate_icon_fonts(font_file, font_sizes, symbols, output):
for size in font_sizes:
generate(2, size, font_file, symbols, output)
def generate_icon_names(codepoint_map: dict, codepoint_names: list, filename: str):
print(f"Generating {filename}")
output_path = os.path.join("..", "Include", "tactility", filename)
with open(output_path, 'w') as f:
f.write("#pragma once\n\n")
for name in codepoint_names:
safe_name = name.lower()
if safe_name in codepoint_map:
hex_val = codepoint_map[safe_name]
# Convert hex to int
val = int(hex_val, 16)
# Convert to UTF-8 escaped string
utf8_bytes = chr(val).encode('utf-8')
escaped_str = "".join(f"\\x{b:02X}" for b in utf8_bytes)
f.write(f'#define LVGL_SYMBOL_{safe_name.upper()} "{escaped_str}"\n')
else:
print(f"Warning: {safe_name} not found in codepoint map")
# --------------- Symbol Fonts ---------------
shared_symbol_code_point_names = [
"add",
"apps",
"area_chart", # System Info
"app_registration", # App Settings app
"calendar_month",
"cable",
"circle",
"close",
"cloud", # Web server
"check",
"delete",
"devices", # Developer app
"display_settings", # Display Settings app
"edit_note",
"electric_bolt", # Power (settings) app
"folder",
"deployed_code", # 3D cube
"download",
"forum", # Chat app
"gamepad",
"help", # Diceware help
"hub", # App Hub
"image", # Screenshot app
"keyboard_arrow_up",
"lightbulb",
"language", # Globe
"lists", # Chat app toolbar
"mail",
"menu",
"mop",
"more_vert",
"music_note",
"note_add",
"power_settings_new", # Power off for T-Lora Pager
"refresh", # e.g. App Hub reload button
"search",
"settings",
"toolbar", # Apps without custom icon
"navigation", # GPS (settings) app
"keyboard_alt", # Keyboard (settings) app
"usb", # Power (settings) app
"wifi", # WiFi (settings) app
]
statusbar_symbol_code_point_names = [
# Location tracking
"location_on",
# Development server
"cloud",
# SD Card
"sd_card",
"sd_card_alert",
# Wi-Fi
"signal_wifi_0_bar",
"network_wifi_1_bar",
"network_wifi_2_bar",
"network_wifi_3_bar",
"signal_wifi_4_bar",
"signal_wifi_off",
# Battery
"battery_android_frame_1",
"battery_android_frame_2",
"battery_android_frame_3",
"battery_android_frame_4",
"battery_android_frame_5",
"battery_android_frame_6",
"battery_android_frame_bolt"
]
launcher_symbol_code_point_names = [
"apps",
"folder",
"settings"
]
shared_symbol_font_sizes = [
16 # Fits with montserrat 14 in lv_list as icon with text
]
# Resolve file path relative to this script so it can be executed from any CWD
base_dir = os.path.dirname(__file__)
if base_dir:
os.chdir(base_dir)
codepoints_url = "https://github.com/google/material-design-icons/raw/refs/heads/master/variablefont/MaterialSymbolsRounded%5BFILL,GRAD,opsz,wght%5D.codepoints"
ttf_url = "https://github.com/google/material-design-icons/raw/refs/heads/master/variablefont/MaterialSymbolsRounded%5BFILL,GRAD,opsz,wght%5D.ttf"
codepoints_filename = "MaterialSymbolsRounded.codepoints"
ttf_filename = "MaterialSymbolsRounded.ttf"
download_file(codepoints_url, codepoints_filename)
download_file(ttf_url, ttf_filename)
codepoints_map_path = codepoints_filename
codepoints_map = read_code_points_map(codepoints_map_path)
# Shared symbols
shared_symbol_code_points = get_code_points(codepoints_map, shared_symbol_code_point_names)
generate_icon_fonts(ttf_filename, shared_symbol_font_sizes, shared_symbol_code_points, "material_symbols_shared")
generate_icon_names(codepoints_map, shared_symbol_code_point_names, "lvgl_symbols_shared.h")
# Statusbar symbols
statusbar_symbol_code_points = get_code_points(codepoints_map, statusbar_symbol_code_point_names)
generate_icon_fonts(ttf_filename, [20], statusbar_symbol_code_points, "material_symbols_statusbar")
generate_icon_names(codepoints_map, statusbar_symbol_code_point_names, "lvgl_symbols_statusbar.h")
# Launcher symbols
launcher_symbol_code_points = get_code_points(codepoints_map, launcher_symbol_code_point_names)
generate_icon_fonts(ttf_filename, [36], launcher_symbol_code_points, "material_symbols_launcher")
generate_icon_names(codepoints_map, launcher_symbol_code_point_names, "lvgl_symbols_launcher.h")

View File

@ -20,3 +20,7 @@ tactility_add_module(lvgl-module
INCLUDE_DIRS Include/ INCLUDE_DIRS Include/
REQUIRES ${REQUIRES_LIST} REQUIRES ${REQUIRES_LIST}
) )
tactility_get_module_name("lvgl-module" MODULE_NAME)
target_compile_definitions(${MODULE_NAME} PUBLIC "-DLV_LVGL_H_INCLUDE_SIMPLE")

View File

@ -0,0 +1,31 @@
#pragma once
#include <lvgl.h>
#ifdef __cplusplus
extern "C" {
#endif
extern const lv_font_t material_symbols_statusbar_20;
extern const lv_font_t material_symbols_shared_16;
extern const lv_font_t material_symbols_launcher_36;
//#define lvgl_get_text_font_smaller() &lv_font_montserrat_12
// TODO: Make function so it's easier to use this cross-platform
#define LVGL_TEXT_FONT_DEFAULT &lv_font_montserrat_14
#define LVGL_TEXT_FONT_LARGER &lv_font_montserrat_18
// TODO: Make function so it's easier to use this cross-platform
#define LVGL_SYMBOL_FONT_DEFAULT &material_symbols_shared_16
#define LVGL_SYMBOL_FONT_LAUNCHER &material_symbols_launcher_36
// TODO: Make function so it's easier to use this cross-platform
#define LVGL_TOPBAR_FONT &material_symbols_statusbar_20
#define LVGL_TOPBAR_ICON_HEIGHT 20
#ifdef __cplusplus
}
#endif

View File

@ -84,7 +84,7 @@ void lvgl_unlock(void);
* *
* @return true if running, false otherwise. * @return true if running, false otherwise.
*/ */
bool lvgl_is_running(); bool lvgl_is_running(void);
#ifdef __cplusplus #ifdef __cplusplus
} }

View File

@ -0,0 +1,5 @@
#pragma once
#define LVGL_SYMBOL_APPS "\xEE\x97\x83"
#define LVGL_SYMBOL_FOLDER "\xEE\x8B\x87"
#define LVGL_SYMBOL_SETTINGS "\xEE\xA2\xB8"

View File

@ -0,0 +1,44 @@
#pragma once
#define LVGL_SYMBOL_ADD "\xEE\x85\x85"
#define LVGL_SYMBOL_APPS "\xEE\x97\x83"
#define LVGL_SYMBOL_AREA_CHART "\xEE\x9D\xB0"
#define LVGL_SYMBOL_APP_REGISTRATION "\xEE\xBD\x80"
#define LVGL_SYMBOL_CALENDAR_MONTH "\xEE\xAF\x8C"
#define LVGL_SYMBOL_CABLE "\xEE\xBF\xA6"
#define LVGL_SYMBOL_CIRCLE "\xEE\xBD\x8A"
#define LVGL_SYMBOL_CLOSE "\xEE\x97\x8D"
#define LVGL_SYMBOL_CLOUD "\xEF\x85\x9C"
#define LVGL_SYMBOL_CHECK "\xEE\x97\x8A"
#define LVGL_SYMBOL_DELETE "\xEE\xA4\xAE"
#define LVGL_SYMBOL_DEVICES "\xEE\x8C\xA6"
#define LVGL_SYMBOL_DISPLAY_SETTINGS "\xEE\xAE\x97"
#define LVGL_SYMBOL_EDIT_NOTE "\xEE\x9D\x85"
#define LVGL_SYMBOL_ELECTRIC_BOLT "\xEE\xB0\x9C"
#define LVGL_SYMBOL_FOLDER "\xEE\x8B\x87"
#define LVGL_SYMBOL_DEPLOYED_CODE "\xEF\x9C\xA0"
#define LVGL_SYMBOL_DOWNLOAD "\xEF\x82\x90"
#define LVGL_SYMBOL_FORUM "\xEE\xA2\xAF"
#define LVGL_SYMBOL_GAMEPAD "\xEE\x8C\x8F"
#define LVGL_SYMBOL_HELP "\xEE\xA3\xBD"
#define LVGL_SYMBOL_HUB "\xEE\xA7\xB4"
#define LVGL_SYMBOL_IMAGE "\xEE\x8F\xB4"
#define LVGL_SYMBOL_KEYBOARD_ARROW_UP "\xEE\x8C\x96"
#define LVGL_SYMBOL_LIGHTBULB "\xEE\xA4\x8F"
#define LVGL_SYMBOL_LANGUAGE "\xEE\xA2\x94"
#define LVGL_SYMBOL_LISTS "\xEE\xA6\xB9"
#define LVGL_SYMBOL_MAIL "\xEE\x85\x99"
#define LVGL_SYMBOL_MENU "\xEE\x97\x92"
#define LVGL_SYMBOL_MOP "\xEE\x8A\x8D"
#define LVGL_SYMBOL_MORE_VERT "\xEE\x97\x94"
#define LVGL_SYMBOL_MUSIC_NOTE "\xEE\x90\x85"
#define LVGL_SYMBOL_NOTE_ADD "\xEE\xA2\x9C"
#define LVGL_SYMBOL_POWER_SETTINGS_NEW "\xEF\xA3\x87"
#define LVGL_SYMBOL_REFRESH "\xEE\x97\x95"
#define LVGL_SYMBOL_SEARCH "\xEE\xA2\xB6"
#define LVGL_SYMBOL_SETTINGS "\xEE\xA2\xB8"
#define LVGL_SYMBOL_TOOLBAR "\xEE\xA7\xB7"
#define LVGL_SYMBOL_NAVIGATION "\xEE\x95\x9D"
#define LVGL_SYMBOL_KEYBOARD_ALT "\xEF\x80\xA8"
#define LVGL_SYMBOL_USB "\xEE\x87\xA0"
#define LVGL_SYMBOL_WIFI "\xEE\x98\xBE"

View File

@ -0,0 +1,19 @@
#pragma once
#define LVGL_SYMBOL_LOCATION_ON "\xEF\x87\x9B"
#define LVGL_SYMBOL_CLOUD "\xEF\x85\x9C"
#define LVGL_SYMBOL_SD_CARD "\xEE\x98\xA3"
#define LVGL_SYMBOL_SD_CARD_ALERT "\xEF\x81\x97"
#define LVGL_SYMBOL_SIGNAL_WIFI_0_BAR "\xEF\x82\xB0"
#define LVGL_SYMBOL_NETWORK_WIFI_1_BAR "\xEE\xAF\xA4"
#define LVGL_SYMBOL_NETWORK_WIFI_2_BAR "\xEE\xAF\x96"
#define LVGL_SYMBOL_NETWORK_WIFI_3_BAR "\xEE\xAF\xA1"
#define LVGL_SYMBOL_SIGNAL_WIFI_4_BAR "\xEF\x81\xA5"
#define LVGL_SYMBOL_SIGNAL_WIFI_OFF "\xEE\x87\x9A"
#define LVGL_SYMBOL_BATTERY_ANDROID_FRAME_1 "\xEF\x89\x97"
#define LVGL_SYMBOL_BATTERY_ANDROID_FRAME_2 "\xEF\x89\x96"
#define LVGL_SYMBOL_BATTERY_ANDROID_FRAME_3 "\xEF\x89\x95"
#define LVGL_SYMBOL_BATTERY_ANDROID_FRAME_4 "\xEF\x89\x94"
#define LVGL_SYMBOL_BATTERY_ANDROID_FRAME_5 "\xEF\x89\x93"
#define LVGL_SYMBOL_BATTERY_ANDROID_FRAME_6 "\xEF\x89\x92"
#define LVGL_SYMBOL_BATTERY_ANDROID_FRAME_BOLT "\xEF\x89\x90"

View File

@ -0,0 +1,194 @@
/*******************************************************************************
* Size: 36 px
* Bpp: 2
* Opts: --no-compress --no-prefilter --bpp 2 --size 36 --font MaterialSymbolsRounded.ttf -r 0xE5C3,0xE2C7,0xE8B8 --format lvgl -o ../Source/fonts/material_symbols_launcher_36.c --force-fast-kern-format
******************************************************************************/
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif
#ifndef MATERIAL_SYMBOLS_LAUNCHER_36
#define MATERIAL_SYMBOLS_LAUNCHER_36 1
#endif
#if MATERIAL_SYMBOLS_LAUNCHER_36
/*-----------------
* BITMAPS
*----------------*/
/*Store the image of the glyphs*/
static LV_ATTRIBUTE_LARGE_CONST const uint8_t glyph_bitmap[] = {
/* U+E2C7 "" */
0x2f, 0xff, 0xff, 0x40, 0x0, 0x0, 0x0, 0xb,
0xff, 0xff, 0xfe, 0x0, 0x0, 0x0, 0x0, 0xff,
0xff, 0xff, 0xf8, 0x0, 0x0, 0x0, 0xf, 0xc0,
0x0, 0x2f, 0xff, 0xff, 0xff, 0xf8, 0xfc, 0x0,
0x0, 0xbf, 0xff, 0xff, 0xff, 0xef, 0xc0, 0x0,
0x2, 0xff, 0xff, 0xff, 0xff, 0xfc, 0x0, 0x0,
0x0, 0x0, 0x0, 0x3, 0xff, 0xc0, 0x0, 0x0,
0x0, 0x0, 0x0, 0x3f, 0xfc, 0x0, 0x0, 0x0,
0x0, 0x0, 0x3, 0xff, 0xc0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x3f, 0xfc, 0x0, 0x0, 0x0, 0x0,
0x0, 0x3, 0xff, 0xc0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x3f, 0xfc, 0x0, 0x0, 0x0, 0x0, 0x0,
0x3, 0xff, 0xc0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x3f, 0xfc, 0x0, 0x0, 0x0, 0x0, 0x0, 0x3,
0xff, 0xc0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x3f,
0xfc, 0x0, 0x0, 0x0, 0x0, 0x0, 0x3, 0xff,
0xc0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x3f, 0xfc,
0x0, 0x0, 0x0, 0x0, 0x0, 0x3, 0xff, 0xc0,
0x0, 0x0, 0x0, 0x0, 0x0, 0x3f, 0xfc, 0x0,
0x0, 0x0, 0x0, 0x0, 0x3, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xbf, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xe2, 0xff, 0xff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};
/*---------------------
* GLYPH DESCRIPTION
*--------------------*/
static const lv_font_fmt_txt_glyph_dsc_t glyph_dsc[] = {
{.bitmap_index = 0, .adv_w = 0, .box_w = 0, .box_h = 0, .ofs_x = 0, .ofs_y = 0} /* id = 0 reserved */,
{.bitmap_index = 0, .adv_w = 576, .box_w = 30, .box_h = 24, .ofs_x = 3, .ofs_y = 6},
{.bitmap_index = 180, .adv_w = 576, .box_w = 24, .box_h = 24, .ofs_x = 6, .ofs_y = 6},
{.bitmap_index = 324, .adv_w = 576, .box_w = 30, .box_h = 30, .ofs_x = 3, .ofs_y = 3}
};
/*---------------------
* CHARACTER MAPPING
*--------------------*/
static const uint16_t unicode_list_0[] = {
0x0, 0x2fc, 0x5f1
};
/*Collect the unicode lists and glyph_id offsets*/
static const lv_font_fmt_txt_cmap_t cmaps[] =
{
{
.range_start = 58055, .range_length = 1522, .glyph_id_start = 1,
.unicode_list = unicode_list_0, .glyph_id_ofs_list = NULL, .list_length = 3, .type = LV_FONT_FMT_TXT_CMAP_SPARSE_TINY
}
};
/*--------------------
* ALL CUSTOM DATA
*--------------------*/
#if LVGL_VERSION_MAJOR == 8
/*Store all the custom data of the font*/
static lv_font_fmt_txt_glyph_cache_t cache;
#endif
#if LVGL_VERSION_MAJOR >= 8
static const lv_font_fmt_txt_dsc_t font_dsc = {
#else
static lv_font_fmt_txt_dsc_t font_dsc = {
#endif
.glyph_bitmap = glyph_bitmap,
.glyph_dsc = glyph_dsc,
.cmaps = cmaps,
.kern_dsc = NULL,
.kern_scale = 0,
.cmap_num = 1,
.bpp = 2,
.kern_classes = 0,
.bitmap_format = 0,
#if LVGL_VERSION_MAJOR == 8
.cache = &cache
#endif
};
/*-----------------
* PUBLIC FONT
*----------------*/
/*Initialize a public general font descriptor*/
#if LVGL_VERSION_MAJOR >= 8
const lv_font_t material_symbols_launcher_36 = {
#else
lv_font_t material_symbols_launcher_36 = {
#endif
.get_glyph_dsc = lv_font_get_glyph_dsc_fmt_txt, /*Function pointer to get glyph's data*/
.get_glyph_bitmap = lv_font_get_bitmap_fmt_txt, /*Function pointer to get glyph's bitmap*/
.line_height = 30, /*The maximum line height required by the font*/
.base_line = -3, /*Baseline measured from the bottom of the line*/
#if !(LVGL_VERSION_MAJOR == 6 && LVGL_VERSION_MINOR == 0)
.subpx = LV_FONT_SUBPX_NONE,
#endif
#if LV_VERSION_CHECK(7, 4, 0) || LVGL_VERSION_MAJOR >= 8
.underline_position = 0,
.underline_thickness = 0,
#endif
.dsc = &font_dsc, /*The custom font data. Will be accessed by `get_glyph_bitmap/dsc` */
#if LV_VERSION_CHECK(8, 2, 0) || LVGL_VERSION_MAJOR >= 9
.fallback = NULL,
#endif
.user_data = NULL,
};
#endif /*#if MATERIAL_SYMBOLS_LAUNCHER_36*/

View File

@ -0,0 +1,473 @@
/*******************************************************************************
* Size: 16 px
* Bpp: 2
* Opts: --no-compress --no-prefilter --bpp 2 --size 16 --font MaterialSymbolsRounded.ttf -r 0xE145,0xE5C3,0xE770,0xEF40,0xEBCC,0xEFE6,0xEF4A,0xE5CD,0xF15C,0xE5CA,0xE92E,0xE326,0xEB97,0xE745,0xEC1C,0xE2C7,0xF720,0xF090,0xE8AF,0xE30F,0xE8FD,0xE9F4,0xE3F4,0xE316,0xE90F,0xE894,0xE9B9,0xE159,0xE5D2,0xE28D,0xE5D4,0xE405,0xE89C,0xF8C7,0xE5D5,0xE8B6,0xE8B8,0xE9F7,0xE55D,0xF028,0xE1E0,0xE63E --format lvgl -o ../Source/fonts/material_symbols_shared_16.c --force-fast-kern-format
******************************************************************************/
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif
#ifndef MATERIAL_SYMBOLS_SHARED_16
#define MATERIAL_SYMBOLS_SHARED_16 1
#endif
#if MATERIAL_SYMBOLS_SHARED_16
/*-----------------
* BITMAPS
*----------------*/
/*Store the image of the glyphs*/
static LV_ATTRIBUTE_LARGE_CONST const uint8_t glyph_bitmap[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0xe0,
0x1, 0xe0, 0x3, 0xea, 0xf8, 0x0, 0x6, 0xf8,
0x0
};
/*---------------------
* GLYPH DESCRIPTION
*--------------------*/
static const lv_font_fmt_txt_glyph_dsc_t glyph_dsc[] = {
{.bitmap_index = 0, .adv_w = 0, .box_w = 0, .box_h = 0, .ofs_x = 0, .ofs_y = 0} /* id = 0 reserved */,
{.bitmap_index = 0, .adv_w = 256, .box_w = 10, .box_h = 10, .ofs_x = 3, .ofs_y = 3},
{.bitmap_index = 25, .adv_w = 256, .box_w = 14, .box_h = 12, .ofs_x = 1, .ofs_y = 2},
{.bitmap_index = 67, .adv_w = 256, .box_w = 10, .box_h = 14, .ofs_x = 3, .ofs_y = 1},
{.bitmap_index = 102, .adv_w = 256, .box_w = 16, .box_h = 16, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 166, .adv_w = 256, .box_w = 14, .box_h = 12, .ofs_x = 1, .ofs_y = 2},
{.bitmap_index = 208, .adv_w = 256, .box_w = 14, .box_h = 14, .ofs_x = 1, .ofs_y = 1},
{.bitmap_index = 257, .adv_w = 256, .box_w = 8, .box_h = 5, .ofs_x = 4, .ofs_y = 6},
{.bitmap_index = 267, .adv_w = 256, .box_w = 14, .box_h = 12, .ofs_x = 1, .ofs_y = 2},
{.bitmap_index = 309, .adv_w = 256, .box_w = 12, .box_h = 12, .ofs_x = 2, .ofs_y = 2},
{.bitmap_index = 345, .adv_w = 256, .box_w = 8, .box_h = 12, .ofs_x = 4, .ofs_y = 2},
{.bitmap_index = 369, .adv_w = 256, .box_w = 12, .box_h = 12, .ofs_x = 2, .ofs_y = 2},
{.bitmap_index = 405, .adv_w = 256, .box_w = 12, .box_h = 12, .ofs_x = 2, .ofs_y = 2},
{.bitmap_index = 441, .adv_w = 256, .box_w = 12, .box_h = 8, .ofs_x = 2, .ofs_y = 4},
{.bitmap_index = 465, .adv_w = 256, .box_w = 10, .box_h = 10, .ofs_x = 3, .ofs_y = 3},
{.bitmap_index = 490, .adv_w = 256, .box_w = 12, .box_h = 8, .ofs_x = 2, .ofs_y = 4},
{.bitmap_index = 514, .adv_w = 256, .box_w = 4, .box_h = 12, .ofs_x = 6, .ofs_y = 2},
{.bitmap_index = 526, .adv_w = 256, .box_w = 12, .box_h = 12, .ofs_x = 2, .ofs_y = 2},
{.bitmap_index = 562, .adv_w = 256, .box_w = 16, .box_h = 12, .ofs_x = 0, .ofs_y = 2},
{.bitmap_index = 610, .adv_w = 256, .box_w = 13, .box_h = 12, .ofs_x = 2, .ofs_y = 2},
{.bitmap_index = 649, .adv_w = 256, .box_w = 12, .box_h = 12, .ofs_x = 2, .ofs_y = 2},
{.bitmap_index = 685, .adv_w = 256, .box_w = 14, .box_h = 14, .ofs_x = 1, .ofs_y = 1},
{.bitmap_index = 734, .adv_w = 256, .box_w = 12, .box_h = 14, .ofs_x = 2, .ofs_y = 1},
{.bitmap_index = 776, .adv_w = 256, .box_w = 14, .box_h = 13, .ofs_x = 1, .ofs_y = 2},
{.bitmap_index = 822, .adv_w = 256, .box_w = 12, .box_h = 12, .ofs_x = 2, .ofs_y = 2},
{.bitmap_index = 858, .adv_w = 256, .box_w = 14, .box_h = 14, .ofs_x = 1, .ofs_y = 1},
{.bitmap_index = 907, .adv_w = 256, .box_w = 14, .box_h = 14, .ofs_x = 1, .ofs_y = 1},
{.bitmap_index = 956, .adv_w = 256, .box_w = 10, .box_h = 14, .ofs_x = 3, .ofs_y = 1},
{.bitmap_index = 991, .adv_w = 256, .box_w = 12, .box_h = 12, .ofs_x = 2, .ofs_y = 2},
{.bitmap_index = 1027, .adv_w = 256, .box_w = 14, .box_h = 12, .ofs_x = 1, .ofs_y = 2},
{.bitmap_index = 1069, .adv_w = 256, .box_w = 16, .box_h = 16, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 1133, .adv_w = 256, .box_w = 12, .box_h = 12, .ofs_x = 2, .ofs_y = 2},
{.bitmap_index = 1169, .adv_w = 256, .box_w = 14, .box_h = 13, .ofs_x = 1, .ofs_y = 1},
{.bitmap_index = 1215, .adv_w = 256, .box_w = 12, .box_h = 14, .ofs_x = 2, .ofs_y = 1},
{.bitmap_index = 1257, .adv_w = 256, .box_w = 12, .box_h = 14, .ofs_x = 2, .ofs_y = 1},
{.bitmap_index = 1299, .adv_w = 256, .box_w = 13, .box_h = 12, .ofs_x = 2, .ofs_y = 2},
{.bitmap_index = 1338, .adv_w = 256, .box_w = 14, .box_h = 14, .ofs_x = 1, .ofs_y = 1},
{.bitmap_index = 1387, .adv_w = 256, .box_w = 12, .box_h = 12, .ofs_x = 2, .ofs_y = 2},
{.bitmap_index = 1423, .adv_w = 256, .box_w = 16, .box_h = 12, .ofs_x = 0, .ofs_y = 2},
{.bitmap_index = 1471, .adv_w = 256, .box_w = 12, .box_h = 12, .ofs_x = 2, .ofs_y = 2},
{.bitmap_index = 1507, .adv_w = 256, .box_w = 16, .box_h = 12, .ofs_x = 0, .ofs_y = 2},
{.bitmap_index = 1555, .adv_w = 256, .box_w = 12, .box_h = 14, .ofs_x = 2, .ofs_y = 1},
{.bitmap_index = 1597, .adv_w = 256, .box_w = 14, .box_h = 14, .ofs_x = 1, .ofs_y = 1}
};
/*---------------------
* CHARACTER MAPPING
*--------------------*/
static const uint16_t unicode_list_0[] = {
0x0, 0x14, 0x9b, 0x148, 0x182, 0x1ca, 0x1d1, 0x1e1,
0x2af, 0x2c0, 0x418, 0x47e, 0x485, 0x488, 0x48d, 0x48f,
0x490, 0x4f9, 0x600, 0x62b, 0x74f, 0x757, 0x76a, 0x771,
0x773, 0x7b8, 0x7ca, 0x7e9, 0x874, 0x8af, 0x8b2, 0xa52,
0xa87, 0xad7, 0xdfb, 0xe05, 0xea1, 0xee3, 0xf4b, 0x1017,
0x15db, 0x1782
};
/*Collect the unicode lists and glyph_id offsets*/
static const lv_font_fmt_txt_cmap_t cmaps[] =
{
{
.range_start = 57669, .range_length = 6019, .glyph_id_start = 1,
.unicode_list = unicode_list_0, .glyph_id_ofs_list = NULL, .list_length = 42, .type = LV_FONT_FMT_TXT_CMAP_SPARSE_TINY
}
};
/*--------------------
* ALL CUSTOM DATA
*--------------------*/
#if LVGL_VERSION_MAJOR == 8
/*Store all the custom data of the font*/
static lv_font_fmt_txt_glyph_cache_t cache;
#endif
#if LVGL_VERSION_MAJOR >= 8
static const lv_font_fmt_txt_dsc_t font_dsc = {
#else
static lv_font_fmt_txt_dsc_t font_dsc = {
#endif
.glyph_bitmap = glyph_bitmap,
.glyph_dsc = glyph_dsc,
.cmaps = cmaps,
.kern_dsc = NULL,
.kern_scale = 0,
.cmap_num = 1,
.bpp = 2,
.kern_classes = 0,
.bitmap_format = 0,
#if LVGL_VERSION_MAJOR == 8
.cache = &cache
#endif
};
/*-----------------
* PUBLIC FONT
*----------------*/
/*Initialize a public general font descriptor*/
#if LVGL_VERSION_MAJOR >= 8
const lv_font_t material_symbols_shared_16 = {
#else
lv_font_t material_symbols_shared_16 = {
#endif
.get_glyph_dsc = lv_font_get_glyph_dsc_fmt_txt, /*Function pointer to get glyph's data*/
.get_glyph_bitmap = lv_font_get_bitmap_fmt_txt, /*Function pointer to get glyph's bitmap*/
.line_height = 16, /*The maximum line height required by the font*/
.base_line = 0, /*Baseline measured from the bottom of the line*/
#if !(LVGL_VERSION_MAJOR == 6 && LVGL_VERSION_MINOR == 0)
.subpx = LV_FONT_SUBPX_NONE,
#endif
#if LV_VERSION_CHECK(7, 4, 0) || LVGL_VERSION_MAJOR >= 8
.underline_position = 0,
.underline_thickness = 0,
#endif
.dsc = &font_dsc, /*The custom font data. Will be accessed by `get_glyph_bitmap/dsc` */
#if LV_VERSION_CHECK(8, 2, 0) || LVGL_VERSION_MAJOR >= 9
.fallback = NULL,
#endif
.user_data = NULL,
};
#endif /*#if MATERIAL_SYMBOLS_SHARED_16*/

View File

@ -0,0 +1,306 @@
/*******************************************************************************
* Size: 20 px
* Bpp: 2
* Opts: --no-compress --no-prefilter --bpp 2 --size 20 --font MaterialSymbolsRounded.ttf -r 0xF1DB,0xF15C,0xE623,0xF057,0xF0B0,0xEBE4,0xEBD6,0xEBE1,0xF065,0xE1DA,0xF257,0xF256,0xF255,0xF254,0xF253,0xF252,0xF250 --format lvgl -o ../Source/fonts/material_symbols_statusbar_20.c --force-fast-kern-format
******************************************************************************/
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif
#ifndef MATERIAL_SYMBOLS_STATUSBAR_20
#define MATERIAL_SYMBOLS_STATUSBAR_20 1
#endif
#if MATERIAL_SYMBOLS_STATUSBAR_20
/*-----------------
* BITMAPS
*----------------*/
/*Store the image of the glyphs*/
static LV_ATTRIBUTE_LARGE_CONST const uint8_t glyph_bitmap[] = {
/* U+E1DA "" */
0x34, 0x0, 0x0, 0x0, 0x0, 0x3d, 0x1, 0xaa,
0x40, 0x0, 0xf, 0x47, 0xff, 0xfd, 0x0, 0xb,
0xd0, 0x0, 0x6f, 0xd0, 0x3e, 0xf4, 0x0, 0x1,
0xf8, 0xb8, 0x3d, 0x0, 0x0, 0x3d, 0x3d, 0xf,
0x40, 0x0, 0xbc, 0xf, 0x43, 0xd0, 0x2, 0xf0,
0x3, 0xd0, 0xf4, 0xb, 0xc0, 0x0, 0xf4, 0x3d,
0xf, 0x0, 0x0, 0x3d, 0xf, 0x40, 0x0, 0x0,
0xf, 0x43, 0xd0, 0x0, 0x0, 0x3, 0xd7, 0xf4,
0x0, 0x0, 0x0, 0xff, 0x3d, 0x0, 0x0, 0x0,
0x3c, 0xf, 0x40, 0x0, 0x0, 0x0, 0x3, 0xd0,
0x0, 0x0, 0x0, 0x0, 0xe0, 0x0, 0x0, 0x0,
0x0, 0x0,
/* U+E623 "" */
0x0, 0x1a, 0xaa, 0x40, 0xb, 0xff, 0xfd, 0x2,
0xe0, 0x0, 0xe0, 0xb8, 0x0, 0xe, 0x2e, 0x10,
0x4, 0xe7, 0x87, 0x3c, 0xce, 0xb0, 0x73, 0xdc,
0xeb, 0x7, 0x3c, 0xce, 0xb0, 0x0,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
0xff, 0x0
};
/*---------------------
* GLYPH DESCRIPTION
*--------------------*/
static const lv_font_fmt_txt_glyph_dsc_t glyph_dsc[] = {
{.bitmap_index = 0, .adv_w = 0, .box_w = 0, .box_h = 0, .ofs_x = 0, .ofs_y = 0} /* id = 0 reserved */,
{.bitmap_index = 0, .adv_w = 320, .box_w = 20, .box_h = 18, .ofs_x = 0, .ofs_y = 0},
{.bitmap_index = 90, .adv_w = 320, .box_w = 14, .box_h = 18, .ofs_x = 3, .ofs_y = 1},
{.bitmap_index = 153, .adv_w = 320, .box_w = 20, .box_h = 14, .ofs_x = 0, .ofs_y = 3},
{.bitmap_index = 223, .adv_w = 320, .box_w = 20, .box_h = 14, .ofs_x = 0, .ofs_y = 3},
{.bitmap_index = 293, .adv_w = 320, .box_w = 20, .box_h = 14, .ofs_x = 0, .ofs_y = 3},
{.bitmap_index = 363, .adv_w = 320, .box_w = 14, .box_h = 18, .ofs_x = 3, .ofs_y = 1},
{.bitmap_index = 426, .adv_w = 320, .box_w = 20, .box_h = 14, .ofs_x = 0, .ofs_y = 3},
{.bitmap_index = 496, .adv_w = 320, .box_w = 20, .box_h = 14, .ofs_x = 0, .ofs_y = 3},
{.bitmap_index = 566, .adv_w = 320, .box_w = 20, .box_h = 14, .ofs_x = 0, .ofs_y = 3},
{.bitmap_index = 636, .adv_w = 320, .box_w = 14, .box_h = 17, .ofs_x = 3, .ofs_y = 2},
{.bitmap_index = 696, .adv_w = 320, .box_w = 19, .box_h = 10, .ofs_x = 0, .ofs_y = 5},
{.bitmap_index = 744, .adv_w = 320, .box_w = 20, .box_h = 10, .ofs_x = 0, .ofs_y = 5},
{.bitmap_index = 794, .adv_w = 320, .box_w = 20, .box_h = 10, .ofs_x = 0, .ofs_y = 5},
{.bitmap_index = 844, .adv_w = 320, .box_w = 20, .box_h = 10, .ofs_x = 0, .ofs_y = 5},
{.bitmap_index = 894, .adv_w = 320, .box_w = 20, .box_h = 10, .ofs_x = 0, .ofs_y = 5},
{.bitmap_index = 944, .adv_w = 320, .box_w = 20, .box_h = 10, .ofs_x = 0, .ofs_y = 5},
{.bitmap_index = 994, .adv_w = 320, .box_w = 20, .box_h = 10, .ofs_x = 0, .ofs_y = 5}
};
/*---------------------
* CHARACTER MAPPING
*--------------------*/
static const uint16_t unicode_list_0[] = {
0x0, 0x449, 0x9fc, 0xa07, 0xa0a, 0xe7d, 0xe8b, 0xed6,
0xf82, 0x1001, 0x1076, 0x1078, 0x1079, 0x107a, 0x107b, 0x107c,
0x107d
};
/*Collect the unicode lists and glyph_id offsets*/
static const lv_font_fmt_txt_cmap_t cmaps[] =
{
{
.range_start = 57818, .range_length = 4222, .glyph_id_start = 1,
.unicode_list = unicode_list_0, .glyph_id_ofs_list = NULL, .list_length = 17, .type = LV_FONT_FMT_TXT_CMAP_SPARSE_TINY
}
};
/*--------------------
* ALL CUSTOM DATA
*--------------------*/
#if LVGL_VERSION_MAJOR == 8
/*Store all the custom data of the font*/
static lv_font_fmt_txt_glyph_cache_t cache;
#endif
#if LVGL_VERSION_MAJOR >= 8
static const lv_font_fmt_txt_dsc_t font_dsc = {
#else
static lv_font_fmt_txt_dsc_t font_dsc = {
#endif
.glyph_bitmap = glyph_bitmap,
.glyph_dsc = glyph_dsc,
.cmaps = cmaps,
.kern_dsc = NULL,
.kern_scale = 0,
.cmap_num = 1,
.bpp = 2,
.kern_classes = 0,
.bitmap_format = 0,
#if LVGL_VERSION_MAJOR == 8
.cache = &cache
#endif
};
/*-----------------
* PUBLIC FONT
*----------------*/
/*Initialize a public general font descriptor*/
#if LVGL_VERSION_MAJOR >= 8
const lv_font_t material_symbols_statusbar_20 = {
#else
lv_font_t material_symbols_statusbar_20 = {
#endif
.get_glyph_dsc = lv_font_get_glyph_dsc_fmt_txt, /*Function pointer to get glyph's data*/
.get_glyph_bitmap = lv_font_get_bitmap_fmt_txt, /*Function pointer to get glyph's bitmap*/
.line_height = 19, /*The maximum line height required by the font*/
.base_line = 0, /*Baseline measured from the bottom of the line*/
#if !(LVGL_VERSION_MAJOR == 6 && LVGL_VERSION_MINOR == 0)
.subpx = LV_FONT_SUBPX_NONE,
#endif
#if LV_VERSION_CHECK(7, 4, 0) || LVGL_VERSION_MAJOR >= 8
.underline_position = 0,
.underline_thickness = 0,
#endif
.dsc = &font_dsc, /*The custom font data. Will be accessed by `get_glyph_bitmap/dsc` */
#if LV_VERSION_CHECK(8, 2, 0) || LVGL_VERSION_MAJOR >= 9
.fallback = NULL,
#endif
.user_data = NULL,
};
#endif /*#if MATERIAL_SYMBOLS_STATUSBAR_20*/

View File

@ -17,9 +17,12 @@ Website: https://github.com/flipperdevices/flipperzero-firmware/
License: [GPL v3.0](https://github.com/flipperdevices/flipperzero-firmware/blob/dev/LICENSE) License: [GPL v3.0](https://github.com/flipperdevices/flipperzero-firmware/blob/dev/LICENSE)
### Google Fonts ### Google Fonts & Material Design Icons
Website: https://fonts.google.com/icons Websites:
- https://fonts.google.com/icons
- https://github.com/google/material-design-icons
License: [Apache License, version 2.0](https://fonts.google.com/attribution) License: [Apache License, version 2.0](https://fonts.google.com/attribution)

View File

@ -11,17 +11,3 @@
// UI // UI
#define TT_ASSETS_UI_SPINNER TT_ASSET("spinner.png") #define TT_ASSETS_UI_SPINNER TT_ASSET("spinner.png")
#define TT_ASSETS_UI_CURSOR TT_ASSET("cursor.png") #define TT_ASSETS_UI_CURSOR TT_ASSET("cursor.png")
// App icons
#define TT_ASSETS_APP_ICON_FALLBACK TT_ASSET("app_icon_fallback_dark_mode.png")
#define TT_ASSETS_APP_ICON_FILES TT_ASSET("app_icon_files_dark_mode.png")
#define TT_ASSETS_APP_ICON_DISPLAY_SETTINGS TT_ASSET("app_icon_display_settings_dark_mode.png")
#define TT_ASSETS_APP_ICON_POWER_SETTINGS TT_ASSET("app_icon_power_settings_dark_mode.png")
#define TT_ASSETS_APP_ICON_I2C_SETTINGS TT_ASSET("app_icon_i2c_dark_mode.png")
#define TT_ASSETS_APP_ICON_SETTINGS TT_ASSET("app_icon_settings_dark_mode.png")
#define TT_ASSETS_APP_ICON_SYSTEM_INFO TT_ASSET("app_icon_system_info_dark_mode.png")
#define TT_ASSETS_APP_ICON_TIME_DATE_SETTINGS TT_ASSET("app_icon_time_date_settings_dark_mode.png")
#define TT_ASSETS_APP_ICON_CALCULATOR TT_ASSET("app_icon_calculator_dark_mode.png")
#define TT_ASSETS_APP_ICON_NOTES TT_ASSET("app_icon_notes_dark_mode.png")
#define TT_ASSETS_APP_ICON_CHAT TT_ASSET("app_icon_chat_dark_mode.png")
#define TT_ASSETS_APP_ICON_GPIO TT_ASSET("app_icon_gpio_dark_mode.png")

View File

@ -10,6 +10,7 @@
#include "tactility/drivers/uart_controller.h" #include "tactility/drivers/uart_controller.h"
#include <cstring> #include <cstring>
#include <lvgl.h> #include <lvgl.h>
#include <tactility/lvgl_symbols_shared.h>
namespace tt::app::addgps { namespace tt::app::addgps {
@ -193,7 +194,7 @@ public:
extern const AppManifest manifest = { extern const AppManifest manifest = {
.appId = "AddGps", .appId = "AddGps",
.appName = "Add GPS", .appName = "Add GPS",
.appIcon = LV_SYMBOL_GPS, .appIcon = LVGL_SYMBOL_NAVIGATION,
.appCategory = Category::System, .appCategory = Category::System,
.appFlags = AppManifest::Flags::Hidden, .appFlags = AppManifest::Flags::Hidden,
.createApp = create<AddGpsApp> .createApp = create<AddGpsApp>

View File

@ -12,6 +12,7 @@
#include <Tactility/service/wifi/Wifi.h> #include <Tactility/service/wifi/Wifi.h>
#include <lvgl.h> #include <lvgl.h>
#include <tactility/lvgl_symbols_shared.h>
#include <algorithm> #include <algorithm>
#include <format> #include <format>
@ -178,6 +179,7 @@ public:
extern const AppManifest manifest = { extern const AppManifest manifest = {
.appId = "AppHub", .appId = "AppHub",
.appName = "App Hub", .appName = "App Hub",
.appIcon = LVGL_SYMBOL_HUB,
.appCategory = Category::System, .appCategory = Category::System,
.createApp = create<AppHubApp>, .createApp = create<AppHubApp>,
}; };

View File

@ -2,11 +2,12 @@
#include <Tactility/service/loader/Loader.h> #include <Tactility/service/loader/Loader.h>
#include <Tactility/lvgl/Toolbar.h> #include <Tactility/lvgl/Toolbar.h>
#include <Tactility/Assets.h>
#include <lvgl.h> #include <lvgl.h>
#include <algorithm> #include <algorithm>
#include <tactility/lvgl_fonts.h>
#include <tactility/lvgl_symbols_shared.h>
namespace tt::app::applist { namespace tt::app::applist {
class AppListApp final : public App { class AppListApp final : public App {
@ -17,8 +18,10 @@ class AppListApp final : public App {
} }
static void createAppWidget(const std::shared_ptr<AppManifest>& manifest, lv_obj_t* list) { static void createAppWidget(const std::shared_ptr<AppManifest>& manifest, lv_obj_t* list) {
const void* icon = !manifest->appIcon.empty() ? manifest->appIcon.c_str() : TT_ASSETS_APP_ICON_FALLBACK; const void* icon = !manifest->appIcon.empty() ? manifest->appIcon.c_str() : LVGL_SYMBOL_TOOLBAR;
lv_obj_t* btn = lv_list_add_button(list, icon, manifest->appName.c_str()); lv_obj_t* btn = lv_list_add_button(list, icon, manifest->appName.c_str());
lv_obj_t* image = lv_obj_get_child(btn, 0);
lv_obj_set_style_text_font(image, LVGL_SYMBOL_FONT_DEFAULT, LV_PART_MAIN);
lv_obj_add_event_cb(btn, &onAppPressed, LV_EVENT_SHORT_CLICKED, manifest.get()); lv_obj_add_event_cb(btn, &onAppPressed, LV_EVENT_SHORT_CLICKED, manifest.get());
} }

View File

@ -1,9 +1,10 @@
#include <Tactility/app/appdetails/AppDetails.h> #include <tactility/lvgl_fonts.h>
#include <Tactility/app/AppRegistration.h> #include <tactility/lvgl_symbols_shared.h>
#include <Tactility/service/loader/Loader.h>
#include <Tactility/lvgl/Toolbar.h>
#include <Tactility/Assets.h> #include <Tactility/app/AppRegistration.h>
#include <Tactility/app/appdetails/AppDetails.h>
#include <Tactility/lvgl/Toolbar.h>
#include <Tactility/service/loader/Loader.h>
#include <lvgl.h> #include <lvgl.h>
#include <algorithm> #include <algorithm>
@ -18,8 +19,10 @@ class AppSettingsApp final : public App {
} }
static void createAppWidget(const std::shared_ptr<AppManifest>& manifest, lv_obj_t* list) { static void createAppWidget(const std::shared_ptr<AppManifest>& manifest, lv_obj_t* list) {
const void* icon = !manifest->appIcon.empty() ? manifest->appIcon.c_str() : TT_ASSETS_APP_ICON_FALLBACK; const void* icon = !manifest->appIcon.empty() ? manifest->appIcon.c_str() : LVGL_SYMBOL_TOOLBAR;
lv_obj_t* btn = lv_list_add_button(list, icon, manifest->appName.c_str()); lv_obj_t* btn = lv_list_add_button(list, icon, manifest->appName.c_str());
lv_obj_t* image = lv_obj_get_child(btn, 0);
lv_obj_set_style_text_font(image, LVGL_SYMBOL_FONT_DEFAULT, LV_PART_MAIN);
lv_obj_add_event_cb(btn, &onAppPressed, LV_EVENT_SHORT_CLICKED, manifest.get()); lv_obj_add_event_cb(btn, &onAppPressed, LV_EVENT_SHORT_CLICKED, manifest.get());
} }
@ -59,6 +62,7 @@ public:
extern const AppManifest manifest = { extern const AppManifest manifest = {
.appId = "AppSettings", .appId = "AppSettings",
.appName = "Apps", .appName = "Apps",
.appIcon = LVGL_SYMBOL_APPS,
.appCategory = Category::Settings, .appCategory = Category::Settings,
.createApp = create<AppSettingsApp>, .createApp = create<AppSettingsApp>,
}; };

View File

@ -8,13 +8,13 @@
#include <Tactility/app/chat/ChatProtocol.h> #include <Tactility/app/chat/ChatProtocol.h>
#include <Tactility/app/AppManifest.h> #include <Tactility/app/AppManifest.h>
#include <Tactility/Assets.h>
#include <Tactility/Logger.h> #include <Tactility/Logger.h>
#include <Tactility/lvgl/LvglSync.h> #include <Tactility/lvgl/LvglSync.h>
#include <algorithm> #include <algorithm>
#include <cctype> #include <cctype>
#include <cstdlib> #include <cstdlib>
#include <tactility/lvgl_symbols_shared.h>
#include <vector> #include <vector>
namespace tt::app::chat { namespace tt::app::chat {
@ -181,7 +181,7 @@ void ChatApp::switchChannel(const std::string& chatChannel) {
extern const AppManifest manifest = { extern const AppManifest manifest = {
.appId = "Chat", .appId = "Chat",
.appName = "Chat", .appName = "Chat",
.appIcon = TT_ASSETS_APP_ICON_CHAT, .appIcon = LVGL_SYMBOL_FORUM,
.createApp = create<ChatApp> .createApp = create<ChatApp>
}; };

View File

@ -13,6 +13,8 @@
#include <Tactility/service/loader/Loader.h> #include <Tactility/service/loader/Loader.h>
#include <Tactility/service/wifi/Wifi.h> #include <Tactility/service/wifi/Wifi.h>
#include <tactility/lvgl_symbols_shared.h>
#include <cstring> #include <cstring>
#include <lvgl.h> #include <lvgl.h>
@ -163,6 +165,7 @@ public:
extern const AppManifest manifest = { extern const AppManifest manifest = {
.appId = "Development", .appId = "Development",
.appName = "Development", .appName = "Development",
.appIcon = LVGL_SYMBOL_DEVICES,
.appCategory = Category::Settings, .appCategory = Category::Settings,
.createApp = create<DevelopmentApp> .createApp = create<DevelopmentApp>
}; };

View File

@ -1,13 +1,15 @@
#include <Tactility/Tactility.h> #include <Tactility/Tactility.h>
#include <tactility/lvgl_symbols_shared.h>
#ifdef ESP_PLATFORM #ifdef ESP_PLATFORM
#include <Tactility/service/displayidle/DisplayIdleService.h> #include <Tactility/service/displayidle/DisplayIdleService.h>
#endif #endif
#include <Tactility/settings/DisplaySettings.h>
#include <Tactility/Assets.h>
#include <Tactility/hal/display/DisplayDevice.h>
#include <Tactility/Logger.h> #include <Tactility/Logger.h>
#include <Tactility/hal/display/DisplayDevice.h>
#include <Tactility/lvgl/Toolbar.h> #include <Tactility/lvgl/Toolbar.h>
#include <Tactility/settings/DisplaySettings.h>
#include <lvgl.h> #include <lvgl.h>
@ -304,7 +306,7 @@ public:
extern const AppManifest manifest = { extern const AppManifest manifest = {
.appId = "Display", .appId = "Display",
.appName = "Display", .appName = "Display",
.appIcon = TT_ASSETS_APP_ICON_DISPLAY_SETTINGS, .appIcon = LVGL_SYMBOL_DISPLAY_SETTINGS,
.appCategory = Category::Settings, .appCategory = Category::Settings,
.createApp = create<DisplayApp> .createApp = create<DisplayApp>
}; };

View File

@ -39,7 +39,6 @@ public:
extern const AppManifest manifest = { extern const AppManifest manifest = {
.appId = "Files", .appId = "Files",
.appName = "Files", .appName = "Files",
.appIcon = TT_ASSETS_APP_ICON_FILES,
.appCategory = Category::System, .appCategory = Category::System,
.appFlags = AppManifest::Flags::Hidden, .appFlags = AppManifest::Flags::Hidden,
.createApp = create<FilesApp> .createApp = create<FilesApp>

View File

@ -58,7 +58,6 @@ public:
extern const AppManifest manifest = { extern const AppManifest manifest = {
.appId = "FileSelection", .appId = "FileSelection",
.appName = "File Selection", .appName = "File Selection",
.appIcon = TT_ASSETS_APP_ICON_FILES,
.appCategory = Category::System, .appCategory = Category::System,
.appFlags = AppManifest::Flags::Hidden, .appFlags = AppManifest::Flags::Hidden,
.createApp = create<FileSelection> .createApp = create<FileSelection>

View File

@ -10,6 +10,8 @@
#include <Tactility/service/gps/GpsState.h> #include <Tactility/service/gps/GpsState.h>
#include <Tactility/service/loader/Loader.h> #include <Tactility/service/loader/Loader.h>
#include <tactility/lvgl_symbols_shared.h>
#include <cstring> #include <cstring>
#include <format> #include <format>
#include <lvgl.h> #include <lvgl.h>
@ -453,7 +455,7 @@ public:
extern const AppManifest manifest = { extern const AppManifest manifest = {
.appId = "GpsSettings", .appId = "GpsSettings",
.appName = "GPS", .appName = "GPS",
.appIcon = LV_SYMBOL_GPS, .appIcon = LVGL_SYMBOL_NAVIGATION,
.appCategory = Category::Settings, .appCategory = Category::Settings,
.createApp = create<GpsSettingsApp> .createApp = create<GpsSettingsApp>
}; };

View File

@ -11,11 +11,12 @@
#include <Tactility/Preferences.h> #include <Tactility/Preferences.h>
#include <Tactility/RecursiveMutex.h> #include <Tactility/RecursiveMutex.h>
#include <Tactility/service/loader/Loader.h> #include <Tactility/service/loader/Loader.h>
#include <Tactility/Tactility.h>
#include <Tactility/Timer.h> #include <Tactility/Timer.h>
#include <format> #include <format>
#include <tactility/lvgl_symbols_shared.h>
namespace tt::app::i2cscanner { namespace tt::app::i2cscanner {
extern const AppManifest manifest; extern const AppManifest manifest;
@ -410,7 +411,7 @@ void I2cScannerApp::onScanTimerFinished() {
extern const AppManifest manifest = { extern const AppManifest manifest = {
.appId = "I2cScanner", .appId = "I2cScanner",
.appName = "I2C Scanner", .appName = "I2C Scanner",
.appIcon = TT_ASSETS_APP_ICON_I2C_SETTINGS, .appIcon = LVGL_SYMBOL_SEARCH,
.appCategory = Category::System, .appCategory = Category::System,
.createApp = create<I2cScannerApp> .createApp = create<I2cScannerApp>
}; };

View File

@ -3,9 +3,10 @@
#include <Tactility/Tactility.h> #include <Tactility/Tactility.h>
#include <Tactility/settings/KeyboardSettings.h> #include <Tactility/settings/KeyboardSettings.h>
#include <Tactility/Assets.h>
#include <Tactility/lvgl/Toolbar.h> #include <Tactility/lvgl/Toolbar.h>
#include <tactility/lvgl_symbols_shared.h>
#include <lvgl.h> #include <lvgl.h>
// Forward declare driver functions // Forward declare driver functions
@ -182,7 +183,7 @@ public:
extern const AppManifest manifest = { extern const AppManifest manifest = {
.appId = "KeyboardSettings", .appId = "KeyboardSettings",
.appName = "Keyboard", .appName = "Keyboard",
.appIcon = TT_ASSETS_APP_ICON_SETTINGS, .appIcon = LVGL_SYMBOL_KEYBOARD_ALT,
.appCategory = Category::Settings, .appCategory = Category::Settings,
.createApp = create<KeyboardSettingsApp> .createApp = create<KeyboardSettingsApp>
}; };

View File

@ -4,22 +4,24 @@
#include <Tactility/app/AppPaths.h> #include <Tactility/app/AppPaths.h>
#include <Tactility/app/AppRegistration.h> #include <Tactility/app/AppRegistration.h>
#include <Tactility/hal/power/PowerDevice.h> #include <Tactility/hal/power/PowerDevice.h>
#include <Tactility/lvgl/Lvgl.h>
#include <Tactility/service/loader/Loader.h> #include <Tactility/service/loader/Loader.h>
#include <Tactility/settings/BootSettings.h> #include <Tactility/settings/BootSettings.h>
#include <cstring> #include <cstring>
#include <lvgl.h> #include <lvgl.h>
#include <tactility/lvgl_fonts.h>
#include <tactility/lvgl_symbols_launcher.h>
namespace tt::app::launcher { namespace tt::app::launcher {
static const auto LOGGER = Logger("Launcher"); static const auto LOGGER = Logger("Launcher");
static int getButtonSize(hal::UiScale scale) { static int getButtonSize(hal::UiScale scale) {
if (scale == hal::UiScale::Smallest) { if (scale == hal::UiScale::Smallest) {
return 40; return 36; // icon size
} else { } else {
return 64; return 56;
} }
} }
@ -41,7 +43,9 @@ class LauncherApp final : public App {
// create the image first // create the image first
auto* button_image = lv_image_create(apps_button); auto* button_image = lv_image_create(apps_button);
lv_obj_set_style_text_font(button_image, LVGL_SYMBOL_FONT_LAUNCHER, LV_STATE_DEFAULT);
lv_image_set_src(button_image, imageFile); lv_image_set_src(button_image, imageFile);
lv_obj_set_style_text_color(button_image, lv_theme_get_color_primary(button_image), LV_STATE_DEFAULT);
// Recolor handling: // Recolor handling:
// For color builds use theme primary color // For color builds use theme primary color
@ -119,7 +123,6 @@ public:
auto button_size = getButtonSize(ui_scale); auto button_size = getButtonSize(ui_scale);
lv_obj_align(buttons_wrapper, LV_ALIGN_CENTER, 0, 0); lv_obj_align(buttons_wrapper, LV_ALIGN_CENTER, 0, 0);
// lv_obj_set_style_pad_all(buttons_wrapper, 0, LV_STATE_DEFAULT);
lv_obj_set_size(buttons_wrapper, LV_SIZE_CONTENT, LV_SIZE_CONTENT); lv_obj_set_size(buttons_wrapper, LV_SIZE_CONTENT, LV_SIZE_CONTENT);
lv_obj_set_style_border_width(buttons_wrapper, 0, LV_STATE_DEFAULT); lv_obj_set_style_border_width(buttons_wrapper, 0, LV_STATE_DEFAULT);
lv_obj_set_flex_grow(buttons_wrapper, 1); lv_obj_set_flex_grow(buttons_wrapper, 1);
@ -150,14 +153,9 @@ public:
margin = std::min<int32_t>(available_height / 16, button_size); margin = std::min<int32_t>(available_height / 16, button_size);
} }
const auto paths = app.getPaths(); createAppButton(buttons_wrapper, ui_scale, LVGL_SYMBOL_APPS, "AppList", margin, is_landscape_display);
const auto apps_icon_path = lvgl::PATH_PREFIX + paths->getAssetsPath("icon_apps.png"); createAppButton(buttons_wrapper, ui_scale, LVGL_SYMBOL_FOLDER, "Files", margin, is_landscape_display);
const auto files_icon_path = lvgl::PATH_PREFIX + paths->getAssetsPath("icon_files.png"); createAppButton(buttons_wrapper, ui_scale, LVGL_SYMBOL_SETTINGS, "Settings", margin, is_landscape_display);
const auto settings_icon_path = lvgl::PATH_PREFIX + paths->getAssetsPath("icon_settings.png");
createAppButton(buttons_wrapper, ui_scale, apps_icon_path.c_str(), "AppList", margin, is_landscape_display);
createAppButton(buttons_wrapper, ui_scale, files_icon_path.c_str(), "Files", margin, is_landscape_display);
createAppButton(buttons_wrapper, ui_scale, settings_icon_path.c_str(), "Settings", margin, is_landscape_display);
if (shouldShowPowerButton()) { if (shouldShowPowerButton()) {
auto* power_button = lv_btn_create(parent); auto* power_button = lv_btn_create(parent);

View File

@ -1,18 +1,16 @@
#include <Tactility/Assets.h>
#include <Tactility/RecursiveMutex.h> #include <Tactility/RecursiveMutex.h>
#include <Tactility/app/timezone/TimeZone.h>
#include <Tactility/app/localesettings/TextResources.h> #include <Tactility/app/localesettings/TextResources.h>
#include <Tactility/lvgl/Toolbar.h> #include <Tactility/lvgl/Toolbar.h>
#include <Tactility/lvgl/LvglSync.h>
#include <Tactility/service/loader/Loader.h> #include <Tactility/service/loader/Loader.h>
#include <Tactility/settings/Time.h> #include <Tactility/settings/Time.h>
#include <Tactility/StringUtils.h> #include <Tactility/StringUtils.h>
#include <Tactility/settings/Language.h> #include <Tactility/settings/Language.h>
#include <Tactility/settings/SystemSettings.h> #include <Tactility/settings/SystemSettings.h>
#include <tactility/lvgl_symbols_shared.h>
#include <lvgl.h> #include <lvgl.h>
#include <map> #include <map>
#include <sstream>
namespace tt::app::localesettings { namespace tt::app::localesettings {
@ -163,7 +161,7 @@ public:
extern const AppManifest manifest = { extern const AppManifest manifest = {
.appId = "LocaleSettings", .appId = "LocaleSettings",
.appName = "Region & Language", .appName = "Region & Language",
.appIcon = TT_ASSETS_APP_ICON_TIME_DATE_SETTINGS, .appIcon = LVGL_SYMBOL_LANGUAGE,
.appCategory = Category::Settings, .appCategory = Category::Settings,
.createApp = create<LocaleSettingsApp> .createApp = create<LocaleSettingsApp>
}; };

View File

@ -3,12 +3,12 @@
#include <Tactility/file/FileLock.h> #include <Tactility/file/FileLock.h>
#include <Tactility/lvgl/Toolbar.h> #include <Tactility/lvgl/Toolbar.h>
#include <Tactility/lvgl/LvglSync.h> #include <Tactility/lvgl/LvglSync.h>
#include <Tactility/service/loader/Loader.h>
#include <Tactility/Assets.h> #include <Tactility/Assets.h>
#include <Tactility/file/File.h> #include <Tactility/file/File.h>
#include <lvgl.h> #include <lvgl.h>
#include <tactility/lvgl_symbols_shared.h>
namespace tt::app::notes { namespace tt::app::notes {
@ -209,7 +209,7 @@ class NotesApp final : public App {
extern const AppManifest manifest = { extern const AppManifest manifest = {
.appId = "Notes", .appId = "Notes",
.appName = "Notes", .appName = "Notes",
.appIcon = TT_ASSETS_APP_ICON_NOTES, .appIcon = LVGL_SYMBOL_EDIT_NOTE,
.createApp = create<NotesApp> .createApp = create<NotesApp>
}; };

View File

@ -6,8 +6,9 @@
#include <Tactility/hal/power/PowerDevice.h> #include <Tactility/hal/power/PowerDevice.h>
#include <Tactility/Timer.h> #include <Tactility/Timer.h>
#include <Tactility/Assets.h>
#include <tactility/hal/Device.h> #include <tactility/hal/Device.h>
#include <tactility/lvgl_symbols_shared.h>
#include <lvgl.h> #include <lvgl.h>
@ -191,7 +192,7 @@ public:
extern const AppManifest manifest = { extern const AppManifest manifest = {
.appId = "Power", .appId = "Power",
.appName = "Power", .appName = "Power",
.appIcon = TT_ASSETS_APP_ICON_POWER_SETTINGS, .appIcon = LVGL_SYMBOL_ELECTRIC_BOLT,
.appCategory = Category::Settings, .appCategory = Category::Settings,
.createApp = create<PowerApp> .createApp = create<PowerApp>
}; };

View File

@ -15,6 +15,8 @@
#include <Tactility/lvgl/Toolbar.h> #include <Tactility/lvgl/Toolbar.h>
#include <Tactility/service/screenshot/Screenshot.h> #include <Tactility/service/screenshot/Screenshot.h>
#include <tactility/lvgl_symbols_shared.h>
namespace tt::app::screenshot { namespace tt::app::screenshot {
static const auto LOGGER = Logger("Screenshot"); static const auto LOGGER = Logger("Screenshot");
@ -283,7 +285,7 @@ void ScreenshotApp::onShow(AppContext& appContext, lv_obj_t* parent) {
extern const AppManifest manifest = { extern const AppManifest manifest = {
.appId = "Screenshot", .appId = "Screenshot",
.appName = "Screenshot", .appName = "Screenshot",
.appIcon = LV_SYMBOL_IMAGE, .appIcon = LVGL_SYMBOL_IMAGE,
.appCategory = Category::System, .appCategory = Category::System,
.createApp = create<ScreenshotApp> .createApp = create<ScreenshotApp>
}; };

View File

@ -2,8 +2,10 @@
#include <Tactility/lvgl/Toolbar.h> #include <Tactility/lvgl/Toolbar.h>
#include <Tactility/service/loader/Loader.h> #include <Tactility/service/loader/Loader.h>
#include <Tactility/Assets.h>
#include <tactility/check.h> #include <tactility/check.h>
#include <tactility/lvgl_symbols_shared.h>
#include <tactility/lvgl_fonts.h>
#include <lvgl.h> #include <lvgl.h>
#include <algorithm> #include <algorithm>
@ -17,9 +19,11 @@ static void onAppPressed(lv_event_t* e) {
static void createWidget(const std::shared_ptr<AppManifest>& manifest, void* parent) { static void createWidget(const std::shared_ptr<AppManifest>& manifest, void* parent) {
check(parent); check(parent);
auto* list = (lv_obj_t*)parent; auto* list = static_cast<lv_obj_t*>(parent);
const void* icon = !manifest->appIcon.empty() ? manifest->appIcon.c_str() : TT_ASSETS_APP_ICON_FALLBACK; const void* icon = !manifest->appIcon.empty() ? manifest->appIcon.c_str() : LVGL_SYMBOL_TOOLBAR;
auto* btn = lv_list_add_button(list, icon, manifest->appName.c_str()); auto* btn = lv_list_add_button(list, icon, manifest->appName.c_str());
lv_obj_t* image = lv_obj_get_child(btn, 0);
lv_obj_set_style_text_font(image, LVGL_SYMBOL_FONT_DEFAULT, LV_PART_MAIN);
lv_obj_add_event_cb(btn, &onAppPressed, LV_EVENT_SHORT_CLICKED, (void*)manifest.get()); lv_obj_add_event_cb(btn, &onAppPressed, LV_EVENT_SHORT_CLICKED, (void*)manifest.get());
} }
@ -48,7 +52,7 @@ class SettingsApp final : public App {
extern const AppManifest manifest = { extern const AppManifest manifest = {
.appId = "Settings", .appId = "Settings",
.appName = "Settings", .appName = "Settings",
.appIcon = TT_ASSETS_APP_ICON_SETTINGS, .appIcon = LVGL_SYMBOL_SETTINGS,
.appCategory = Category::System, .appCategory = Category::System,
.appFlags = AppManifest::Flags::Hidden, .appFlags = AppManifest::Flags::Hidden,
.createApp = create<SettingsApp> .createApp = create<SettingsApp>

View File

@ -10,6 +10,7 @@
#include <algorithm> #include <algorithm>
#include <format> #include <format>
#include <lvgl.h> #include <lvgl.h>
#include <tactility/lvgl_symbols_shared.h>
#include <utility> #include <utility>
#include <cstring> #include <cstring>
@ -701,7 +702,7 @@ class SystemInfoApp final : public App {
extern const AppManifest manifest = { extern const AppManifest manifest = {
.appId = "SystemInfo", .appId = "SystemInfo",
.appName = "System Info", .appName = "System Info",
.appIcon = TT_ASSETS_APP_ICON_SYSTEM_INFO, .appIcon = LVGL_SYMBOL_AREA_CHART,
.appCategory = Category::System, .appCategory = Category::System,
.createApp = create<SystemInfoApp> .createApp = create<SystemInfoApp>
}; };

View File

@ -1,4 +1,3 @@
#include <Tactility/Assets.h>
#include <Tactility/app/AppManifest.h> #include <Tactility/app/AppManifest.h>
#include <Tactility/app/timezone/TimeZone.h> #include <Tactility/app/timezone/TimeZone.h>
#include <Tactility/Logger.h> #include <Tactility/Logger.h>
@ -11,6 +10,8 @@
#include <lvgl.h> #include <lvgl.h>
#include <tactility/lvgl_symbols_shared.h>
namespace tt::app::timedatesettings { namespace tt::app::timedatesettings {
static const auto LOGGER = Logger("TimeDate"); static const auto LOGGER = Logger("TimeDate");
@ -154,7 +155,7 @@ public:
extern const AppManifest manifest = { extern const AppManifest manifest = {
.appId = "TimeDateSettings", .appId = "TimeDateSettings",
.appName = "Time & Date", .appName = "Time & Date",
.appIcon = TT_ASSETS_APP_ICON_TIME_DATE_SETTINGS, .appIcon = LVGL_SYMBOL_CALENDAR_MONTH,
.appCategory = Category::Settings, .appCategory = Category::Settings,
.createApp = create<TimeDateSettingsApp> .createApp = create<TimeDateSettingsApp>
}; };

View File

@ -3,11 +3,12 @@
#include <Tactility/Tactility.h> #include <Tactility/Tactility.h>
#include <Tactility/settings/TrackballSettings.h> #include <Tactility/settings/TrackballSettings.h>
#include <Tactility/Assets.h>
#include <Tactility/lvgl/Toolbar.h> #include <Tactility/lvgl/Toolbar.h>
#include <lvgl.h> #include <lvgl.h>
#include <tactility/lvgl_symbols_shared.h>
// Forward declare driver functions // Forward declare driver functions
namespace trackball { namespace trackball {
void setEnabled(bool enabled); void setEnabled(bool enabled);
@ -209,7 +210,7 @@ public:
extern const AppManifest manifest = { extern const AppManifest manifest = {
.appId = "TrackballSettings", .appId = "TrackballSettings",
.appName = "Trackball", .appName = "Trackball",
.appIcon = TT_ASSETS_APP_ICON_SETTINGS, .appIcon = LVGL_SYMBOL_CIRCLE,
.appCategory = Category::Settings, .appCategory = Category::Settings,
.createApp = create<TrackballSettingsApp> .createApp = create<TrackballSettingsApp>
}; };

View File

@ -1,12 +1,12 @@
#include "Tactility/app/App.h" #include <Tactility/app/App.h>
#include "Tactility/app/AppManifest.h" #include <Tactility/app/AppManifest.h>
#include "Tactility/lvgl/Toolbar.h"
#include <Tactility/CoreDefines.h>
#include <Tactility/hal/usb/Usb.h> #include <Tactility/hal/usb/Usb.h>
#include <Tactility/lvgl/Toolbar.h>
#include <lvgl.h> #include <lvgl.h>
#include <tactility/lvgl_symbols_shared.h>
#define TAG "usb_settings" #define TAG "usb_settings"
namespace tt::app::usbsettings { namespace tt::app::usbsettings {
@ -62,7 +62,7 @@ class UsbSettingsApp : public App {
extern const AppManifest manifest = { extern const AppManifest manifest = {
.appId = "UsbSettings", .appId = "UsbSettings",
.appName = "USB", .appName = "USB",
.appIcon = LV_SYMBOL_USB, .appIcon = LVGL_SYMBOL_USB,
.appCategory = Category::Settings, .appCategory = Category::Settings,
.createApp = create<UsbSettingsApp> .createApp = create<UsbSettingsApp>
}; };

View File

@ -12,6 +12,7 @@
#include <Tactility/Logger.h> #include <Tactility/Logger.h>
#include <lvgl.h> #include <lvgl.h>
#include <tactility/lvgl_symbols_shared.h>
#include <esp_netif.h> #include <esp_netif.h>
#include <esp_wifi.h> #include <esp_wifi.h>
@ -417,7 +418,7 @@ public:
extern const AppManifest manifest = { extern const AppManifest manifest = {
.appId = "WebServerSettings", .appId = "WebServerSettings",
.appName = "Web Server", .appName = "Web Server",
.appIcon = TT_ASSETS_APP_ICON_SETTINGS, .appIcon = LVGL_SYMBOL_CLOUD,
.appCategory = Category::System, .appCategory = Category::System,
.createApp = create<WebServerSettingsApp> .createApp = create<WebServerSettingsApp>
}; };

View File

@ -9,6 +9,8 @@
#include <Tactility/lvgl/LvglSync.h> #include <Tactility/lvgl/LvglSync.h>
#include <Tactility/service/loader/Loader.h> #include <Tactility/service/loader/Loader.h>
#include <tactility/lvgl_symbols_shared.h>
namespace tt::app::wifimanage { namespace tt::app::wifimanage {
static const auto LOGGER = Logger("WifiManage"); static const auto LOGGER = Logger("WifiManage");
@ -142,7 +144,7 @@ void WifiManage::onHide(AppContext& app) {
extern const AppManifest manifest = { extern const AppManifest manifest = {
.appId = "WifiManage", .appId = "WifiManage",
.appName = "Wi-Fi", .appName = "Wi-Fi",
.appIcon = LV_SYMBOL_WIFI, .appIcon = LVGL_SYMBOL_WIFI,
.appCategory = Category::Settings, .appCategory = Category::Settings,
.createApp = create<WifiManage> .createApp = create<WifiManage>
}; };