Skip to content

fix(app): connect font size setting to CSS variables and terminal#14821

Closed
praxstack wants to merge 2 commits intoanomalyco:devfrom
praxstack:fix/font-size-settings
Closed

fix(app): connect font size setting to CSS variables and terminal#14821
praxstack wants to merge 2 commits intoanomalyco:devfrom
praxstack:fix/font-size-settings

Conversation

@praxstack
Copy link
Copy Markdown

@praxstack praxstack commented Feb 23, 2026

Issue for this PR

Closes #14823

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

The appearance.fontSize setting existed in the data model (default: 14) but was disconnected — never applied to the DOM, terminal hardcoded 14, and no UI control existed.

Three fixes:

  1. settings.tsx — Added createEffect that applies fontSize to CSS custom properties (--font-size-base, --font-size-small, --font-size-large)
  2. terminal.tsx — Replaced hardcoded fontSize: 14 with settings.appearance.fontSize()
  3. settings-general.tsx — Added font size stepper (−/+ buttons, 10-24px range) under Appearance section

How did you verify your code works?

  • All 12 typecheck tasks pass
  • Tested locally with bun run --cwd packages/desktop tauri dev
  • Changed font size via Settings > Appearance, confirmed chat text and terminal update live
  • Confirmed setting persists after app reload

Screenshots / recordings

Font size stepper appears in Settings > General > Appearance, below the font family picker.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

- Add createEffect that applies fontSize to CSS custom properties
  (--font-size-base, --font-size-small, --font-size-large)
- Replace hardcoded fontSize: 14 in terminal with settings value
- Add font size stepper control (10-24px) in Settings > Appearance
@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. needs:issue labels Feb 23, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions github-actions Bot removed needs:issue needs:compliance This means the issue will auto-close after 2 hours. labels Feb 23, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

@github-actions
Copy link
Copy Markdown
Contributor

Closing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR.

@github-actions github-actions Bot closed this Apr 25, 2026
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.

Font size setting not applied to UI or terminal

1 participant