Skip to content

Let cell edit mode use the configured font (#720) - #721

Merged
Hirogen merged 1 commit into
Developmentfrom
fix/720-edit-mode-font
Oct 2, 2026
Merged

Hirogen merged 1 commit into
Developmentfrom
fix/720-edit-mode-font

Conversation

@Hirogen

@Hirogen Hirogen commented Oct 2, 2026

Copy link
Copy Markdown
Collaborator

Fixes #720.

PaintHelper.GetDataGridDefaultRowStyle hardcoded Courier New 8.25pt. As RowsDefaultCellStyle it takes precedence over DefaultCellStyle, which LogWindow.PreferencesChanged keeps at the configured font, so the cell editing control (double-click / Ctrl+E) in the log and filter grid always showed Courier New. The row style no longer sets a font and inherits it from DefaultCellStyle.

  • Regression test in PaintHelperTests (failed before: Courier New 8.25 instead of the grid font).
  • Out of scope: the Courier New default in GetDataGridViewCellStyle / Current line highlight #85 TODO, and other Courier New usages.

RowsDefaultCellStyle hardcoded Courier New 8.25pt, overriding the configured
font kept in DefaultCellStyle, so the cell editing control (double-click /
Ctrl+E) ignored it. The row style no longer sets a font and inherits it.
@Hirogen
Hirogen merged commit 5f8b31a into Development Oct 2, 2026
3 checks passed
@Hirogen
Hirogen deleted the fix/720-edit-mode-font branch October 2, 2026 16:36
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.

Cell edit mode (double-click / Ctrl+E) ignores configured font – RowsDefaultCellStyle hardcodes Courier New

1 participant