Skip to content

Conversation

@philmoz
Copy link
Collaborator

@philmoz philmoz commented Jan 25, 2026

Changes:

  • Add simple publish/subscribe messaging to simplify UI code.
  • Consolidate code that blocks main UI task into a single function.
  • Ensure our LVGL setup is properly initialised before creating any windows.
  • Remove unnecessary icons.
  • General housekeeping.
  • ensure backlight on brightness is not lower than off brightness when loading settings

@philmoz philmoz added this to the 3.0 milestone Jan 25, 2026
@philmoz philmoz added color Related generally to color LCD radios UX-UI Related to user experience (UX) or user interface (UI) behaviour house keeping 🧹 Cleanup of code and house keeping labels Jan 25, 2026
Copy link
Member

@pfeerick pfeerick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Liking the code removal and consolidation! Now to find out how many bugs are hiding! 😆

return confirmed;
}

//-----------------------------------------------------------------------------
Copy link
Member

@pfeerick pfeerick Jan 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the rationale behind these... I can understand at the end of long header lists or to logically divide sections of a file up, but at the end?

if (UNEXPECTED_SHUTDOWN()) {
#if defined(COLORLCD)
drawFatalErrorScreen(STR_EMERGENCY_MODE);
backlightEnable(100);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we not use BACKLIGHT_LEVEL_MAX or BACKLIGHT_FORCED_ON here rather than magic numbers? And the other places where this has been done in this PR?

if ((BACKLIGHT_LEVEL_MAX - g_eeGeneral.backlightBright) < g_eeGeneral.blOffBright)
g_eeGeneral.backlightBright =
BACKLIGHT_LEVEL_MAX - g_eeGeneral.blOffBright;
#endif
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Naughty, naughty, this isn't cleanup! lol

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's to catch any misalignments in old configs. It was being done in the UI code; but only if you edited the backlight settings.

@pfeerick pfeerick changed the title chore(color): UI code cleanup (part 2) chore(color): implement publish/subscribe message to simply code and further code consolidation Jan 26, 2026
@pfeerick pfeerick changed the title chore(color): implement publish/subscribe message to simply code and further code consolidation chore(color): implement publish/subscribe messaging to simply code and further code consolidation Jan 26, 2026
@pfeerick pfeerick changed the title chore(color): implement publish/subscribe messaging to simply code and further code consolidation chore(color): implement publish/subscribe messaging to simplify code and further code consolidation Jan 26, 2026
@philmoz
Copy link
Collaborator Author

philmoz commented Jan 26, 2026

Now to find out how many bugs are hiding! 😆

42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

color Related generally to color LCD radios house keeping 🧹 Cleanup of code and house keeping UX-UI Related to user experience (UX) or user interface (UI) behaviour

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants