mirror of
https://github.com/InfiniTimeOrg/InfiniTime.git
synced 2024-10-22 15:11:51 +02:00
Merge 1efeeb31f7
into 3a0d673df4
This commit is contained in:
commit
ad40a25168
|
@ -37,10 +37,14 @@ void StatusIcons::Update() {
|
|||
batteryIcon.SetBatteryPercentage(batteryPercent);
|
||||
}
|
||||
|
||||
bleState = bleController.IsConnected();
|
||||
bleRadioEnabled = bleController.IsRadioEnabled();
|
||||
if (bleState.IsUpdated() || bleRadioEnabled.IsUpdated()) {
|
||||
lv_obj_set_hidden(bleIcon, !bleState.Get());
|
||||
if (bleRadioEnabled.IsUpdated()) {
|
||||
lv_obj_set_hidden(bleIcon, !bleRadioEnabled.Get());
|
||||
}
|
||||
|
||||
bleState = bleController.IsConnected();
|
||||
if (bleState.IsUpdated()) {
|
||||
lv_obj_set_style_local_text_color(bleIcon, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, bleState.Get()?LV_COLOR_BLUE:LV_COLOR_GRAY);
|
||||
}
|
||||
|
||||
lv_obj_realign(container);
|
||||
|
|
Loading…
Reference in a new issue