Skip to content

Improve system theme and appearance settings - #2799

Open
bakuur wants to merge 1 commit into
pyfa-org:masterfrom
bakuur:Dark-Mode
Open

Improve system theme and appearance settings#2799
bakuur wants to merge 1 commit into
pyfa-org:masterfrom
bakuur:Dark-Mode

Conversation

@bakuur

@bakuur bakuur commented Sep 6, 2026

Copy link
Copy Markdown

Summary

  • Add a Preferences appearance setting (System / Light / Dark) and apply it at startup via wx.App.SetAppearance.
  • Replace hardcoded light-gray/white control backgrounds with system colors so preference fields and ship-browser buttons follow the active theme.
  • Allow dark-mode detection on Windows (gui.utils.dark.isDark no longer short-circuits on wxMSW).
  • Bump wxPython from 4.2.1 to 4.3.0 so appearance APIs are available.
  • Ignore the local run.ps1 launcher so it is not committed.

Test plan

  • Start Pyfa on Windows and confirm it launches with the default System appearance.
  • Preferences -> General: switch Appearance to Dark, restart, confirm the UI uses a dark theme.
  • Switch to Light, restart, confirm a light theme.
  • Check Database and Logging preference path fields, plus ship-browser bitmap buttons, for readable backgrounds in both themes.
  • Confirm existing fittings and graphs still open after the wxPython 4.3.0 bump.

…ate wxPython version and adjust background colors for better integration with system themes. Add local launcher script to .gitignore.
@bakuur

bakuur commented Sep 6, 2026

Copy link
Copy Markdown
Author
image

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