fix(color): LVGLify themes page and fix several possible string handling issues (#3135)
* Convert theme select, theme edit and color edit pages to LVGL flex. Add 'Edit Color' string to language files (requires translations). Simplify theme edit 'onCancel' logic. Fix size of buttons in ConfirmDialog for portrait layout. Truncate item strings in ListBox to fit available space. Set window background color on Page and TabsGroup classes instead of using 'paint' function. Replace strncpy and strncat with strAppend - avoid possible unterminated strings and string overrun. Truncate display of long name and author strings in theme pages. * Revert code to truncate ListBox entry strings as it causes other issues. * Adjust layout for theme color editor to fit large hex string size. * Remove unnecessary copying of the ThemeFile object being edited. Refresh TabsGroup page background color when theme changes. * Set selected theme in list on long press as well as short press. Comment out unused 'title' in ListBox. * Handle default theme like custom themes on SD card: - show logo when selecting theme - support background_WxH.png names for background images Use f_stat( via isFileAvailable) instead of opening and closing files to check for existence. * Remove debug print. * Fix rebase.
This commit is contained in:
@@ -742,6 +742,7 @@
|
||||
#define TR_LOADING "加载中..."
|
||||
#define TR_DELETE_THEME "删除主题?"
|
||||
#define TR_SAVE_THEME "保存主题?"
|
||||
#define TR_EDIT_COLOR "Edit Color"
|
||||
|
||||
#if defined(COLORLCD)
|
||||
#define TR_MODEL_QUICK_SELECT "快速选择模型"
|
||||
|
||||
@@ -742,6 +742,7 @@
|
||||
#define TR_LOADING "Načítání..."
|
||||
#define TR_DELETE_THEME "Smazat motiv?"
|
||||
#define TR_SAVE_THEME "Uložit motiv?"
|
||||
#define TR_EDIT_COLOR "Edit Color"
|
||||
|
||||
#if defined(COLORLCD)
|
||||
#define TR_MODEL_QUICK_SELECT "Rychlý výběr modelu"
|
||||
|
||||
@@ -748,6 +748,7 @@
|
||||
#define TR_LOADING "Indlæser..."
|
||||
#define TR_DELETE_THEME "Slet tema?"
|
||||
#define TR_SAVE_THEME "Gem tema?"
|
||||
#define TR_EDIT_COLOR "Edit Color"
|
||||
|
||||
#if defined(COLORLCD)
|
||||
#define TR_MODEL_QUICK_SELECT "Hurtigvalg af model"
|
||||
|
||||
@@ -740,6 +740,7 @@
|
||||
#define TR_LOADING "Wird geladen..."
|
||||
#define TR_DELETE_THEME "Theme löschen?"
|
||||
#define TR_SAVE_THEME "Theme speichern?"
|
||||
#define TR_EDIT_COLOR "Edit Color"
|
||||
|
||||
#if defined(COLORLCD)
|
||||
#define TR_MODEL_QUICK_SELECT "schnelle Modellauswahl"
|
||||
|
||||
@@ -741,6 +741,7 @@
|
||||
#define TR_LOADING "Loading..."
|
||||
#define TR_DELETE_THEME "Delete Theme?"
|
||||
#define TR_SAVE_THEME "Save Theme?"
|
||||
#define TR_EDIT_COLOR "Edit Color"
|
||||
|
||||
#if defined(COLORLCD)
|
||||
#define TR_MODEL_QUICK_SELECT "Model quick select"
|
||||
|
||||
@@ -742,6 +742,7 @@
|
||||
#define TR_LOADING "Loading..."
|
||||
#define TR_DELETE_THEME "Delete Theme?"
|
||||
#define TR_SAVE_THEME "Save Theme?"
|
||||
#define TR_EDIT_COLOR "Edit Color"
|
||||
|
||||
#if defined(COLORLCD)
|
||||
#define TR_MODEL_QUICK_SELECT "Model quick select"
|
||||
|
||||
@@ -754,6 +754,7 @@
|
||||
#define TR_LOADING "Loading..."
|
||||
#define TR_DELETE_THEME "Delete Theme?"
|
||||
#define TR_SAVE_THEME "Save Theme?"
|
||||
#define TR_EDIT_COLOR "Edit Color"
|
||||
|
||||
#if defined(COLORLCD)
|
||||
#define TR_MODEL_QUICK_SELECT "Mallin pikavalinta"
|
||||
|
||||
@@ -751,6 +751,7 @@
|
||||
#define TR_LOADING "Loading..."
|
||||
#define TR_DELETE_THEME "Delete Theme?"
|
||||
#define TR_SAVE_THEME "Save Theme?"
|
||||
#define TR_EDIT_COLOR "Edit Color"
|
||||
|
||||
#if defined(COLORLCD)
|
||||
#define TR_MODEL_QUICK_SELECT "Model quick select"
|
||||
|
||||
@@ -743,6 +743,7 @@
|
||||
#define TR_LOADING "Caricamento..."
|
||||
#define TR_DELETE_THEME "Cancello Tema?"
|
||||
#define TR_SAVE_THEME "Salvo Tema?"
|
||||
#define TR_EDIT_COLOR "Edit Color"
|
||||
|
||||
#if defined(COLORLCD)
|
||||
#define TR_MODEL_QUICK_SELECT "Selezione veloce modello"
|
||||
|
||||
@@ -742,6 +742,7 @@
|
||||
#define TR_LOADING "読み込み中..."
|
||||
#define TR_DELETE_THEME "テーマを削除しますか?"
|
||||
#define TR_SAVE_THEME "テーマを保存しますか?"
|
||||
#define TR_EDIT_COLOR "Edit Color"
|
||||
|
||||
#if defined(COLORLCD)
|
||||
#define TR_MODEL_QUICK_SELECT "モデル クイックセレクト"
|
||||
|
||||
@@ -746,6 +746,7 @@
|
||||
#define TR_LOADING "Loading..."
|
||||
#define TR_DELETE_THEME "Delete Theme?"
|
||||
#define TR_SAVE_THEME "Save Theme?"
|
||||
#define TR_EDIT_COLOR "Edit Color"
|
||||
|
||||
#if defined(COLORLCD)
|
||||
#define TR_MODEL_QUICK_SELECT "Model quick select"
|
||||
|
||||
@@ -739,6 +739,7 @@
|
||||
#define TR_LOADING "Ładowanie..."
|
||||
#define TR_DELETE_THEME "Usunąć motyw?"
|
||||
#define TR_SAVE_THEME "Zapisać motyw?"
|
||||
#define TR_EDIT_COLOR "Edit Color"
|
||||
|
||||
#if defined(COLORLCD)
|
||||
#define TR_MODEL_QUICK_SELECT "Szybki wybór modelu"
|
||||
|
||||
@@ -746,6 +746,7 @@
|
||||
#define TR_LOADING "Loading..."
|
||||
#define TR_DELETE_THEME "Delete Theme?"
|
||||
#define TR_SAVE_THEME "Save Theme?"
|
||||
#define TR_EDIT_COLOR "Edit Color"
|
||||
|
||||
#if defined(COLORLCD)
|
||||
#define TR_MODEL_QUICK_SELECT "Model quick select"
|
||||
|
||||
@@ -763,6 +763,7 @@
|
||||
#define TR_LOADING "Laddar..."
|
||||
#define TR_DELETE_THEME "Radera tema?"
|
||||
#define TR_SAVE_THEME "Spara tema?"
|
||||
#define TR_EDIT_COLOR "Edit Color"
|
||||
|
||||
#if defined(COLORLCD)
|
||||
#define TR_MODEL_QUICK_SELECT "Snabbval av modell"
|
||||
|
||||
@@ -741,6 +741,7 @@
|
||||
#define TR_LOADING "加載中..."
|
||||
#define TR_DELETE_THEME "刪除主題?"
|
||||
#define TR_SAVE_THEME "保存主題?"
|
||||
#define TR_EDIT_COLOR "Edit Color"
|
||||
|
||||
#if defined(COLORLCD)
|
||||
#define TR_MODEL_QUICK_SELECT "快速選擇模型"
|
||||
|
||||
Reference in New Issue
Block a user