From 384da9fd0fd6eae925a7d412af2df6de5520b955 Mon Sep 17 00:00:00 2001 From: zczc365 <158059821+Zc365@users.noreply.github.com> Date: Sun, 14 Sep 2025 13:51:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=B0=8F=E6=99=BA=E4=BA=91=E8=81=8Acompile?= =?UTF-8?q?=20error=20(#1195)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main/boards/yunliao-s3/yunliao_s3.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/main/boards/yunliao-s3/yunliao_s3.cc b/main/boards/yunliao-s3/yunliao_s3.cc index 786e5b4d..f8e43e8d 100644 --- a/main/boards/yunliao-s3/yunliao_s3.cc +++ b/main/boards/yunliao-s3/yunliao_s3.cc @@ -1,3 +1,4 @@ +#include "lvgl_theme.h" #include "dual_network_board.h" #include "codecs/es8388_audio_codec.h" #include "display/lcd_display.h" @@ -82,7 +83,6 @@ private: }); boot_button_.OnMultipleClick([this]() { ESP_LOGI(TAG, "Button OnThreeClick"); - auto& app = Application::GetInstance(); if (GetNetworkType() == NetworkType::WIFI) { auto& wifi_board = static_cast(GetCurrentBoard()); wifi_board.ResetWifiConfiguration(); @@ -127,7 +127,11 @@ private: DISPLAY_HEIGHT, DISPLAY_OFFSET_X, DISPLAY_OFFSET_Y, DISPLAY_MIRROR_X, DISPLAY_MIRROR_Y, DISPLAY_SWAP_XY); - display_->SetTheme("dark"); + auto& theme_manager = LvglThemeManager::GetInstance(); + auto theme = theme_manager.GetTheme("dark"); + if (theme != nullptr) { + display_->SetTheme(theme); + } } public: