vscode: extensive fonts

This commit is contained in:
Flameopathic 2024-12-09 13:04:38 -05:00
parent eb918dbffa
commit 23d9debfdc

View file

@ -27,8 +27,27 @@ in {
extensions = [ themeExtension ];
userSettings = {
"workbench.colorTheme" = "Stylix";
"terminal.integrated.fontFamily" = "'${monospace.name}'";
"editor.fontFamily" = "'${monospace.name}'";
"editor.fontFamily" = monospace.name;
"editor.inlayHints.fontFamily" = monospace.name;
"editor.inlineSuggest.fontFamily" = monospace.name;
"scm.inputFontFamily" = monospace.name;
"debug.console.fontFamily" = monospace.name;
"markdown.preview.fontFamily" = sansSerif.name;
"chat.editor.fontFamily" = monospace.name;
# 4/3 factor used for pt to px;
"editor.fontSize" = builtins.floor (sizes.terminal * 4 / 3 + 0.5);
"debug.console.fontSize" = builtins.floor (sizes.terminal * 4 / 3 + 0.5);
"markdown.preview.fontSize" = builtins.floor (sizes.terminal * 4 / 3 + 0.5);
"terminal.integrated.fontSize" = builtins.floor (sizes.terminal * 4 / 3 + 0.5);
"chat.editor.fontSize" = builtins.floor (sizes.terminal * 4 / 3 + 0.5);
# 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" = builtins.floor (sizes.terminal * 4 / 3 * 9 / 14 + 0.5);
"scm.inputFontSize" = builtins.floor (sizes.terminal * 4 / 3 * 13 / 14 + 0.5);
"screencastMode.fontSize" = builtins.floor (sizes.terminal * 4 / 3 * 56 / 14 + 0.5);
};
};
};