Restore shared status-bar separator at y=26 on all top bars.
Mode select and mode home pages now draw the same continuous divider after status icons. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
766f7ee0ba
commit
141f232b91
|
|
@ -228,8 +228,9 @@ uint8_t UI_SetFocus(uint8_t widget_id)
|
||||||
|
|
||||||
void UI_DrawStatusSepLine(void)
|
void UI_DrawStatusSepLine(void)
|
||||||
{
|
{
|
||||||
/* 模式选择等页不需要顶栏底部分割线,保留空实现以免局部刷新再画出 */
|
/* 与模式选择/各模式主页统一:状态栏底部分割线 y=26 */
|
||||||
(void)0;
|
LCD_DrawLine(0, UI0902_STATUS_SEP_Y, 239, UI0902_STATUS_SEP_Y,
|
||||||
|
UI0902_STATUS_SEP_COLOR);
|
||||||
}
|
}
|
||||||
|
|
||||||
void label_top()
|
void label_top()
|
||||||
|
|
@ -239,6 +240,7 @@ void label_top()
|
||||||
Draw_Volume_Bar(UI0902_VOL_X, UI0902_VOL_Y, level, 1, WHITE, GRAY);
|
Draw_Volume_Bar(UI0902_VOL_X, UI0902_VOL_Y, level, 1, WHITE, GRAY);
|
||||||
Show_BL_Icon(mGuiData[GUI_BL_SW].Current);
|
Show_BL_Icon(mGuiData[GUI_BL_SW].Current);
|
||||||
Show_Battery_Icon(usb_charging_state);
|
Show_Battery_Icon(usb_charging_state);
|
||||||
|
UI_DrawStatusSepLine();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 小节选择刷新(占位,实际绘制在 UI_SongMode 内部) */
|
/* 小节选择刷新(占位,实际绘制在 UI_SongMode 内部) */
|
||||||
|
|
@ -317,6 +319,7 @@ void Show_BL_Icon(uint8_t value)
|
||||||
s_bt_pwr = (int8_t)value;
|
s_bt_pwr = (int8_t)value;
|
||||||
BSP_BlueToothPowerEnable(value);
|
BSP_BlueToothPowerEnable(value);
|
||||||
}
|
}
|
||||||
|
UI_DrawStatusSepLine();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Draw_Status_Battery_Icon(uint8_t battery_percent)
|
void Draw_Status_Battery_Icon(uint8_t battery_percent)
|
||||||
|
|
@ -369,6 +372,7 @@ void Draw_Status_Battery_Icon(uint8_t battery_percent)
|
||||||
gImage_UI0902_BatteryOutline_29x12, BLACK);
|
gImage_UI0902_BatteryOutline_29x12, BLACK);
|
||||||
LCD_ShowString(text_x, text_y, Info, WHITE, UI0902_BG_COLOR,
|
LCD_ShowString(text_x, text_y, Info, WHITE, UI0902_BG_COLOR,
|
||||||
UI0902_BATTERY_TEXT_SIZE, 0);
|
UI0902_BATTERY_TEXT_SIZE, 0);
|
||||||
|
UI_DrawStatusSepLine();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Show_Battery_Icon(uint8_t flag)
|
void Show_Battery_Icon(uint8_t flag)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue