chore(color): cleanup UI code (#6989)

This commit is contained in:
philmoz
2026-01-21 12:48:24 +10:00
committed by GitHub
parent ca21f02afc
commit b0ecde2842
207 changed files with 1204 additions and 1208 deletions
+1 -1
View File
@@ -21,8 +21,8 @@
#include "stm32_hal_ll.h"
#include "colors.h"
#include "definitions.h"
#include "libopenui_defines.h"
#include "dma2d.h"
#if !LV_USE_GPU_STM32_DMA2D
+7 -1
View File
@@ -19,12 +19,16 @@
* GNU General Public License for more details.
*/
#include "edgetx.h"
#include "battery_driver.h"
#include "boards/generic_stm32/rgb_leds.h"
#undef UNUSED
#include "bsp_io.h"
#include "edgetx.h"
#include "mainwindow.h"
#include "static.h"
#include "stm32_ws2812.h"
#include "LvglWrapper.h"
#define __BATTERY_DRIVER_C__
@@ -267,6 +271,8 @@ void drawChargingInfo(uint16_t chargeState) {
}
if (chargeWindow == nullptr) {
// Ensure lvgl is initialised before creating windows
LvglWrapper::instance();
chargeWindow = new Window(MainWindow::instance(), {0, 0, LCD_W, LCD_H});
etx_solid_bg(chargeWindow->getLvObj(), COLOR_THEME_PRIMARY1_INDEX);
+1 -4
View File
@@ -46,16 +46,13 @@
#include "globals.h"
#include "sdcard.h"
#include "debug.h"
#include "keys.h"
#include "flysky_gimbal_driver.h"
#include "timers_driver.h"
#include "battery_driver.h"
#include "bitmapbuffer.h"
#include "colors.h"
#include <string.h>
// common ADC driver
+7 -1
View File
@@ -19,9 +19,13 @@
* GNU General Public License for more details.
*/
#include "edgetx.h"
#include "battery_driver.h"
#include "boards/generic_stm32/rgb_leds.h"
#include "edgetx.h"
#include "mainwindow.h"
#include "static.h"
#include "LvglWrapper.h"
#define __BATTERY_DRIVER_C__
@@ -403,6 +407,8 @@ void drawChargingInfo(uint16_t chargeState) {
}
if (chargeWindow == nullptr) {
// Ensure lvgl is initialised before creating windows
LvglWrapper::instance();
chargeWindow = new Window(MainWindow::instance(), {0, 0, LCD_W, LCD_H});
etx_solid_bg(chargeWindow->getLvObj(), COLOR_THEME_PRIMARY1_INDEX);
+1 -3
View File
@@ -42,6 +42,7 @@
#include "sdcard.h"
#include "touch.h"
#include "debug.h"
#include "keys.h"
#if defined(AUDIO_SPI)
#include "vs1053b.h"
@@ -51,9 +52,6 @@
#include "battery_driver.h"
#include "touch_driver.h"
#include "bitmapbuffer.h"
#include "colors.h"
#include <string.h>
// Common ADC driver
+7 -1
View File
@@ -19,10 +19,14 @@
* GNU General Public License for more details.
*/
#include "edgetx.h"
#include "battery_driver.h"
#include "boards/generic_stm32/rgb_leds.h"
#include "bsp_io.h"
#include "edgetx.h"
#include "mainwindow.h"
#include "static.h"
#include "LvglWrapper.h"
#define __BATTERY_DRIVER_C__
@@ -260,6 +264,8 @@ void drawChargingInfo(uint16_t chargeState) {
}
if (chargeWindow == nullptr) {
// Ensure lvgl is initialised before creating windows
LvglWrapper::instance();
chargeWindow = new Window(MainWindow::instance(), {0, 0, LCD_W, LCD_H});
etx_solid_bg(chargeWindow->getLvObj(), COLOR_THEME_PRIMARY1_INDEX);
+1
View File
@@ -47,6 +47,7 @@
#include "globals.h"
#include "sdcard.h"
#include "debug.h"
#include "keys.h"
#include "flysky_gimbal_driver.h"
#include "timers_driver.h"
@@ -47,9 +47,6 @@
#include "extram_driver.h"
#include "extflash_driver.h"
#include "bitmapbuffer.h"
#include "colors.h"
#include <string.h>
// common ADC driver