Skip to content

initializr: default useLargerTextScaleBool to true in generated theme.css#4683

Merged
liannacasper merged 1 commit intomasterfrom
codex/set-uselargertextscalebool-default-to-true
Apr 1, 2026
Merged

initializr: default useLargerTextScaleBool to true in generated theme.css#4683
liannacasper merged 1 commit intomasterfrom
codex/set-uselargertextscalebool-default-to-true

Conversation

@liannacasper
Copy link
Copy Markdown
Collaborator

Motivation

  • New projects generated by the Initializr should opt in to larger text scaling by default so apps start with accessible text sizing.

Description

  • Injected a safe, idempotent useLargerTextScaleBool: true; into barebones/Kotlin theme.css when generating a project by adding ensureDefaultLargeTextScale and invoking it before buildThemeCss() in GeneratorModel.
  • The injection looks for an existing useLargerTextScaleBool and leaves the CSS unchanged if present, otherwise it adds the constant inside an existing #Constants block or appends a new #Constants block.
  • Added an assertion in GeneratorModelMatrixTest to verify barebones and Kotlin templates produce common/src/main/css/theme.css containing useLargerTextScaleBool: true;.
  • Modified files: scripts/initializr/common/src/main/java/com/codename1/initializr/model/GeneratorModel.java and scripts/initializr/common/src/test/java/com/codename1/initializr/model/GeneratorModelMatrixTest.java.

Testing

  • Attempted to run the matrix test with cd scripts/initializr/common && mvn -Dtest=GeneratorModelMatrixTest test but the environment failed to run Maven due to external resolution errors (Maven Central returned 403 for plugin resolution), so the test could not be executed here.
  • An attempted run with JAVA_HOME set also failed because the Java 8 path was not available in this environment, so no local test run succeeded.

Codex Task

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 1, 2026

Cloudflare Preview

@liannacasper liannacasper merged commit 9a4d8cd into master Apr 1, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant