mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 13:29:44 +00:00
fix #142847
This commit is contained in:
parent
5245ce3866
commit
f1bd49efdf
|
@ -414,12 +414,6 @@
|
|||
}
|
||||
|
||||
.terminal-command-decoration {
|
||||
transition: opacity 0.5s;
|
||||
transition: all .2s ease-in-out;
|
||||
margin-left: -1%;
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
.terminal-command-decoration:hover {
|
||||
transform: scale(2, 1);
|
||||
}
|
||||
|
|
|
@ -170,8 +170,8 @@ export class DecorationAddon extends Disposable implements ITerminalAddon {
|
|||
}
|
||||
|
||||
registerThemingParticipant((theme: IColorTheme, collector: ICssStyleCollector) => {
|
||||
const commandDecorationSuccessColor = theme.getColor(TERMINAL_COMMAND_DECORATION_DEFAULT_BACKGROUND_COLOR);
|
||||
collector.addRule(`.${DecorationSelector.CommandDecoration} { background-color: ${commandDecorationSuccessColor ? commandDecorationSuccessColor.toString() : ''}; }`);
|
||||
const commandDecorationDefaultColor = theme.getColor(TERMINAL_COMMAND_DECORATION_DEFAULT_BACKGROUND_COLOR);
|
||||
collector.addRule(`.${DecorationSelector.CommandDecoration} { background-color: ${commandDecorationDefaultColor ? commandDecorationDefaultColor.toString() : ''}; }`);
|
||||
const commandDecorationErrorColor = theme.getColor(TERMINAL_COMMAND_DECORATION_ERROR_BACKGROUND_COLOR);
|
||||
collector.addRule(`.${DecorationSelector.CommandDecoration}.${DecorationSelector.Error} { background-color: ${commandDecorationErrorColor ? commandDecorationErrorColor.toString() : ''}; }`);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue