Explorar el Código

Adds font-[style|weight] control to annotations

main
Eric Amodio hace 7 años
padre
commit
7988cfdcea
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. +5
    -1
      src/annotations/annotations.ts

+ 5
- 1
src/annotations/annotations.ts Ver fichero

@ -197,6 +197,8 @@ export class Annotations {
borderStyle: borderStyle, borderStyle: borderStyle,
borderWidth: borderWidth, borderWidth: borderWidth,
color: new ThemeColor('gitlens.gutterForegroundColor'), color: new ThemeColor('gitlens.gutterForegroundColor'),
fontWeight: 'normal',
fontStyle: 'normal',
height: '100%', height: '100%',
margin: '0 26px -1px 0', margin: '0 26px -1px 0',
textDecoration: separateLines ? 'overline solid rgba(0, 0, 0, .2)' : 'none', textDecoration: separateLines ? 'overline solid rgba(0, 0, 0, .2)' : 'none',
@ -239,7 +241,9 @@ export class Annotations {
after: { after: {
backgroundColor: new ThemeColor('gitlens.trailingLineBackgroundColor'), backgroundColor: new ThemeColor('gitlens.trailingLineBackgroundColor'),
color: new ThemeColor('gitlens.trailingLineForegroundColor'), 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 DecorationInstanceRenderOptions
} as DecorationOptions; } as DecorationOptions;

Cargando…
Cancelar
Guardar