Skip to content

Commit

Permalink
vscode: coerce font sizes to floats
Browse files Browse the repository at this point in the history
  • Loading branch information
musjj authored Dec 21, 2024
1 parent 718be6c commit 98733a0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions modules/vscode/hm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,18 @@ in {
"chat.editor.fontFamily" = monospace.name;

# 4/3 factor used for pt to px;
"editor.fontSize" = sizes.terminal * 4 / 3;
"debug.console.fontSize" = sizes.terminal * 4 / 3;
"markdown.preview.fontSize" = sizes.terminal * 4 / 3;
"terminal.integrated.fontSize" = sizes.terminal * 4 / 3;
"chat.editor.fontSize" = sizes.terminal * 4 / 3;
"editor.fontSize" = sizes.terminal * 4.0 / 3.0;
"debug.console.fontSize" = sizes.terminal * 4.0 / 3.0;
"markdown.preview.fontSize" = sizes.terminal * 4.0 / 3.0;
"terminal.integrated.fontSize" = sizes.terminal * 4.0 / 3.0;
"chat.editor.fontSize" = sizes.terminal * 4.0 / 3.0;

# other factors (9/14, 13/14, 56/14) based on default for given value
# divided by default for `editor.fontSize` (14) from
# https://code.visualstudio.com/docs/getstarted/settings#_default-settings.
"editor.minimap.sectionHeaderFontSize" = sizes.terminal * 4 / 3 * 9 / 14;
"scm.inputFontSize" = sizes.terminal * 4 / 3 * 13 / 14;
"screencastMode.fontSize" = sizes.terminal * 4 / 3 * 56 / 14;
"editor.minimap.sectionHeaderFontSize" = sizes.terminal * 4.0 / 3.0 * 9.0 / 14.0;
"scm.inputFontSize" = sizes.terminal * 4.0 / 3.0 * 13.0 / 14.0;
"screencastMode.fontSize" = sizes.terminal * 4.0 / 3.0 * 56.0 / 14.0;
};
};
};
Expand Down

0 comments on commit 98733a0

Please sign in to comment.