Skip to content

Conversation

@oznogon
Copy link
Contributor

@oznogon oznogon commented Jan 4, 2026

GuiKeyValueDisplay::setColor() overrides only the background color of a key-value display, because theme colors for key and value are given precedence over the override.

  • Refactor setColor() to override all theme colors, including key and value text and any icon.
  • Add setBackColor(), setKeyColor(), and setValueColor() to override only the background, key and icon, and value, respectively.
  • Replace existing uses of setColor() on Science, Engineering, and DamCon with setBackColor() to preserve the existing behavior.

This PR shouldn't change anything in the UI, and is a prerequisite for more granular key-value theming and control over UI overrides.

GuiKeyValueDisplay::setColor() now overrides all theme colors
instead of only the background color. Adds setBackColor(),
setKeyColor(), and setValueColor() functions to allow more specific
overrides, and useThemeColors() to reset overridden colors.
To avoid making any changes to UI behavior, replace
GuiKeyValueDisplay::setColor() uses with setBackColor(), which also
more accurately reflects what it does.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant