mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-18 09:45:36 -05:00
Adds control over the active line annotation colors
This commit is contained in:
@@ -83,6 +83,10 @@ export class BlameActiveLineController extends Disposable {
|
||||
this._editor.setDecorations(activeLineDecoration, []);
|
||||
}
|
||||
}
|
||||
if (!Objects.areEquivalent(config.blame.annotation.activeLineDarkColor, this._config && this._config.blame.annotation.activeLineDarkColor) ||
|
||||
!Objects.areEquivalent(config.blame.annotation.activeLineLightColor, this._config && this._config.blame.annotation.activeLineLightColor)) {
|
||||
changed = true;
|
||||
}
|
||||
|
||||
this._config = config;
|
||||
|
||||
@@ -322,8 +326,17 @@ export class BlameActiveLineController extends Disposable {
|
||||
hoverMessage: hoverMessage,
|
||||
renderOptions: {
|
||||
after: {
|
||||
color: 'rgba(153, 153, 153, 0.35)',
|
||||
contentText: annotation
|
||||
},
|
||||
dark: {
|
||||
after: {
|
||||
color: this._config.blame.annotation.activeLineDarkColor || 'rgba(153, 153, 153, 0.35)'
|
||||
}
|
||||
},
|
||||
light: {
|
||||
after: {
|
||||
color: this._config.blame.annotation.activeLineLightColor || 'rgba(153, 153, 153, 0.35)'
|
||||
}
|
||||
}
|
||||
} as DecorationInstanceRenderOptions
|
||||
} as DecorationOptions;
|
||||
|
||||
@@ -19,6 +19,8 @@ export interface IBlameConfig {
|
||||
dateFormat: string;
|
||||
message: boolean;
|
||||
activeLine: 'off' | 'inline' | 'hover' | 'both';
|
||||
activeLineDarkColor: string;
|
||||
activeLineLightColor: string;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user