Skip to content

Fix font weight in multiple elements#49539

Merged
dinocosta merged 2 commits intomainfrom
refactor-font-weight
Feb 19, 2026
Merged

Fix font weight in multiple elements#49539
dinocosta merged 2 commits intomainfrom
refactor-font-weight

Conversation

@dinocosta
Copy link
Member

@dinocosta dinocosta commented Feb 18, 2026

  • Update the font weight used in the Agent Panel's editor to respect the buffer_font_weight setting.
  • Update the font weight used in the Command Palette to use the ui_font_weight setting value, seeing as the command palette is using the ui_font settings for the font family and features
  • Update the font weight used in the popovers to match the buffer_font_weight, as it's also using the buffer font family and features
  • Update the LabelLike.buffer_font method in order to correctly set the font weight, which fixes the font weight used in the file header when displaying a multibuffer editor

Before you mark this PR as ready for review, make sure that you have:

  • Added a solid test coverage and/or screenshots from doing manual testing
  • Done a self-review taking into account security and performance aspects
  • Aligned any UI changes with the UI checklist

Release Notes:

  • Fixed incorrect font weight in the Command Pallete input
  • Fixed missing font weight the Agent Panel's buffer
  • Fixed missing font weight the Hover Popover
  • Fixed missing font weight in Markdown's code block and inline code

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Feb 18, 2026
@zed-community-bot zed-community-bot bot added the staff Pull requests authored by a current member of Zed staff label Feb 18, 2026
@dinocosta dinocosta requested review from a team and removed request for a team February 18, 2026 23:27
@dinocosta dinocosta changed the title chore: ensure font weight is correctly used Fix font weight in multiple elements Feb 18, 2026
* Update the font weight used in the Agent Panel's editor to respect
  the `buffer_font_weight` setting.
* Update the font weight used in the Command Palette to use the
  `ui_font_weight` setting value, seeing as the command palette is using
  the `ui_font` settings for the font family and features
* Update the font weight used in the popovers to match the
  `buffer_font_weight`, as it's also using the buffer font family and
  features
* Update the `LabelLike.buffer_font` method in order to correctly set
  the font weight, which fixes the font weight used in the file header
  when displaying a multibuffer editor
* Update the font weight used in the markdown rendering for both code
  blocks and inline code to use the `buffer_font_weight` setting
@dinocosta dinocosta force-pushed the refactor-font-weight branch from df5252f to 9035c1b Compare February 18, 2026 23:37
@dinocosta
Copy link
Member Author

For the screenshots below, a buffer_font_weight of 300 was used to exaggerate the effect of these changes and make it easier to see the difference ▼

Context Before After
Agent Panel Buffer agent_panel_before agent_panel_after
Hover Popover hover_before hover_after
Markdown Code markdown_code_before markdown_code_after
Comand Palette command_palette_before command_palette_after
Buffer File Header file_header_before file_header_after

@dinocosta dinocosta marked this pull request as ready for review February 19, 2026 00:14
@dinocosta dinocosta requested review from a team as code owners February 19, 2026 00:14
@dinocosta dinocosta removed request for a team February 19, 2026 00:14
@dinocosta dinocosta self-assigned this Feb 19, 2026
@dinocosta dinocosta merged commit da7b8f2 into main Feb 19, 2026
28 checks passed
@dinocosta dinocosta deleted the refactor-font-weight branch February 19, 2026 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement staff Pull requests authored by a current member of Zed staff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant