Ken Van Hoeylandt 0f12fcce53
New themes (#677)
- Implemented themes with LSS: material, material mono
- Implemented grid-based navigation
- Added new Launcher
- Updated Appearance app to add theme configuration
- Updated various apps to improve UX/UI
- Added LVGL widgets: cards, badges, chips, icon buttons
- Added support for round/rounded displays
- Added the concept of insets to LVGL and implemented it in toolbar + statusbar
- Terminal app now hides toolbar by default, but tapping the terminal toggles visibility
- File browsing now opens the configured user-data location by default
- Added missing licenses to subprojects
- Updated README.md screenshots and intro text
2026-10-07 23:00:09 +02:00

48 lines
1.6 KiB
C

// SPDX-License-Identifier: Apache-2.0
#pragma once
#include <stddef.h>
#include <tactility/error.h>
#ifdef __cplusplus
extern "C" {
#endif
#define FILE_MAX_PATH_LENGTH 255
#define FILE_MAX_PATH_STRING_LENGTH (FILE_MAX_PATH_LENGTH + 1)
/**
* @brief Get the root path of the storage that holds the user data (e.g. the SD card).
* @param[out] out_path buffer to store the path (no trailing "/")
* @param[in] out_path_size size of the output buffer
* @retval ERROR_NOT_FOUND if the configured storage location isn't available (e.g. no SD card)
* @retval ERROR_BUFFER_OVERFLOW if out_path_size is too small
* @retval ERROR_NONE on success
*/
error_t paths_get_data_root_path(char* out_path, size_t out_path_size);
/**
* @brief Get the root path for user data. Survives OS upgrades.
* @param[out] out_path buffer to store the path (no trailing "/")
* @param[in] out_path_size size of the output buffer
* @retval ERROR_NOT_FOUND if the configured storage location isn't available (e.g. no SD card)
* @retval ERROR_BUFFER_OVERFLOW if out_path_size is too small
* @retval ERROR_NONE on success
*/
error_t paths_get_data_path(char* out_path, size_t out_path_size);
/**
* @brief Get the path for temporary files, under the data path (no trailing "/").
* @param[out] out_path buffer to store the path (no trailing "/")
* @param[in] out_path_size size of the output buffer
* @retval ERROR_NOT_FOUND if the configured storage location isn't available (e.g. no SD card)
* @retval ERROR_BUFFER_OVERFLOW if out_path_size is too small
* @retval ERROR_NONE on success
*/
error_t paths_get_temp_path(char* out_path, size_t out_path_size);
#ifdef __cplusplus
}
#endif