Skip to content

Add switchable light mode - #858

Merged
chrxh merged 1 commit into
developfrom
features/LightMode
Sep 28, 2026
Merged

chrxh merged 1 commit into
developfrom
features/LightMode

Conversation

@chrxh

@chrxh chrxh commented Sep 26, 2026

Copy link
Copy Markdown
Owner

Summary

Adds a light mode that can be switched on and off via Settings > Light mode. The choice takes effect immediately and is persisted under settings.light mode.

Changes

  • Theme dependent colors in the Const palette are no longer const. StyleService::setupPalette() assigns them with the dark and the light value side by side in HSV. The dark values are unchanged, so the dark mode looks exactly as before.
  • A theme change is applied in StyleService::process() right before ImGui::NewFrame(). Changing the style during a frame would be reverted by pending PopStyleColor calls.
  • New palette colors replace a few hardcoded colors: dashboard cards and summary row, neural net editor labels and node fill, and the own reaction frame in the browser. TextStrongColor replaces pure white text.
  • The simulation view and everything drawn on top of it, the genome preview and the dashboard plot areas intentionally stay dark.

Known limitations

  • The brief highlight of tree nodes brightens the header and is barely visible in light mode.
  • Windows are 90% opaque, so light windows look slightly gray on top of the dark simulation.
  • The colored checkbox backgrounds, for example in mass operations, stay dark.

Testing

  • Release build
  • DataTests, EngineInterfaceTests, NetworkTests and PersisterTests pass

@chrxh
chrxh merged commit d70f9f8 into develop Sep 28, 2026
1 check passed
@chrxh
chrxh deleted the features/LightMode branch September 28, 2026 06:28
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