瀏覽代碼

Fix MKS UI missing font select condition (#21905)

Moonglow 4 年之前
父節點
當前提交
376f0be5da
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      Marlin/src/lcd/extui/mks_ui/draw_ui.cpp

+ 1
- 1
Marlin/src/lcd/extui/mks_ui/draw_ui.cpp 查看文件

374
   style_sel_text.body.grad_color  = LV_COLOR_BACKGROUND;
374
   style_sel_text.body.grad_color  = LV_COLOR_BACKGROUND;
375
   style_sel_text.text.color       = LV_COLOR_YELLOW;
375
   style_sel_text.text.color       = LV_COLOR_YELLOW;
376
   style_sel_text.text.sel_color   = LV_COLOR_YELLOW;
376
   style_sel_text.text.sel_color   = LV_COLOR_YELLOW;
377
-  style_sel_text.text.font        = &gb2312_puhui32;
377
+  style_sel_text.text.font        = TERN(HAS_SPI_FLASH_FONT, &gb2312_puhui32, LV_FONT_DEFAULT);
378
   style_sel_text.line.width       = 0;
378
   style_sel_text.line.width       = 0;
379
   style_sel_text.text.letter_space  = 0;
379
   style_sel_text.text.letter_space  = 0;
380
   style_sel_text.text.line_space    = -5;
380
   style_sel_text.text.line_space    = -5;

Loading…
取消
儲存