Browse Source

Adds font-[style|weight] control to annotations

main
Eric Amodio 7 years ago
parent
commit
7988cfdcea
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      src/annotations/annotations.ts

+ 5
- 1
src/annotations/annotations.ts View File

@ -197,6 +197,8 @@ export class Annotations {
borderStyle: borderStyle,
borderWidth: borderWidth,
color: new ThemeColor('gitlens.gutterForegroundColor'),
fontWeight: 'normal',
fontStyle: 'normal',
height: '100%',
margin: '0 26px -1px 0',
textDecoration: separateLines ? 'overline solid rgba(0, 0, 0, .2)' : 'none',
@ -239,7 +241,9 @@ export class Annotations {
after: {
backgroundColor: new ThemeColor('gitlens.trailingLineBackgroundColor'),
color: new ThemeColor('gitlens.trailingLineForegroundColor'),
contentText: Strings.pad(message.replace(/ /g, GlyphChars.Space), 1, 1)
contentText: Strings.pad(message.replace(/ /g, GlyphChars.Space), 1, 1),
fontWeight: 'normal',
fontStyle: 'normal'
}
} as DecorationInstanceRenderOptions
} as DecorationOptions;

Loading…
Cancel
Save