mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 19:03:16 +00:00
**New Features** * Runtime font accessors and new symbol fonts for text, launcher, statusbar, and shared icons. * Added font height base setting to device.properties * Text fonts now have 3 sizes: small, default, large **Improvements** * Renamed `UiScale` to `UiDensity` * Statusbar, toolbar and many UI components now compute heights and spacing from fonts/density. * SSD1306 initialization sequence refined for more stable startup. * Multiple image assets replaced by symbol-font rendering. * Many layout improvements related to density, font scaling and icon scaling * Updated folder name capitalization for newer style
29 lines
1.0 KiB
CMake
29 lines
1.0 KiB
CMake
if (NOT WIN32)
|
|
string(ASCII 27 Esc)
|
|
set(ColorReset "${Esc}[m")
|
|
set(Cyan "${Esc}[36m")
|
|
else ()
|
|
set(ColorReset "")
|
|
set(Cyan "")
|
|
endif ()
|
|
|
|
|
|
include("${CMAKE_CURRENT_LIST_DIR}/properties.cmake")
|
|
|
|
function(INIT_TACTILITY_GLOBALS SDKCONFIG_FILE)
|
|
GET_PROPERTY_FILE_CONTENT(${SDKCONFIG_FILE} sdkconfig_text)
|
|
# Get device id
|
|
GET_PROPERTY_VALUE(sdkconfig_text "CONFIG_TT_DEVICE_ID" device_id)
|
|
# Validate device id
|
|
if (NOT device_id MATCHES "^[a-z0-9\-]*$")
|
|
message(FATAL_ERROR "Device identifier ${device_id} contains invalid characters. Valid characters: a-z 0-9 \"-\"")
|
|
endif ()
|
|
# Output results
|
|
message("Device identifier: ${Cyan}${device_id}${ColorReset}")
|
|
set(TACTILITY_DEVICE_PROJECT ${device_id})
|
|
message("Device project path: ${Cyan}Devices/${TACTILITY_DEVICE_PROJECT}${ColorReset} ")
|
|
message("")
|
|
set_property(GLOBAL PROPERTY TACTILITY_DEVICE_PROJECT ${TACTILITY_DEVICE_PROJECT})
|
|
set_property(GLOBAL PROPERTY TACTILITY_DEVICE_ID ${device_id})
|
|
endfunction()
|