Skip to content

Hoist hardcoded colors and strings to OpticsLabColors and i18n - #18

Merged
veillette merged 1 commit into
mainfrom
claude/hoist-colors-strings-i18n-1kYCw
Mar 20, 2026
Merged

veillette merged 1 commit into
mainfrom
claude/hoist-colors-strings-i18n-1kYCw

Conversation

@veillette

Copy link
Copy Markdown
Collaborator
  • Add blockerFillProperty, glassBorderStrokeProperty,
    measuringTapeTextColorProperty, measuringTapeBackgroundColorProperty,
    wavelengthThumbStrokeProperty, and halfPlaneGlassFill() to
    OpticsLabColors.ts so all colours are profile-aware.
  • CircleBlockerView: use OpticsLabColors.blockerFillProperty /
    blockerBackStrokeProperty instead of local constants.
  • CircleGlassView: use OpticsLabColors.glassFillProperty /
    glassStrokeProperty (same values already defined there).
  • HalfPlaneGlassView: use OpticsLabColors.glassBorderStrokeProperty
    and the new halfPlaneGlassFill() helper.
  • SymmetricWavelengthThumb: use OpticsLabColors.wavelengthThumbStrokeProperty.
  • EditControlHelpers: use OpticsLabColors.overlayInputBackgroundProperty /
    overlayInputBorderProperty (matching values already in colors file);
    use i18n wavelengthStringProperty for the λ label.
  • SimScreenView: use OpticsLabColors for measuring tape text/background
    colours; use i18n metersUnitStringProperty for the unit name.
  • Add ui.metersUnit and controls.wavelength to strings_en.json and
    strings_fr.json; expose them through StringManager.

https://claude.ai/code/session_01LazmDycdJFcxjWRsS49ibG

- Add blockerFillProperty, glassBorderStrokeProperty,
  measuringTapeTextColorProperty, measuringTapeBackgroundColorProperty,
  wavelengthThumbStrokeProperty, and halfPlaneGlassFill() to
  OpticsLabColors.ts so all colours are profile-aware.
- CircleBlockerView: use OpticsLabColors.blockerFillProperty /
  blockerBackStrokeProperty instead of local constants.
- CircleGlassView: use OpticsLabColors.glassFillProperty /
  glassStrokeProperty (same values already defined there).
- HalfPlaneGlassView: use OpticsLabColors.glassBorderStrokeProperty
  and the new halfPlaneGlassFill() helper.
- SymmetricWavelengthThumb: use OpticsLabColors.wavelengthThumbStrokeProperty.
- EditControlHelpers: use OpticsLabColors.overlayInputBackgroundProperty /
  overlayInputBorderProperty (matching values already in colors file);
  use i18n wavelengthStringProperty for the λ label.
- SimScreenView: use OpticsLabColors for measuring tape text/background
  colours; use i18n metersUnitStringProperty for the unit name.
- Add ui.metersUnit and controls.wavelength to strings_en.json and
  strings_fr.json; expose them through StringManager.

https://claude.ai/code/session_01LazmDycdJFcxjWRsS49ibG
@veillette
veillette merged commit 38fe2e0 into main Mar 20, 2026
1 check passed
@veillette
veillette deleted the claude/hoist-colors-strings-i18n-1kYCw branch March 26, 2026 15:43
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.

2 participants